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
# -*- coding: utf-8 -*- | |
# <nbformat>3.0</nbformat> | |
# <codecell> | |
import openfst | |
from scipy.ndimage import measurements,filters | |
from collections import defaultdict | |
from pylab import * | |
import unicodedata |
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
! we use the Caps_Lock and Return keys for both space and carriage return | |
! unshifted is space, shifted is carriage return (fortunately, neither has | |
! a shifted meaning on a normal keyboard) | |
! space bar | |
keycode 65 = Mode_switch | |
! caps lock key | |
keycode 66 = space space Return Return | |
! Return key |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
SELECT * | |
FROM table | |
LIMIT 1 | |
OFFSET ABS(RANDOM()) % MAX(SELECT COUNT(*) FROM table), 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
avahi-browse -p -k _zeromq._tcp --resolve | |
avahi-publish -s testdb _zeromq._tcp 11000 |
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
eunomia:~$ cat .vnc/xstartup | |
xmodmap -e 'keysym Alt_L = Meta_L' | |
xmodmap -e 'keysym Alt_R = Meta_R' | |
xmodmap -e 'clear Mod1' | |
xmodmap -e 'add Mod1 = Meta_L Meta_R' | |
(sleep 1; xsetroot -solid '#223') & | |
icewm | |
eunomia:~$ cat .icewm/preferences | |
WorkspaceNames=" 1 "," 2 "," 3 "," 4 "," 5 "," 6 " | |
eunomia:~$ cat .icewm/toolbar |
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
sudo add-apt-repository ppa:webupd8team/atom | |
sudo apt-get update | |
sudo apt-get install atom |
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
--- | |
- hosts: localhost | |
become: yes | |
vars: | |
driver: 378.13 | |
driver_url: http://us.download.nvidia.com/XFree86/Linux-x86_64/{{driver}}/NVIDIA-Linux-x86_64-{{driver}}-no-compat32.run | |
tasks: | |
- get_url: dest=. url={{driver_url}} | |
- command: systemctl isolate multi-user.target | |
- service: name=nvidia-docker state=stopped |
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
--- | |
- name: stop docker | |
service: | |
name: docker | |
state: stopped | |
ignore_errors: true | |
# - file: path=/home/docker_data state=directory mode=0755 | |
# - shell: jq '.["graph"] = "/home/docker_data"' /etc/docker/daemon.json > /etc/docker/daemon.json.new && mv -b /etc /docker/daemon.json.new /etc/docker/daemon.json |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.