This file contains hidden or 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
define theme: | |
description = "gruvbox.theme: A gruvbox-inspired theme" | |
colors: | |
exclusion = "color on color8" | |
today = "color208" | |
holiday = "color13" | |
label = "color243" | |
ids = "color4" | |
debug = "color14" | |
palette: |
This file contains hidden or 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
# There's another method I spotted in trombik/ansible-role-dovecot. In the playbook, do this: | |
- name: Include OS-specific variables | |
include_vars: "{{ ansible_os_family }}.yml" | |
# In {{ ansible_os_family }}.yml: | |
__rolename_variable: some_value | |
# In defaults/main.yml: | |
rolename_variable: "{{ __rolename_variable }}" |
This file contains hidden or 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 | |
set -e | |
EVENT_NAME="$1" | |
[ "$EVENT_NAME" = "live-updated" ] || exit 42 | |
if [ ! -e "${ACME_STATE_DIR}" ]; then | |
exit 42 | |
fi |
This file contains hidden or 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 | |
EVENT_NAME="$1" | |
CH_HOSTNAME="$2" | |
CH_TARGET_FILENAME="$3" | |
CH_TXT_VALUE="$4" | |
case "${EVENT_NAME}" in | |
challenge-dns-start) | |
echo "Use the following TXT value: _acme-challenge.${CH_HOSTNAME} TXT ${CH_TXT_VALUE}" | |
echo 'Waiting for 300 seconds' |
This file contains hidden or 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
require 'facter' | |
Facter.add(:users) do | |
setcode do | |
users = [] | |
File.open('/etc/passwd', 'r').readlines.each do |line| | |
if /^[^#:]+:[^:]+:[^:]+:[^:]+:[^:]+:[^:]+:[^:]+$/.match?(line) | |
users.push(line[/^(?<user>[^:]+)/, 'user']) | |
end | |
end | |
users |
This file contains hidden or 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
newServer('127.0.0.1:4201') | |
addLocal('127.0.0.1:53') | |
addLocal('10.1.0.1:53', true, true, 0) | |
addLocal('203.0.113.42:53', true, true, 0) | |
setACL('0.0.0.0/0') | |
internalDomains = newSuffixMatchNode(); | |
internalDomains:add(newDNSName("alpha.example.com.")) | |
internalDomains:add(newDNSName("beta.example.com.")) | |
addAction(RegexRule('^(alpha|beta)\\.example\\.com$'), AllowAction()) | |
addAction(AndRule({NotRule(makeRule('10.0.0.0/8')), SuffixMatchNodeRule(internalDomains)}), RCodeAction(dnsdist.REFUSED)) |
This file contains hidden or 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/perl | |
use Env; | |
use strict; | |
my $device = 'enp0s25'; | |
my $connection = 'Hotspot'; | |
my @hotspot_connections = ( | |
'4d2eab82-e19c-4c0b-8305-e0eacc24a67a', | |
'1decf25a-da88-48e1-9077-3f9b883f92b3', |
This file contains hidden or 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
[defaults] | |
hostfile = some-environment | |
vault_password_file = bin/gpg-wrapper.sh |
This file contains hidden or 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
tasks: | |
- name: purge-old-kernels | |
script: '/home/towo/bin/purge-old-kernels -qy' | |
with_items: "{{ ansible_mounts }}" | |
when: ansible_distribution == 'Ubuntu' and item['mount'] == '/boot' and item['size_available' ] < 128000000 |
This file contains hidden or 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
set -g update-environment 'DISPLAY SSH_ASKPASS SSH_AUTH_SOCK SSH_AGENT_PID SSH_CONNECTION WINDOWID XAUTHORITY DBUS_SESSION_BUS_ADDRESS' |