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: no | |
connection: local | |
vars: | |
action: build | |
image: ubuntu/xenial/amd64 | |
user: ubuntu | |
pubkey_file: "{{ ansible_env.HOME}}/.ssh/id_rsa.pub" | |
machines: | |
- moep-fs00 |
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
[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 |
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
https://tcpdump101.com/ |
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
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 |
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
""" | |
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 |
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/bash | |
# | |
# This script can be used to set the Monitor temperatur and | |
# brightness to nighttime and eye friendly values | |
# Author: c.stein@keyboardinterrupt.com | |
# Usage: | |
# `dim.sh 1` = normal brightness | |
# `dim.sh .5` = half brightness | |
for display in $(xrandr --listmonitors | cut -d " " -f 6) ; do | |
xrandr --output $display --brightness ${1} --gamma 1:.8:.7 |
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
#!/usr/bin/python | |
# | |
# Description: | |
# This script is a custom fact for ansible that turns `crm configure show` and `crm_mon` | |
# output into a fact that can be used in Ansible. i.E. to iterate over all | |
# nodes in a cluster, check for the location of a resource and so on. | |
# | |
# Dependencies: | |
# - xmltodict - https://pypi.org/project/xmltodict/ | |
# |
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/bash | |
for user in /var/spool/cron/crontabs/* | |
do | |
echo #${user}'s crontab: | |
cat ${user} | |
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
#!/usr/bin/env python3 | |
# See http://stackoverflow.com/questions/3581031/backup-mirror-github-repositories/13917251#13917251 | |
# You can find the latest version of this script at | |
# https://gist.github.com/4319265 | |
import os | |
import sys | |
import json | |
import urllib.request | |
import subprocess |
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/bash | |
cat ~/.ssh/config.d/* | |
echo "#################################################" | |
echo "# This will be your new ssh config, is this ok? #" | |
echo "#################################################" | |
read -p "Build Config! (y/n)?" choice | |
case "$choice" in | |
y|Y ) echo "yes" && cat ~/.ssh/config.d/* > ~/.ssh/config ;; | |
n|N ) echo "no";; |
OlderNewer