547 reputation
1922
bio website tizen.org
location Belgium
age 31
visits member for 2 years, 10 months
seen Apr 10 at 2:45

I like Dennis Ritchie. Talk to the machine:

Primary language:

Again, Forgot it?

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

Gst:

wget http://gstreamer.freedesktop.org/src/gst-plugins-bad/gst-plugins-bad-0.10.23.tar.gz
tar xvfz gst-plugins-bad
./autogen.sh
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libexecdir=/usr/lib --with-package-name="GStreamer Bad" --with-package-origin="http://www.ubuntu.org/" --enable-gtk-doc --disable-static;
make
make install

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:


Apr
10
comment Completely disable the menu when I right click on the desktop (LXDE, Openbox, Ubuntu)
This never worked for me. Can you please update the right way tested in Ubuntu 13.10 64-bit but does not work.
Mar
27
comment How to make Network alive but speed low, slow for upload, download?
I used those suggested tools and it seems working: superuser.com/questions/66574/…
Mar
23
awarded  Notable Question
Feb
25
awarded  Notable Question
Feb
22
awarded  Popular Question
Feb
12
revised Daemon - how to tell the start daemon to execute this daemon as different username then root?
added 340 characters in body
Feb
12
comment Daemon - how to tell the start daemon to execute this daemon as different username then root?
Its working now see my Answer section. Thank you
Feb
12
answered Daemon - how to tell the start daemon to execute this daemon as different username then root?
Feb
12
comment Daemon - how to tell the start daemon to execute this daemon as different username then root?
service starts fine. but the problem is it start as root. it needs to be started as username: sun (# id -u sun 1000 )
Feb
12
comment Daemon - how to tell the start daemon to execute this daemon as different username then root?
I am using: Ubuntu 13.10 64-bit (3.11.0-15-generic)
Feb
12
revised Daemon - how to tell the start daemon to execute this daemon as different username then root?
added 166 characters in body
Feb
12
asked Daemon - how to tell the start daemon to execute this daemon as different username then root?
Feb
6
comment stunnel - how to setup stunnel to handle ssl and attach http with it?
But when i use in Step 1. Google App Engine then it does not work. could it be a reply 302 with http? causing that then?
Feb
6
comment stunnel - how to setup stunnel to handle ssl and attach http with it?
YES - i did a test 1) iamServer1> echo 'server1 talking' | nc -l 80; 2) iamServer2> curl -v "https://iamServer1" 3) iamServer2> gets http://iamServer1 instead of https://iamServer1
Feb
6
accepted stunnel - how to setup stunnel to handle ssl and attach http with it?
Feb
6
comment stunnel - how to setup stunnel to handle ssl and attach http with it?
Please see my last EDIT section
Feb
6
revised stunnel - how to setup stunnel to handle ssl and attach http with it?
added 592 characters in body
Feb
6
comment stunnel - how to setup stunnel to handle ssl and attach http with it?
After changing to your suggestion its working. But for example https://www.yumyumyum.com i visit assume its a valid https certificate and domain. then i am automatically going to tihs http://www.yumyumyum.com instead of HTTPS it becomes HTTP.
Feb
6
comment stunnel - how to setup stunnel to handle ssl and attach http with it?
client=no i set like your suggestion. But now when i go to haukelaging.com it works but then instantly i get into haukelaging.com rather then https
Feb
6
revised stunnel - how to setup stunnel to handle ssl and attach http with it?
added 4 characters in body