Stack Exchange Network

Stack Exchange network consists of 175 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
1,609
reputation
12
36
65

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:

13
answers
72
questions
~726k
people reached
  • Belgium
  • Member for 7 years, 10 months
  • 475 profile views
  • Last seen Apr 3 at 23:39

Top Tags (139)

Score 27
Posts 34
Posts % 40
Score 5
Posts 9
Score 2
Posts 31
Score 1
Posts 13
Score 1
Posts 9
Score 1
Posts 8

Top Posts (85) All Questions Answers | Votes Newest

View all questions and answers

Badges (113)

Gold

12

Rarest

Silver

36

Rarest

Bronze

65

Rarest