Install tcpkill
yum -y install dsniff --enablerepo=epel
View connections
netstat -tnpa | grep ESTABLISHED.*sshd.
Block with ip tables
iptables -A INPUT -s IP-ADDRESS -j DROP
Kill connection
| Originall From: Posted 2015-05-29 http://ubwg.net/b/full-list-of-ffmpeg-flags-and-options | |
| This is the complete list that’s outputted by ffmpeg when running ffmpeg -h full. | |
| usage: ffmpeg [options] [[infile options] -i infile]… {[outfile options] outfile}… | |
| Getting help: | |
| -h — print basic options | |
| -h long — print more options | |
| -h full — print all options (including all format and codec specific options, very long) |
Install tcpkill
yum -y install dsniff --enablerepo=epel
View connections
netstat -tnpa | grep ESTABLISHED.*sshd.
Block with ip tables
iptables -A INPUT -s IP-ADDRESS -j DROP
Kill connection
If you want to clone an svn repository with git-svn but don't want it to push all the existing branches, here's what you should do.
git svn clone -T trunk http://example.com/PROJECT
git svn clone -T branches/somefeature http://example.com/PROJECT
| (function ($) { | |
| /** | |
| * The base64 en/decoder that supports UTF8 characters like Chinese. | |
| * @namespace | |
| * @name pb.util.base64 | |
| */ | |
| var base64 = pb.getObject("util.base64"); | |
| var b64chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'; | |
| var b64tab = function (bin) { |
| /** | |
| * Convert a UTF16 string to UTF8. | |
| * @param {String} input | |
| * @returns {String} | |
| */ | |
| utf16To8: function (input) { | |
| var _unescape = function(s) { | |
| function d(x, n) { | |
| return String.fromCharCode(parseInt(n, 16)); | |
| } |
To get your Home and End keys working properly on Mac OS X (Tiger and up, including Mavericks), simply open the Terminal and do this:
$ cd ~/Library
$ mkdir KeyBindings
$ cd KeyBindings
$ vi DefaultKeyBinding.dictPut these lines in that file, including the curly braces:
{
| #!/bin/bash | |
| ############################ | |
| #script function | |
| ############################ | |
| setProperty(){ | |
| awk -v pat="^$1=" -v value="$1=$2" '{ if ($0 ~ pat) print value; else print $0; }' $3 > $3.tmp | |
| mv $3.tmp $3 | |
| } | |
| ############################ |
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| Vagrant.configure("2") do |config| | |
| config.vm.define :puppetmaster do |puppetmaster| | |
| puppetmaster.vm.hostname = "puppetmaster" | |
| puppetmaster.vm.network :private_network, ip: "192.168.33.50" | |
| puppetmaster.vm.box = "base" |