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
terraform { | |
backend "remote" { | |
hostname = "app.terraform.io" | |
organization = "secret-org" | |
workspaces { | |
name = "secret-workspace" | |
} | |
} | |
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 | |
# Resets the `staging` branch to the contents of the `production` branch, | |
# all while maintaining history of both trees, harshly. | |
PRODUCTION="${1}" | |
STAGING="${2}" | |
if [ -z "${PRODUCTION}" -o -z "${STAGING}" ]; then | |
echo "Usage: reset.sh <production> <staging>" |
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
package main | |
import ( | |
"encoding/base64" | |
"fmt" | |
"golang.org/x/crypto/nacl/box" | |
) | |
func main() { | |
plaintext := "hello" |
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/guestfish -f | |
!echo "Modifying gentoo-openstack.qcow2" | |
# Fetch the image from the mirrors. | |
# wget -O gentoo-openstack.qcow2 \ | |
# https://distfiles.gentoo.org/experimental/amd64/openstack/gentoo-openstack-amd64-systemd-latest.qcow2 | |
add gentoo-openstack.qcow2 | |
!echo "Starting libguestfs" |
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
import os | |
import re | |
import requests | |
import tarfile | |
from pathlib import Path | |
from tqdm import tqdm | |
from urllib.parse import urlparse | |
INDEX_URL = "https://nodejs.org/dist/index.json" | |
FETCH_URL = 'https://nodejs.org/dist/{version}/node-{version}-linux-x64.tar.xz' |
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
FROM ubuntu | |
RUN exit 1 | cat | |
RUN echo "Hello World" |
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
root@2c7ec00cedc7:/# emerge --info | |
Portage 3.0.18 (python 3.7.3-final-0, embedded, gcc-8, unavailable, 5.10.4-gentoo x86_64) | |
================================================================= | |
System uname: Linux-5.10.4-gentoo-x86_64-with-debian-10.9 | |
Timestamp of repository gentoo: Mon, 05 Apr 2021 00:45:01 +0000 | |
Head commit of repository gentoo: f3f73a67dccda8e0d848f92ee1682fa0749f5088 | |
sh sh | |
ld GNU ld (GNU Binutils for Debian) 2.31.1 | |
Repositories: |
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 | |
set -ex | |
KVER="$(make -s -C "${BUILD_DIR}" kernelversion 2>/dev/null)" | |
BUILD_DIR="/usr/src/build-${KVER}" | |
SRC_DIR=/usr/src/linux | |
function copy_config() { | |
mkdir -vp "${BUILD_DIR}" |
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
index.js |
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
# Set the compiler toolchain to musl-gcc | |
# In gentoo, create the toolchain with crossdev | |
# | |
# crossdev -t x86_64-pc-linux-musl -S | |
# | |
CC = x86_64-pc-linux-musl-gcc | |
# The toolchain sets the ELF Interpreter to /lib/ld-musl-x86_64.so.1 | |
# Either, set the interpreter in the binary to the musl dynamic loader, | |
# which is the same file as the libc, or symlink the expected loader. |
NewerOlder