Skip to content

Instantly share code, notes, and snippets.

View ke20's full-sized avatar
🐢
Kawabunga !

Kevin Auvinet ke20

🐢
Kawabunga !
View GitHub Profile

Keybase proof

I hereby claim:

  • I am ke20 on github.
  • I am ke20 (https://keybase.io/ke20) on keybase.
  • I have a public key ASAOv75EQrwizw0S28GTSgMsvo_J5Ks0AlPmHiQWGGJMfAo

To claim this, I am signing this object:

@ke20
ke20 / ubuntu14.04-seed-web-env.sh
Created February 17, 2015 21:54
[ubuntu-14.04] web environment
#!/bin/sh
# Installation de gnome-shell
sudo apt-get -y install gnome-shell
# Installation de guake
sudo apt-get -y install guake
sudo ln -s "/usr/share/applications/guake.desktop" "/etc/xdg/autostart/"
# Installation d'apache 2
@ke20
ke20 / tail-color.sh
Last active May 8, 2017 19:20 — forked from kartikshah/tail-color.sh
Symfony 2 default logs
tail -100f /var/log/applications/application.log | awk '
/(request|app)\.INFO/ {print "\033[36m" $0 "\033[39m"}
/(request|app)\.WARNING/ {print "\033[33m" $0 "\033[39m"}
/(request|app)\.ERROR/ {print "\033[31m" $0 "\033[39m"}
/(request|app)\.CRITICAL/ {print "\033[31m" $0 "\033[39m"}
'
@ke20
ke20 / Ini file parser
Last active August 29, 2015 13:56
A sample function to parse in file in shell script using perl
#!/bin/ksh
ini_parser()
{
# Check if ini file exists
if [ ! -f $1 ]; then
echo "Error: The file to parse doesn't exist"
return 0
fi

Bash (Readline)

Moving

ctrl + a                 Goto BEGINNING of command line
ctrl + e                 Goto END of command line
ctrl + b                 move back one character
ctrl + f                 move forward one character

alt + f move cursor FORWARD one word