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
/* | |
* This is an example Linux daemon that communicates via dbus. | |
* When run, it will daemonize and print to standard output two lines: | |
* | |
* 1. The PID of the daemon process, which can be used to kill it later with `kill -s SIGINT <pid>' | |
* 2. The unique D-Bus address it will be listening to | |
*/ | |
#include <signal.h> | |
#include <stdio.h> |
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 | |
# +o histexpand is to avoid issues with ! showing up in ticket descriptions. | |
# The rest are just good Bash script practice. | |
set -eu -o pipefail +o histexpand | |
if [[ $# -lt 2 ]]; then | |
echo "usage: $0 <user> <repo>" | |
exit 1 | |
fi |
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
CC := gcc | |
CFLAGS := -g -Wall | |
LIBS := -lallegro | |
SOURCES := $(shell find src/ -type f -name "*.c") | |
OBJECTS := $(SOURCES:.c=.o) | |
TARGET := game | |
all: $(SOURCES) $(TARGET) | |
$(TARGET): $(OBJECTS) |
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 installs Hashicorp tools from their releases page. | |
# | |
# It follows the Checksum Verification recommendation described | |
# at https://www.hashicorp.com/security, and downloads the app | |
# as /usr/local/bin/<app>-<version>. | |
if [[ $# -ne 2 ]]; then | |
echo "usage: $0 <app> <version>" |
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
2021-06-28T11:19:26.579-0500 [DEBUG] Adding temp file log sink: /tmp/terraform-log020064480 | |
2021-06-28T11:19:26.579-0500 [INFO] Terraform version: 1.0.1 | |
2021-06-28T11:19:26.579-0500 [INFO] Go runtime version: go1.16.4 | |
2021-06-28T11:19:26.579-0500 [INFO] CLI args: []string{"/home/damien/bin/terraform-1.0.1", "apply"} | |
2021-06-28T11:19:26.579-0500 [DEBUG] Attempting to open CLI config file: /home/damien/.terraformrc | |
2021-06-28T11:19:26.580-0500 [DEBUG] File doesn't exist, but doesn't need to. Ignoring. | |
2021-06-28T11:19:26.580-0500 [DEBUG] ignoring non-existing provider search directory terraform.d/plugins | |
2021-06-28T11:19:26.580-0500 [DEBUG] ignoring non-existing provider search directory /home/damien/.terraform.d/plugins | |
2021-06-28T11:19:26.580-0500 [DEBUG] ignoring non-existing provider search directory /home/damien/.local/share/terraform/plugins | |
2021-06-28T11:19:26.580-0500 [DEBUG] ignoring non-existing provider search directory /home/damien/.local/share/flatpak/exports/share/terraform/plugins |
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
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 | |
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 | |
inet 127.0.0.1/8 scope host lo | |
valid_lft forever preferred_lft forever | |
inet6 ::1/128 scope host | |
valid_lft forever preferred_lft forever | |
2: dummy0: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN group default qlen 1000 | |
link/ether 1a:ee:43:6d:a6:a5 brd ff:ff:ff:ff:ff:ff | |
3: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000 | |
link/ether f2:3c:92:3e:bd:f6 brd ff:ff:ff:ff:ff:ff |
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
module Main where | |
import Control.Monad | |
import Data.List (find) | |
import Data.Maybe | |
import Network.HTTP | |
import System.Exit | |
import System.IO | |
import Text.XML.Light |
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
job "hubot" { | |
region = "us" | |
datacenters = ["us-central"] | |
type = "service" | |
group "hubots" { | |
count = 1 | |
task "hubot" { |
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
group "certrenewer" { | |
count = 1 | |
task "certrenewer" { | |
driver = "raw_exec" | |
config { | |
command = "cert-renewer" | |
} | |
service { |
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
job "damienradtkecom" { | |
region = "us" | |
datacenters = ["us-central"] | |
type = "service" | |
group "server" { | |
count = 1 | |
task "server" { |
NewerOlder