Remember that the order of parameters/options is very important.
convert *.png -set filename:original %t 'export/%[filename:original].jpg'
| wget --no-check-certificate -O shadowsocks.sh https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocks.sh | |
| chmod +x shadowsocks.sh | |
| ./shadowsocks.sh 2>&1 | tee shadowsocks.log | |
| wget --no-check-certificate https://github.com/teddysun/across/raw/master/bbr.sh && chmod +x bbr.sh && ./bbr.sh | |
| uname -r | |
| sysctl net.ipv4.tcp_available_congestion_control |
| #!/bin/bash | |
| # Sometimes you need to move your existing git repository | |
| # to a new remote repository (/new remote origin). | |
| # Here are a simple and quick steps that does exactly this. | |
| # | |
| # Let's assume we call "old repo" the repository you wish | |
| # to move, and "new repo" the one you wish to move to. | |
| # | |
| ### Step 1. Make sure you have a local copy of all "old repo" | |
| ### branches and tags. |
| http://d.stavrovski.net/blog/post/how-to-install-and-setup-oracle-java-jdk-in-centos-6 | |
| # rpm | |
| wget --no-cookies \ | |
| --no-check-certificate \ | |
| --header "Cookie: oraclelicense=accept-securebackup-cookie" \ | |
| "http://download.oracle.com/otn-pub/java/jdk/7u55-b13/jdk-7u55-linux-x64.rpm" \ | |
| -O jdk-7-linux-x64.rpm | |
| # ubuntu |
| #!/usr/bin/env python | |
| # | |
| # Shows GOP structure of video file. Useful for checking suitability for HLS and DASH packaging. | |
| # Example: | |
| # | |
| # $ iframe-probe.py myvideo.mp4 | |
| # GOP: IPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP 60 CLOSED | |
| # GOP: IPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP 60 CLOSED | |
| # GOP: IPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP 60 CLOSED | |
| # GOP: IPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP 60 CLOSED |
| A helpful script to redirect adb logcat output into a file. | |
| 1. You need define ANDROID_SDK, help us to find the location of adb tools. | |
| 2. Default log save path is '/tmp/logcat'. | |
| 3. Log file named with current date time. |
| package main | |
| import ( | |
| "bufio" | |
| "net" | |
| ) | |
| type Client struct { | |
| incoming chan string | |
| outgoing chan string |
#参考资料
###下载单个文件,默认将输出打印到标准输出中(STDOUT)中
curl http://www.centos.org
| #!/bin/bash | |
| #updated ffmpeg progress indicator | |
| #by Rupert Plumridge | |
| #for updates visit www.prupert.co.uk | |
| #Creative Commons Attribution-Non-Commercial-Share Alike 2.0 UK: England & Wales Licence | |
| # Based on the ffmpegprogress bar from: http://handybashscripts.blogspot.com/2011/01/ffmpeg-with-progress-bar-re-work.html | |
| # which was based on my initital progress script - circle of life and all that ;) | |
| # version 2.0 | |
| # 07.04.2011 | |
| # now uses apparently better progress detection, based on duration of overall video and progress along the conversion |