作者:matrix
被围观: 6,655 次
发布时间:2019-04-29
分类:Linux |
一条评论 »
linux重启守护进程可以使用-HUP参数来发送hang up挂断信号,系统会重启进程进行复位操作重新读取配置文件
There are also different signals that can be sent to both kill commands. What signal you send will be determined by what results you want from the kill command. For instance, you can send the HUP (hang up) signal to the kill command, which will effectively restart the process. This is always a wise choice when you need the process to immediately restart (such as in the case of a daemon). You can get a list of all the signals that can be sent to the kill command by issuing kill -l. You’ll ......
作者:matrix
被围观: 20,430 次
发布时间:2019-03-22
分类:零零星星 |
5 条评论 »
有时候使用终端clone操作或者其他install访问外网的时候会造成超级延迟,以至于无法使用,网络需要符合国情,毕竟有个大号防火墙。使用Proxifier可以间接实现全局的外网访问。windows端可以使用SSTap测试环境:macOS + ss + Proxifier
方案1.使用Proxifier
Proxifier下载:http://www.proxifier.com/download/
注册软件:
用户名称随意:Anything注册码:P427L-9Y552-5433E-8DSR3-58Z68
设置本地代理端口和地址添加本地代理Proxies
添加Rules规则我这里只是需要给终端shell设置外网访问所以添加一个shell程序就好了
程序添加完成之后,下方的Action选择刚刚添加的Proxies,点击ok之后控制台界面就能看到程序访问外网的情况 终端测试......
作者:matrix
被围观: 15,655 次
发布时间:2019-03-22
分类:零零星星 |
无评论 »
新浪微博ios app的scheme 测试可用
#打开首页sinaweibo://gotohome#新发微博sinaweibo://share?content=[微博内容 URL Encode]#消息页面sinaweibo://discover#指定搜索sinaweibo://searchall?q=[URL Encode]#微博扫一扫 sinaweibo://qrcode#微博详情页如https://weibo.com/1613133581/HlVM69RR9中mblogid为HlVM69RR9sinaweibo://detail?mblogid=[mblogid]#指定用户的全部微博containerid可以根据https://m.weibo.cn/u/1613133581中查找sinaweibo://cardlist?containerid=[containerid]#和指定用户聊天sinaweibo://messagelist?uid=[uid]#指定用户资料页sinaweibo://userinfo?uid=[uid]
参考:https://www.ryannn.com/archives/url-schemes-......
作者:matrix
被围观: 14,428 次
发布时间:2019-03-14
分类:零零星星 |
一条评论 »
使用vagrant做开发可以将环境全部运行于虚拟机中,避免本机安装各种环境模块造成问题也是为了完全和宿主机分离。测试:macOS + pycharm + Django项目
配置vagrant的初始化文件
pycharm设置中搜索Vagrant配置vagrant的基本运行程序Vagrant executable为Vagrant程序路径Instance folder表示Vagrant box配置的初始化目录。我这里也就直接将就以前init的目录。默认位置为当前项目路径设置好就可以启动虚拟机环境:tools->Vagrant->up打开虚拟机ssh:tools->Start SSH Session
配置python解释器
点击右上角绿色▶️箭头或者Control+R按键运行,提示失败是由于使用vagrant项目代码是在本机修改编写在虚拟机中运行,默认的项......
作者:matrix
被围观: 8,128 次
发布时间:2019-03-12
分类:Python |
无评论 »
虚拟机ubuntu中自带了Python2,但是想要使用python3需要单独安装。使用add-apt-repository来添加ppa源安装提示command not found,之后进行安装操作sudo apt-get install software-properties-common,错误继续:
$ sudo apt-get install software-properties-commonReading package lists... DoneBuilding dependency tree... 50%Building dependency tree Reading state information... DoneYou might want to run 'apt-get -f install' to correct these:The following packages have unmet dependencies: libmysql++-dev : Depends: libmysqlclient-dev but it is not going to be installed software-properties-common : Depend......
作者:matrix
被围观: 16,323 次
发布时间:2019-03-07
分类:Wordpress 零零星星 |
7 条评论 »
本来几乎少有在blog上放置音乐,但是看到之前的帖子的哪个音频播放UI简直难受的很,已经记不起WP是从多少版本开始有这种协调默认的媒体播放界面。刚开始应该是使用html5的默认audio播放界面,后面就使用MediaElement.js的播放器且覆盖了样式,默认都是黑色调的蓝/白色进度条的那种。 音频播放界面如上图样子,早就该改了的 实在难受 😱 😱 下面的代码来自@Vassilis Mastorostergios ,style很好看 也就照教程搬过来用了。修改后的样式:
添加样式文件
主题css目录下新建文件my-theme-player.css
/* Media Element Player styles *//* Player background */.mytheme-mejs-container.mejs-container,.mytheme-mejs-container .mejs-controls......
作者:matrix
被围观: 15,129 次
发布时间:2019-02-27
分类:零零星星 |
6 条评论 »
TeamViewer使用频繁或者被检测到某些ip段中会被标记为商业行为的使用,也就会要求付费。对应的TeamViewer ID也就会被要求进行商业授权许可。本来之前使用都是正常,今天给朋友远程执行脚本命令,我连接控制了半分钟就提示断开连接「超时后连接被阻断」,然后等待时间过后就提示了监测到「商业行为」。网上说TeamViewer修改了商业行为的判定导致客户大量流失,TeamViewer目前报价对于单用户单连接/年需要¥2500,有点贵啊。期间尝试过mac端的向日葵远程控制端和系统自带的屏幕共享,前者只能查看不能操作,后者完全连接不上亦或使用内网VNC地址成功,使用apple id就连接失败,mac端qq就根本没这个功能。
方法0
使用其他工具:https://anydesk.......
作者:matrix
被围观: 4,753 次
发布时间:2019-02-22
分类:零零星星 |
一条评论 »
win上的打包的文件丢到linux解压发现中文的前缀乱码,本来mv命令到是可以修改 顾于文件太多,发现用rename方便的多需要将╬в╨┼═╝╞м_20180626102853.jpg修改还原为微信图片_20180626102853.jpg
执行操作
文件数量有点多执行 命令$:rename 's/╬в╨┼═╝╞м(.*)/微信图片$1/' *
rename --help
Usage: rename [ -h|-m|-V ] [ -v ] [ -n ] [ -f ] [ -e|-E *perlexpr*]*|*perlexpr* [ *files* ]Options: -v, -verbose Verbose: print names of files successfully renamed. -n, -nono No action: print names of files to be renamed, but don't rename. -f, -force Over write: allow existing fil......
- 1
... - 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
... - 49