624 reputation
41336
bio website tizen.org
location Belgium
age 31
visits member for 3 years, 5 months
seen Nov 4 at 2:02

I like Dennis Ritchie. Talk to the machine:

Primary language:

  • Python ( http://nullege.com/ ) , BASH, Zend Framework (PHP)
  • Java
  • C ( http://pubs.opengroup.org/onlinepubs//idx/head.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

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:


Nov
10
awarded  Famous Question
Nov
6
awarded  Popular Question
Nov
6
awarded  Popular Question
Nov
5
awarded  Popular Question
Nov
4
comment CentOS - upstart script is created, but its never running at all
I just applied and i checked the process, but now its running my a.js twice. i have two time same server script running.
Nov
4
asked CentOS - upstart script is created, but its never running at all
Oct
30
awarded  Popular Question
Oct
28
awarded  Self-Learner
Oct
27
revised Daemon - how to tell the start daemon to execute this daemon as different username than root?
added 32 characters in body
Oct
25
awarded  Popular Question
Oct
15
awarded  Popular Question
Oct
9
accepted mysqld is not starting up anymore due filled disk
Oct
9
asked mysqld is not starting up anymore due filled disk
Sep
7
awarded  Notable Question
Sep
7
awarded  Famous Question
Aug
21
comment CentOS - install using yum Apache 2.4
@garethTheRed: how to get ECDHE-RSA-AES256-SHA? with this its not available as a result you cant use SSLCiperSuite ECHDE.. is there any other repo which has this fixed?
Aug
20
comment Google App Engine alternative for CentOS, Fedora, Ubuntu?
AppScale is it well enough mature for Python please????
Aug
19
awarded  Benefactor
Aug
19
accepted Google App Engine alternative for CentOS, Fedora, Ubuntu?
Aug
14
awarded  Popular Question