Skip to content

Instantly share code, notes, and snippets.

View KeyboardInterrupt's full-sized avatar
🐍
Living by the Zen of Python `import this`

KeyboardInterrupt

🐍
Living by the Zen of Python `import this`
View GitHub Profile
@KeyboardInterrupt
KeyboardInterrupt / systemdunit.py
Created February 26, 2019 08:19 — forked from esamattis/systemdunit.py
Install Systemd units using Ansible
"""
Install Systemd units using Ansible
Handles unit restarting and systemd daemon reloading when the unit changes.
Also stops the unit correctly when uninstalled
In your playbook put this file to library/systemdunit.py and make sure the
server has python-sh package installed
@KeyboardInterrupt
KeyboardInterrupt / gist:22d5fcfee2019587f60e00ab7b7a5b56
Created October 29, 2018 07:02
git clone a github organisation
ORGANISATION="awesome-devops"
curl -s "https://$GITHUB_AT:@api.github.com/orgs/${ORGANISATION}/repos?per_page=200" | jq .[].ssh_url | xargs -n 1 git clone
@KeyboardInterrupt
KeyboardInterrupt / Tilix Configuration
Last active July 16, 2018 08:38
To load this configuration into Tilix pipe it into: `dconf load /com/gexperts/Tilix/` i.E. curl https://gist.githubusercontent.com/KeyboardInterrupt/838f489e4e86ae153f912283018a8428/raw/cb172bc178e5764edde8d08758f0661f38f42834/Tilix%2520Configuration | dconf load /com/gexperts/Tilix/
[profiles]
list=['2b7c4080-0ddd-46c5-8f23-563fd3ba789d', '4cfe5cb4-235e-40cd-ad8a-5ed263275340', '51ef3ee5-6189-4cdf-929e-f9f41690e5f1']
[profiles/4cfe5cb4-235e-40cd-ad8a-5ed263275340]
foreground-color='#EEEEEEEEECEC'
visible-name='DANGER!'
palette=['#000000', '#CC0000', '#4D9A05', '#C3A000', '#3464A3', '#754F7B', '#05979A', '#D3D6CF', '#545652', '#EF2828', '#89E234', '#FBE84F', '#729ECF', '#AC7EA8', '#34E2E2', '#EDEDEB']
badge-color-set=true
cursor-colors-set=false
highlight-colors-set=false
- hosts: localhost
become: no
connection: local
vars:
action: build
image: ubuntu/xenial/amd64
user: ubuntu
pubkey_file: "{{ ansible_env.HOME}}/.ssh/id_rsa.pub"
machines:
- moep-fs00