Skip to content

Instantly share code, notes, and snippets.

Avatar

Niall nmoran

  • Ireland
View GitHub Profile
View gensim issue backtrace
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
View .xmodmap
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
View screen_scaling_commnads
xrandr --output DP1 --scale 1.6x1.6
xrandr --output DP1 --panning 1920x1080+3200+0
@nmoran
nmoran / check_battery.sh
Created Aug 26, 2016
Quick bash script to check battery status from acpi command and alert using using zenity.
View check_battery.sh
#!/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}"
You can’t perform that action at this time.