工具
LF-DevJourney
这个作者很懒,什么都没留下…
展开
-
svg格式图片转png,jpg等(矢量图转像素点阵图)
矢量图转点阵图,像素图, svg转png, jpeg原创 2024-02-05 18:00:16 · 457 阅读 · 0 评论 -
二进制文件的内部是怎么样的?
二进制文件并不是不可逾越的,本文带你细窥其内部结构原创 2024-02-04 16:10:47 · 777 阅读 · 0 评论 -
如何在免费云Colab上使用扩散模型生成图片?
在人工智能技术的迅猛发展下,内容生成领域也迎来了一系列创新的突破。其中,使用扩散模型(如Stable Diffusion)从文字生成图片的AI技术备受瞩目。这一技术的出现,为我们创造栩栩如生的图像提供了全新的可能性。本文将带领读者使用免费云Colabt体验如何使用扩散模型生成图片。原创 2024-01-14 18:24:00 · 420 阅读 · 2 评论 -
Colab 谷歌免费的云端Python编程环境初体验
Google Colab是一个强大且免费的云端Python编程环境,为学生、研究人员和开发者提供了一个便捷的平台来开展数据科学、机器学习和深度学习项目原创 2024-01-13 15:50:15 · 474 阅读 · 1 评论 -
使用微信读书高效阅读论文,自带翻译功能。
使用微信读书高效阅读论文,自带翻译。原创 2024-01-11 21:07:01 · 520 阅读 · 1 评论 -
linux终端蓝色太暗的解决方案
命令行终端字体颜色太暗看不见的解决方案原创 2023-11-03 13:51:10 · 136 阅读 · 0 评论 -
编辑crontab任务时如何选择编辑器?
linux上设定定时服务时,通常会使用crontab -e指令,有时候默认是 nano 编辑器,对一些vim用户来说很不方便.如何为crontab选择编辑器那?设置VISUAL环境变量,export VISUAL=vim; crontab -e, 这个方法通常都可以工作,嫌麻烦的话,可以将export VISUAL=vim;设定到你的 .bashrc中,或者将crontab alias到export VISUAL=vim; crontab 参靠有时候遇到上述方式无效的情况时,可以直接指定编辑器原创 2021-10-28 16:04:13 · 1880 阅读 · 0 评论 -
Goland, The selected directory is not a valid for Go SDK
参考我在 StackOverflow的答案原创 2021-10-27 10:19:21 · 481 阅读 · 0 评论 -
命令行自动补全(根据历史记录)
参考: Command-line completion from command history方法1:匹配任意位置输入Ctrl+R打开反向历史记录搜索,会出现如下信息。lf@DESKTOP-8LB6JPN MINGW64 ~(reverse-i-search)`':然后输入需要搜索的内容,录入branch, 会显示匹配到的最近一条记录。lf@DESKTOP-8LB6JPN MINGW64 ~(reverse-i-search)`branch': git branch -a如果不是想要的原创 2021-01-25 11:56:01 · 3260 阅读 · 0 评论 -
在服务器上搭建git仓库
在本地项目中导出裸仓库 git clone --bare ./ ../project_name.git上传到服务器上pscp -r ../project_name.git user_name@ip_or_hostname:/git_path/在本地仓库中设置服务端的git地址git remote add origin user_name@ip_or_hostname:/git_path/pr...原创 2019-12-26 15:28:09 · 436 阅读 · 0 评论 -
python数学公式展示
参考Print latex-formula with python原创 2019-10-22 09:59:49 · 10344 阅读 · 0 评论 -
启用右键查看功能
参考How to re-enable right click so that I can inspect HTML elements in Chrome?原创 2019-10-21 15:37:03 · 296 阅读 · 0 评论 -
ffmpeg install
Ubuntu: 使用默认远 ·apt install ffmpeg`Centos: 没有默认的ffmpeg源,参考CentOS中yum安装ffmpeg1.升级系统sudo yum install epel-release -ysudo yum update -ysudo shutdown -r now2.安装Nux Dextop Yum 源由于CentOS没有官方FF...原创 2018-07-04 12:25:03 · 2023 阅读 · 0 评论 -
光标变成长方块只能覆盖编辑
光标变成方块,不能换行,只能覆盖之前的字符。一直输入 f 并换行 输入 f 后 解决方案 shift + Insert原创 2018-06-28 19:45:22 · 2037 阅读 · 0 评论 -
Redis 桌面可视化工具
Github:RedisDesktopManager或者官网RedisDesktopManager安装过程中可以使用SSH方式sudo find / -name "redis.conf"注意redis默认使用的127.0.0.0:6379,只能本地访问。可以将redis.conf中的 bind 127.0.0.0 改为 bind 0.0.0.0,可以从不同机器上访问。...原创 2018-07-05 18:01:34 · 2464 阅读 · 0 评论 -
仅部署修改的文件到远程
使用git diff HEAD --name-only获取修改的文件列表。(包含了相对路径)(可以设置HEAD~n将最近几次的修改进行部署)使用for遍历上面的列表。使用pscp将文件传到远程制定的目录。cd C:/Users/Dell/Desktop/marketgit add .for /f %%i in ('git diff HEAD --name-only') do psc...原创 2018-07-18 14:25:41 · 275 阅读 · 0 评论 -
install elasticsearch as a sevce on cento
how-to-install-and-configure-elasticsearch-on-centos-7wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.4.2.rpmln -s /usr/local/jdk1.8.0_191/bin/java /usr/bin/javasudo rpm -...原创 2018-10-22 10:34:26 · 273 阅读 · 0 评论 -
命令行艺术 ( the art of commad line )
Github: the-art-of-command-line实例:For web debugging, curl and curl -I are handy, or their wget equivalents, or the more modern httpie.To know current cpu/disk status, the classic tools are top (o...原创 2019-07-25 18:33:03 · 624 阅读 · 0 评论 -
如何播放或拼接视频 ts
对于文件名有序的 ts 文件如 xxxxx_1.ts, xxxxx_2.ts,… 就很容易处理。使用如下指令就可以 cat *.ts | ffmpeg -i pipe: -c:a copy -c:v copy out.mp4 ,可以参考我对这个 Use ffmpeg copy codec to combine *.ts files into a single mp4 问题的回答。对于无序的 ts...原创 2019-08-06 08:59:42 · 7026 阅读 · 0 评论 -
对等端的证书有一个无效的签名。 错误代码:SEC_ERROR_BAD_SIGNATURE
配置 Fiddler 抓取 Https 请求时遇到了这个问题。cmd 下输入 certmgr.msc > 操作 > 查找证书,然后输入 Fiddler 搜索,选中所有搜索出的证书;清空 C:\Users\Dell\AppData\Roaming\Microsoft\Crypto\RSA 下的文件;卸载 Fiddler;火狐 选项 > 隐私与安全 > 证书 > ...原创 2019-08-13 10:58:00 · 18053 阅读 · 3 评论 -
Filebeat 连接 Logstash 常见问题。
Failed to connect to backoff(async(tcp://ip:5044)): dial tcp ip:5044: i/o timeoutFailed to connect to backoff(async(tcp://ip:5044)): dial tcp ip:5044: connect: connection refusedFailed to publish e...原创 2019-08-26 11:12:50 · 24967 阅读 · 0 评论 -
Filebeat 日志不输出
Config logging[WARNING] When Filebeat is running on a Linux system with systemd, it uses by default the -e command line option, that makes it write all the logging output to stderr so it can be captu...原创 2019-08-26 11:18:11 · 6501 阅读 · 0 评论 -
gitlab 403, 502问题解决方案
GitLab issuing temporary IP bans - 403 forbidden502 Gitlab is taking too much time to respond原创 2019-08-26 21:16:06 · 469 阅读 · 0 评论 -
markdown special symbols(特殊字符)
markdown 下公式中特殊字符的输入 $\Theta(nlgn)$ 对应 Θ(nlgn)Θ(nlgn)\Theta(nlgn)更多请参考: http://www.math.harvard.edu Special Symbols原创 2018-05-26 16:53:54 · 1269 阅读 · 0 评论 -
tmux 保存和回复各种会话
install tmux apt install tmuxedit or create .tmux.confvi .tmux.conf# List of pluginsset -g @plugin 'tmux-plugins/tpm'set -g @plugin 'tmux-plugins/tmux-sensible'# Other examples:# set -g @p...原创 2018-06-27 20:16:25 · 3093 阅读 · 0 评论 -
显示所有环境变量
env 或者 printenv原创 2018-06-23 23:31:40 · 3224 阅读 · 0 评论 -
pip 或 pip3更换源
pip更换为国内源,可以大大的提高安装成功率和速度。 mkdir ~/.pip vim ~/.pip/pip.conf[global]timeout = 6000index-url = http://mirrors.aliyun.com/pypi/simple/trusted-host = pypi.tuna.tsinghua.edu.cn注意:不管你用的是pip3还是pip,方...原创 2018-06-23 23:14:34 · 31318 阅读 · 4 评论 -
Ubuntu16.04安装搜狗拼音输入法
转自:Ubuntu16.04安装搜狗拼音输入法(中文输入法)虽然网上有很多教程,但是我觉得我的很适合那些真正的小白。。。1、下载文件由于我要给多台电脑安装搜狗输入法,所以用的是文件夹安装,不是命令行安装。打开官网http://pinyin.sogou.com/linux,点击自己对应的系统位数安装包,然后下载。 2、打开安装目录,调出终端。sudo dpkg -i sog...转载 2018-06-23 22:54:46 · 333 阅读 · 0 评论 -
ssh 尝试登陆时,没有响应
公司的网络起初使用的192.168 段的,某天因为网络设备的问题换位了10.1段的。最后又换回了192.168段的,莫名其妙MAC下的ssh 链接没反应, 如图所示: ping的话,可以通。 同时MAC上装的虚拟机ssh没问题。尝试移除.ssh/known_hosts, 没有效果。最后brew upgrade openssl,问题得到解决。...原创 2018-05-28 13:34:42 · 14965 阅读 · 1 评论 -
查看证书内容
openssl x509 -in example.pem -noout -textCertificate: Data: Version: 3 (0x2) Serial Number: 946059622 (0x3863b966) Signature Algorithm: sha1WithRSAEncryption Issuer...原创 2018-06-04 11:13:50 · 8964 阅读 · 0 评论 -
python shell 自动补全
创建文件 .pythonrc, 添加如下内容import rlcompleter, readlinereadline.parse_and_bind('tab:complete')在 .bashrc 文件尾追加如下内容 export PYTHONSTARTUP=~/.pythonrc更新环境变量 source ./.bashrc...原创 2018-04-27 16:07:29 · 1686 阅读 · 3 评论 -
insserv: warning: script 'xxxx' missing LSB tags and overrides
更换系统后(Linux localhost 4.4.0-96-generic #119-Ubuntu SMP Tue Sep 12 14:59:54 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux)依照之前系统的配置来配置启动项,遇到了上面的问题。 虽然只是一个警告,但是经常出现,心里觉得不爽。最后发现之前的脚本中未配置 Run-time dependencie...原创 2018-04-20 10:03:22 · 9511 阅读 · 0 评论 -
vim 查看和设置文件类型
通常在不同的操作系统编写代码时会遇到下面的问题,在每行后面都有一个特殊的^M.$user->password = bcrypt('password');^Mvim 下 查看文件类型::set ff? 设置文件类型::set ff=unix 或 :set ff=dos...原创 2018-04-13 11:52:13 · 7245 阅读 · 1 评论 -
ubuntu16.04 安装 tensorflow GPU support
install python3.* install pip3 upgrade pip3 with sudo -H pip3 install --upgrade pipsudo pip3 install numpy sudo pip3 install werkzeugpip install tf-nightly or pip install tf-nightly-gpuJust c...原创 2018-06-24 00:21:38 · 9065 阅读 · 0 评论 -
install java on ubuntu
install java lufei@lufei:~$ java The program ‘java’ can be found in the following packages: * default-jre * gcj-5-jre-headless * openjdk-8-jre-headless * gcj-4.8-jre-headless * gcj-4.9-jre...原创 2018-06-24 00:22:14 · 583 阅读 · 0 评论 -
压缩、分割、合并和解压文件
这里用到了 1. tar 解压压缩 2. split 文件分割 3. cat 合并文件 各个指令详细用法可以使用 man 或者 help查看,或自行搜索。压缩:tar -zcvf bigfile.tar.gz bigfile分割:split -b 2G -d -a 1 bigfile.tar.gz bigfile.tar.gz. 使用split命令,-b 4000M...原创 2018-06-30 07:28:53 · 8968 阅读 · 0 评论 -
.gitignore无效的解决方法
无效的原因是:对应的目录或者文件已经被git跟踪,此时再加入.gitignore后就无效了,解决办法:如: git rm -r –cached .idea再重新加入.gitignore文件解决方法来源:http://stackoverflow.com/questions/9550437/how-to-make-git-ignore-idea-files-created-by-rub...原创 2018-06-25 19:11:36 · 696 阅读 · 0 评论 -
破解PHP storm
(1)打开hosts文件,添加:0.0.0.0 account.jetbrains.com (2)用浏览器打开 http://idea.lanyus.com/ ,点击页面中的“获得注册码”,然后在注册时切换至Activation Code选项,输入获得的注册码...原创 2018-06-25 19:10:00 · 3682 阅读 · 0 评论 -
windows alias
Make file cmd-alias.bat in the user path C:\Users\Dell with content like below. You also can make this file in other path. doskey sayhello=echo Hello $* doskey cattxt=type xxxxxxxxxxxx.txt $*Win+R...原创 2018-06-29 16:14:27 · 866 阅读 · 0 评论 -
git utilities
git checkout . remove unadded modifications原创 2018-06-29 15:48:27 · 137 阅读 · 0 评论