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 | |
import subprocess | |
import json | |
import sys | |
# Function to execute a command and return its output | |
def execute_command(command): | |
result = subprocess.run(command, stdout=subprocess.PIPE, shell=True) | |
return result.stdout.decode('utf-8') |
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 these packages (use your favorite AUR tool here) | |
yay -S minikube kubectl docker-machine-driver-kvm2 libvirt qemu-headless ebtables | |
# Get libvirt going | |
sudo systemctl enable libvirtd.service | |
sudo usermod -a -G libvirt $(whoami) | |
# This fix thanks to http://blog.programmableproduction.com/2018/03/08/Archlinux-Setup-Minikube-using-KVM/ | |
sudo virsh net-autostart default |
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 bash | |
if [ -z "${TRELLO_API_KEY}" -o -z "${TRELLO_API_TOKEN}" ]; then | |
echo "Go to https://trello.com/app-key and export Personal Token as TRELLO_API_KEY, then manually generate a token and export as TRELLO_API_TOKEN" | |
exit 1 | |
fi | |
if [ -z "${1}" ]; then | |
echo "Provide the board ID (8 character alphanumeric from the URL) as an argument" | |
exit 2 | |
fi | |
board="${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
<?xml version="1.0" encoding="UTF-8"?> | |
<xsl:stylesheet version="2.0" | |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | |
xmlns:ac="http://www.atlassian.com/schema/confluence/4/ac/" | |
xmlns:ri="http://www.atlassian.com/schema/confluence/4/ri/" | |
xmlns:acxhtml="http://www.atlassian.com/schema/confluence/4/" | |
xmlns:lookup="http://www.fundi.com.au/"> | |
<!-- | |
Original sources/credit: |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- | |
Stylesheet to convert a JIRA report list exported as XML into | |
basic markdown, including all non-empty fields. | |
To run: saxon-xslt -xsl:jira2md.xsl jira-export.xml | |
--> | |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:functx="http://www.functx.com" xmlns:fn="http://www.w3.org/2005/xpath-functions" xmlns:xs="http://www.w3.org/2001/XMLSchema" version="3.0"> | |
<xsl:output omit-xml-declaration="yes" method="text" indent="no"/> | |
<xsl:strip-space elements="*"/> | |
<xsl:template match="/"> |
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/expect | |
set timeout 600 | |
set lpass [lindex $argv 0] | |
set arguments [lrange $argv 1 end] | |
if {$lpass eq "" || $arguments eq ""} { | |
puts "sussh: Login to interactive root shell using sudo password from lpass." | |
puts "The credential is sent via expect, not via any command line option.\n" | |
puts "Usage: sussh <lpass-key> <ssh-args ...>" | |
puts " lpass-key: Suffix of a lpass record with the prefix 'ssh-'" | |
puts " ssh-args: username, hostname, port, alias or other ssh options\n" |
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
<?php | |
/* | |
+--------------------------------------------------------------------+ | |
| CiviCRM version 4.1 | | |
+--------------------------------------------------------------------+ | |
| Copyright CiviCRM LLC (c) 2004-2011 | | |
+--------------------------------------------------------------------+ | |
| This file is a part of CiviCRM. | | |
| | | |
| CiviCRM is free software; you can copy, modify, and distribute it | |