Skip to content

Instantly share code, notes, and snippets.

xrandr --output DP1 --scale 1.6x1.6
xrandr --output DP1 --panning 1920x1080+3200+0
remove Lock = Caps_Lock
remove Control = Control_L
keysym Control_L = Caps_Lock
keysym Caps_Lock = Control_L
add Lock = Caps_Lock
add Control = Control_L
2017-11-21 16:50:24,213 : DEBUG : Fast version of gensim.models.doc2vec is being used
2017-11-21 16:50:24,219 : INFO : 'pattern' package not found; tag filters are not available for English
2017-11-21 16:50:24,220 : WARNING : no word id mapping provided; initializing from corpus, assuming identity
2017-11-21 16:50:24,220 : INFO : using serial LSI version on this node
2017-11-21 16:50:24,220 : INFO : updating model with new documents
2017-11-21 16:50:24,220 : INFO : preparing a new chunk of documents
2017-11-21 16:50:24,220 : DEBUG : converting corpus to csc format
2017-11-21 16:50:24,220 : INFO : using 100 extra samples and 2 power iterations
2017-11-21 16:50:24,220 : INFO : 1st phase: constructing (9, 105) action matrix
2017-11-21 16:50:24,220 : INFO : orthonormalizing (9, 105) action matrix
@nmoran
nmoran / check_battery.sh
Created August 26, 2016 20:58
Quick bash script to check battery status from acpi command and alert using using zenity.
#!/bin/bash
warn_on=20
debug=0
discharging=`acpi | grep Discharging | wc -l` # will be 1 if discharging and 0 if chargin
if [ $discharging -eq 1 ]; then # if discharging, check percentage
percentage_remaining=`acpi | grep -o [0-9]*% | sed s/%//g`
echo "Remaining ${percentage_remaining}"