Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
4,532
reputation
32
86
133

YumYumYum

cd ~/Library/Safari ; remove the Bookmarks.plist to remove annoying drop down of all visited site. sudo netstat -tpn | grep IP A fork is a repo. A repo can have multiple branches. A commit is for a branch. https://developer.cdn.mozilla.net/media/uploads/demos/s/u/summerstyle/365ccfd644f2b008c33f0046d2ba1a8f/summer-html-image-ma_1355318513_demo_package/index.html

tcpdump -i eth0 port 80
tcpdump -i eth0 port 80 -w dump.pcap
tcpdump -i eth0 port 80 -l | tee dump.pcap


grep whatever myfile | tee /dev/tty | wc -l

$ git reset --hard HEAD; 
  git clean -f -d ; 
  git pull; # force pull

$ grep -A 1 -B 1:
A (after)
B (before)
C (context [before + after])

$ tcpflow -i any -C -e port 1234  # As root, listen packets in a port

$ freeze > recover

alt + print screen + k
alt + print screen + re is ub

$ echo -e '#!/bin/bash\nsleep 50\nexport DISPLAY=:0.0\nxset s off\nxset -dpms' > /var/tmp/pp.sh; cat /var/tmp/pp.sh;

#!/bin/bash
sleep 50
export DISPLAY=:0.0
xset s off
xset -dpms

eth0 and eth1 - in and out traffic

$ ip rule add from 10.0.0.108/32 table 1
$ ip route add default via 10.0.0.1 dev eth0 table 1
$ ip rule add from 10.0.0.28/32 table 2
$ ip route add default via 10.0.0.1 dev eth1 table 2

except ssh other traffic from that source

$ tcpdump -vv src 54.2.2.1 and not dst port 22

Normal termination

killall -SIGHUP firefox
killall -SIGINT firefox

Non gracefull termination

killall -SIGKILL firefox

Qemu: qemu-system-x86_64 -enable-kvm -m 256 -usb /dev/sdc qemu-system-x86_64 -cdrom filename.iso qemu-system-x86_64 -hda /dev/sdx Ffmpeg: ffmpeg -i /home/sun/Desktop/Default\ Project.mpeg -b:v 300k -ar 8000 -ac 1 -s qcif -r 5 /home/sun/Desktop/pingpong.3gp # Mobile videos for small size:

ffmpeg -i /home/sun/Desktop/Valentine.mpeg -y -f vcd -vcodec mpeg1video -s 352x240 -r 29.97 -g 12 -qmin 3 -qmax 13 /home/sun/Desktop/movie.mpg

ffmpeg -i input.flv -vcodec libvpx -acodec libvorbis output.webm

Nice site:

27
answers
150
questions
~2.1m
people reached
  • Belgium
  • Member for 7 years, 7 months
  • 1,298 profile views
  • Last seen Feb 7 at 11:30

Top Tags (204)

Score 3
Posts 30
Posts % 17
Score 2
Posts 19
Score 2
Posts 16
Score 1
Posts 21
Score 1
Posts 18
Score 1
Posts 14

Top Posts (177) All Questions Answers | Votes Newest

View all questions and answers

Badges (251)

Gold

32

Rarest

Silver

86

Rarest

Bronze

133

Rarest