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 |
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 * as Network from "net"; | |
/*** | |
* @module Test | |
* | |
* **TSC Configuration** | |
* | |
* ```json | |
* { | |
* "compilerOptions": { |
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 Utility from "util"; | |
process.argv = [...process.argv, "hello", "--debug", "--secrets-manager=local-azure-test", "another", "--key", "value", "--debug"]; | |
class Arguable extends String { | |
position?: number; | |
original?: string; | |
constructor(value: string | Arguable) { | |
super(value); |
NewerOlder