This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pip3 freeze --local | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip3 install -U |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# To find which FS support trim, we check that DISC-MAX (discard max bytes) | |
# is great than zero. Check discard_max_bytes documentation at | |
# https://www.kernel.org/doc/Documentation/block/queue-sysfs.txt | |
# | |
for fs in $(lsblk -o MOUNTPOINT,DISC-MAX,FSTYPE | grep -E '^/.* [1-9]+.* ' | awk '{print $1}'); do | |
fstrim "$fs" | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DISPLAY=:1.0 xinit /path/to/program -- :1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%%Itemize | |
%SCRIPT | |
txt = cursor.selectedText() | |
txt = txt.replace(/^/gm, "\t\\item ") | |
editor.write("\\begin{itemize}\n"+txt+"\n\\end{itemize}\n") | |
cursor.clearSelection() | |
%%Enumerate | |
%SCRIPT | |
txt = cursor.selectedText() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# ~/.bashrc | |
# | |
# If not running interactively, don't do anything | |
[[ $- != *i* ]] && return | |
date | |
echo | |
fortune | cowsay -f $(ls /usr/share/cows/ | shuf -n1) | |
echo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
date | |
echo | |
fortune | cowsay -f $(gls /usr/local/Cellar/cowsay/3.04/share/cows/ | gshuf -n1) | |
echo | |
if [ -f /etc/bash_completion ]; then | |
. /etc/bash_completion | |
fi | |
if [ -f $HOME/.git-completion.bash ]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[global] | |
floatX = float32 | |
device = gpu | |
config.openmp = True | |
OMP_NUM_THREADS=8 | |
config.dnn.conv.algo_fwd='winograd' | |
config.dnn.conv.algo_bwd_data='winograd' | |
config.gcc.cxxflags="-march=native" | |
[lib] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# yaourtrc - Configuration for yaourt | |
# | |
# See yaourtrc(5) for more information | |
# | |
# | |
# General | |
#AUTOSAVEBACKUPFILE=0 | |
DEVEL=1 | |
DEVELSRCDIR="/pkg/devel" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
startup_message off | |
hardstatus alwayslastline '%{= G}[ %{G}%H %{g}][%= %{= w}%?%-Lw%?%{= R}%n*%f %t%?%{= R}(%u)%?%{= w}%+Lw%?%= %{= g}][ %{y}Load: %l %{g}][%{B}%Y-%m-%d %{W}%c:%s %{g}]' | |
defscrollback 10000 | |
termcapinfo xterm* ti@:te@ | |
defutf8 on | |
defencoding utf8 |
OlderNewer