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
| from concurrent import interpreters | |
| interps = [ | |
| interpreters.create(), | |
| interpreters.create(), | |
| interpreters.create(), | |
| ] | |
| def fib(n): |
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
| *.gpg diff=git |
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/env -S cargo +nightly -Zscript | |
| ---cargo | |
| [package] | |
| edition = "2024" | |
| [dependencies] | |
| rcgen = "0.13.2" | |
| --- | |
| use rcgen::{ |
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 | |
| enable accept | |
| accept 1234 | |
| while read -u $ACCEPT_FD -t 1 line; do | |
| echo "$line" | |
| done | |
| echo "HTTP/1.1 200 OK" >&$ACCEPT_FD | |
| echo "Content-Type: text/plain" >&$ACCEPT_FD |
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
| terraform { | |
| backend "remote" { | |
| hostname = "app.terraform.io" | |
| organization = "secret-org" | |
| workspaces { | |
| name = "secret-workspace" | |
| } | |
| } | |
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 | |
| # 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 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
| package main | |
| import ( | |
| "encoding/base64" | |
| "fmt" | |
| "golang.org/x/crypto/nacl/box" | |
| ) | |
| func main() { | |
| plaintext := "hello" |
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/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 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
| 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 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
| FROM ubuntu | |
| RUN exit 1 | cat | |
| RUN echo "Hello World" |
NewerOlder