Skip to content

Instantly share code, notes, and snippets.


Mischievous Meerkat jarun

View GitHub Profile
jarun / blank
Last active Sep 11, 2015
Blank screen
View blank
perl -e 'select(undef,undef,undef,.1)' && xset dpms force off
xtrlock -b
jarun / Backup
Created Nov 28, 2014
Backup modified files
View Backup
$ cat list.txt
$ list.txt
$ tar -xvf backup-timestamp.tar.bz2 -C /
jarun / fontconfig
Last active Sep 11, 2015
font configuration files
View fontconfig
FILE: /etc/fonts/conf.d/99-sharp-fonts.conf
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<match target="font">
<edit name="antialias" mode="assign"><bool>true</bool></edit>
<edit name="hinting" mode="assign"><bool>true</bool></edit>
<edit name="hintstyle" mode="assign"><const>hintfull</const></edit>
<edit name="lcdfilter" mode="assign"><const>lcddefault</const></edit>
jarun / toggletouch
Created Nov 4, 2014
toggle the touchpad
View toggletouch
#SYNSTATE=$(xinput list-props "SynPS/2 Synaptics TouchPad" | grep Enabled | grep -Eo '.$')
#if [ $SYNSTATE = 0 ]; then xinput set-int-prop "SynPS/2 Synaptics TouchPad" "Device Enabled" 8 1
#else xinput set-int-prop "SynPS/2 Synaptics TouchPad" "Device Enabled" 8 0
SYNSTATE=$(synclient -l|grep TouchpadOff|cut -d = -f2)
if [ $SYNSTATE = 0 ]; then synclient touchpadoff=1
else synclient touchpadoff=0
jarun / brightness
Created Nov 4, 2014
brightness control
View brightness
curval=`cat /sys/class/backlight/intel_backlight/brightness`
if [ $curval -ge 700 ]; then
echo already max
jarun / lastlog
Created Oct 9, 2015
log the output of a command (as well as show in terminal)
View lastlog
"$@" 2>&1 | tee /tmp/lastlog
jarun / myscript
Last active Feb 13, 2016
myscript [startup script]
View myscript
echo 200 | sudo tee /sys/class/backlight/intel_backlight/brightness
#pkexec /usr/lib/gnome-settings-daemon/gsd-backlight-helper --set-brightness 0
syndaemon -i 1 -d
synclient touchpadoff=1
#ibus exit
#echo powersave | sudo tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
sudo service bluetooth stop
sudo service ssh stop
jarun / blacklist
Last active Feb 13, 2016
blacklisted modules
View blacklist
#arun blacklist
blacklist btrfs
blacklist zlib_deflate
blacklist ufs
blacklist qnx4
blacklist hfsplus
blacklist hfs
blacklist minix
blacklist vfat
blacklist msdos
jarun /
Last active Apr 26, 2016
Manjaro LXQt infinality settings [/etc/X11/xinit/xinitrc.d/]
Xft.antialias: 1
Xft.autohint: 0
Xft.dpi: 96
Xft.hinting: 1
Xft.hintstyle: hintfull
Xft.lcdfilter: lcddefault
Xft.rgba: rgb
jarun /
Created May 23, 2016
Add the same text at the beginning of multiple lines


  • Press Ctrl-v to select the first column of text in the lines you want to change (visual mode).
  • Press Shift-i and type the text you want to insert.
  • Hit Esc, wait 1 second and the inserted text will appear on every line.


$ sed -i 's/^/buku -u /' filename
You can’t perform that action at this time.