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 ( | |
"fmt" | |
"log" | |
"net/http" | |
"net/http/httputil" | |
"net/url" | |
"strings" | |
"time" |
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 namesgenerator generates random names. | |
// | |
// This package is officially "frozen" - no new additions will be accepted. | |
// | |
// For a long time, this package provided a lot of joy within the project, but | |
// at some point the conflicts of opinion became greater than the added joy. | |
// | |
// At some future time, this may be replaced with something that sparks less | |
// controversy, but for now it will remain as-is. | |
// |
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
--- | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: api-deployment | |
labels: | |
name: api-deployment | |
spec: | |
replicas: 2 | |
selector: |
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
# syntax = docker/dockerfile:1.0-experimental | |
FROM golang:1.22-alpine as BUILD | |
# ARG NETRCPASSWORD | |
# ENV NETRCPASSWORD "${NETRCPASSWORD}" | |
# ENV GOPRIVATE "github.com/example/*" | |
ENV GOOS "linux" | |
ENV GOVCS "*:all" |
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 ( | |
"context" | |
"fmt" | |
"log" | |
"net/http" | |
"os" | |
"os/signal" | |
"strconv" |
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 --posix | |
# -*- Coding: UTF-8 -*- # | |
# -*- System: Linux -*- # | |
# -*- Usage: *.* -*- # | |
# See Bash Set-Options Reference Below | |
set -euo pipefail # (0) | |
set -o xtrace # (6) |
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 --posix | |
# -*- Coding: UTF-8 -*- # | |
# -*- System: Linux -*- # | |
# -*- Usage: *.* -*- # | |
# Author: Jacob Sanders (GitHub - Segmentational) | |
# See Bash Set-Options Reference Below |
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
find . -name "node_modules" -type "d" -exec "rm -rf {} || true" \; | |
find . -name "*.js" -type "f" -exec rm -f {} \; | |
find . -name "*.js.map" -type "f" -exec rm -f {} \; | |
find . -name "*.d.ts" -type "f" -exec rm -f {} \; | |
find . -name "*.ts.map" -type "f" -exec rm -f {} \; | |
find . -name "*.d.ts.map" -type "f" -exec rm -f {} \; |
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 Cryptography from "crypto"; | |
/*** | |
* @example | |
* void (async () => { | |
* const parent = new Abstract("root"); | |
* | |
* const child = new Abstract("child-1", parent); | |
* | |
* new Abstract("child-3", child); |
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
; For reference, every programming language's package-manager | |
; has a similar *.*rc (dot-rc) related setup (few exceptions | |
; include Go, C, etc.) | |
; | |
; Defaults := $ npm config ls --list | |
; -> $ npm config ls --json | |
fund = false | |
cache = ~/.npm |
NewerOlder