Skip to content

Instantly share code, notes, and snippets.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
---
- 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
@tmbdev
tmbdev / nvidia-driver.yml
Created March 15, 2017 20:08
Ansible playbook for installing NVIDIA drivers
---
- 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
@tmbdev
tmbdev / install-atom.sh
Created February 9, 2017 05:43
install atom
sudo add-apt-repository ppa:webupd8team/atom
sudo apt-get update
sudo apt-get install atom
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
avahi-browse -p -k _zeromq._tcp --resolve
avahi-publish -s testdb _zeromq._tcp 11000
SELECT *
FROM table
LIMIT 1
OFFSET ABS(RANDOM()) % MAX(SELECT COUNT(*) FROM table), 1)