今天刚好有这个需求研究了一下,发现ffmpeg就可以实现。
$ ffmpeg -f gif -i infile.gif outfile.mp4
Mark一下
今天刚好有这个需求研究了一下,发现ffmpeg就可以实现。
$ ffmpeg -f gif -i infile.gif outfile.mp4
Mark一下
还在用ISP给的DNS?有没发现一些网站上不去了?
试试下面几个公共DNS服务器:
首选(联通):123.125.81.6
备选(联通):140.207.198.6
如果碰上一些MP4中的音乐特别好听的,想转成MP3的话怎么办?
用ffmpeg就可以实现:
ffmpeg -i a.mp4 b.mp3
还可以加 -b:a 192k 来指定码率
更多参数可参照:https://trac.ffmpeg.org/wiki/Encode/MP3
最近在Ubuntu 16.04上实现了使用XRDP远程连接Unity桌面。这样的话使用Win自带的RemoteDesktop就可以连接Ubuntu的Unity了。
下面把步骤写下~
OK!搞定!就这三步就可以实现XRDP连接Ubuntu Unity。怎样?简单吧?
不过这个方法也是bug的,目前已知的bug是:
参考URL:http://c-nergy.be/blog/?p=9962
2020-05-28 更新
这个方法感觉还是麻烦了些,而且还有BUG导致Logout菜单等等看不见。最好的办法还是用Mate桌面,相关代码如下:
sudo apt-get install xrdp
sudo apt-get update
sudo apt-get install mate-core mate-desktop-environment mate-notification-daemon
sudo sed -i.bak '/fi/a #xrdp multiple users configuration \n mate-session \n' /etc/xrdp/startwm.sh
sudo ufw allow 3389/tcp
大疆精灵3和大疆悟的图传都只有8个默认通道,有时候会因为受到外界干扰飞行的时候图传中断,是个很蛋疼的事情。可能有些模友还不知道,其实Phantom3的图传通道还是可以破解的,inspire 1理论上也可行,因为图传用的是同一套方案。
破解方法非常简单,安卓就是把附件里面的这个.DJI.configs文件释放到 \Android\data\dji.pilot\files
iOS的话就是直接把这个.DJI.configs文件放到APP目录下面。
搞定以后打开DJI GO,就会发现图传已经可以选择32通道了。但是注意只能选手动指定通道,不能选择自动。
破解32信道以后,只要有遥控信号的时候,图传就不会消失。不然有些地方干扰大了,会造成图传卡顿,或者消失,但遥控信号依然受控。
下载:32channel
已经可以Ping通Google.com或者Google.com.hk了。但是怎么还是不能打开? 原来是跳回到http了。
要强制https的话,以Chrome为例。可以打开 chrome://net-internals/#hsts
在 Domain 栏里,输入 google.com或者google.com.hk,并勾选下面的两个复选框,点击 “Add” 按钮即可。
强制 Google 网页快照使用 HTTPS,输入 googleusercontent.com。
强制 Google APIs 使用 HTTPS,输入 googleapis.com。
当然如果你嫌这个操作比较繁琐的话,可以安装插件HTTPS Everywhere。
1、查看系统
[root@localhost ~]# cat /etc/issue CentOS release 6.6 (Final) [root@localhost ~]# uname -a Linux localhost.localdomain 2.6.32-042stab106.6 #1 SMP Mon Apr 20 14:48:47 MSK 2015 x86_64 x86_64 x86_64 GNU/Linux
2、安装ShadowSocks
# yum install python-setuptools && easy_install pip
# pip install shadowsocks
3、创建配置文件/etc/shadowsocks.json
[root@localhost /]# touch /etc/shadowsocks.json [root@localhost /]# vi /etc/shadowsocks.json { "server":"138.128.208.158", "server_port":443, "local_address": "127.0.0.1", "local_port":1080, "password":"MyPass", "timeout":300, "method":"rc4-md5" }
备注:加密方式官方默认使用aes-256-cfb,推荐使用rc4-md5,因为 RC4比AES速度快好几倍。继续阅读
netstat -lntu
as replied by @askmish will give you list of services running on your system on tcp and udp ports where
You don’t need the ‘p’ parameter as you’re only interested in getting which ports are free and not which program is running on it.
This only shows which ports on your system are used up, though. This doesn’t tell you the status of your network e.g. if you’re behind NAT and you want some services to be accessible from outside. Or if the firewall is blocking the port for outside visitors. In that case, nmap comes to the rescue. WARNING: Use nmap only on networks which are under your control. Also, there are firewall rules which can block nmap pings, you’ll have to fiddle around with options to get correct results.
2016.09.27 更新
netstat -peanut 用这个参数更可以列出是哪个程序在占用哪个端口
netstat -ano 可以直接列出PID,然后到任务管理器里面可以根据PID查看是哪个程序。
Key/Symbol | Explanation |
Windows | PC keyboards have a Windows key that looks like a four-pane window |
Command | Apple Mac computers have a command key. |
Menu | PC keyboards also have a Menu key that looks like an cursor pointing to a menu. |
Esc | Esc (Escape) key |
F1 – F12 | Information about the F1 through F12 keyboard keys. |
F13 – F24 | Information about the F13 through F24 keyboard keys. |
Tab | Tab key |
Caps lock | Caps lock key |
Shift | Shift key |
Ctrl | Ctrl (Control) key |
Fn | Fn (Function) key |
Alt | Alt (Alternate) key (PC Only; Mac users have Option key) |
Spacebar | Spacebar key |
Arrows | Up, Down, Left, Right Arrow keys |
Back Space | Back space (or Backspace) key |
Delete | Delete or Del key |
Enter | Enter key |
Prt Scrn | Print screen key |
Scroll lock | Scroll lock key |
Pause | Pause key |
Break | Break key |
Insert | Insert key |
Home | Home key |
Page up | Page up or pg up key |
Page down | Page down or pg dn key |
End | End key |
Num Lock | Num Lock key |
~ | Tilde |
` | Acute, Back quote, grave, grave accent, left quote, open quote, or a push |
! | Exclamation mark, Exclamation point, or Bang |
@ | Ampersat, Arobase, Asperand, At, or At symbol |
# | Octothorpe, Number, Pound, sharp, or Hash |
£ | Pounds Sterling or Pound symbol |
€ | Euro |
$ | Dollar sign or generic currency |
¢ | Cent sign |
¥ | Chinese/Japenese Yuan |
§ | Micro or Section |
% | Percent |
° | Degree |
^ | Caret or Circumflex |
& | Ampersand, Epershand, or And |
* | Asterisk and sometimes referred to as star. |
( | Open parenthesis |
) | Close parenthesis |
– | Hyphen, Minus or Dash |
_ | Underscore |
+ | Plus |
= | Equal |
{ | Open Brace, squiggly brackets, or curly bracket |
} | Close Brace, squiggly brackets, or curly bracket |
[ | Open bracket |
] | Closed bracket |
| | Pipe, Or, or Vertical bar |
\ | Backslash or Reverse Solidus |
/ | Forward slash, Solidus, Virgule, or Whack |
: | Colon |
; | Semicolon |
“ | Quote, Quotation mark, or Inverted commas |
‘ | Apostrophe or Single Quote |
< | Less Than or Angle brackets |
> | Greater Than or Angle brackets |
, | Comma |
. | Period, dot or Full Stop |
? | Question Mark |