Skip to content

Instantly share code, notes, and snippets.

Avatar

Kevin Krummenauer kekru

View GitHub Profile
@kitsonk
kitsonk / bronto.ts
Last active Mar 20, 2021
Example Deno Static Server
View bronto.ts
import {
green,
cyan,
bold,
yellow,
red
} from "https://deno.land/std@v0.20.0/fmt/colors.ts";
import {
Application,
@rufoa
rufoa / Jenkinsfile
Created May 13, 2019
Jenkins [skip ci] implementation for multi-branch declarative pipeline
View Jenkinsfile
// change 'agent' lines as appropriate
pipeline {
agent none
stages {
stage('Run CI?') {
agent any
steps {
@thaJeztah
thaJeztah / README.md
Last active Jan 14, 2021
Docker Changelog CLI plugin
View README.md
View Invoke-Hyper.ps1
param([String]$hyperProfile = 'default')
if ( Test-Path $env:USERPROFILE\.hyper.js ) { Remove-Item $env:USERPROFILE\.hyper.js }
& cmd.exe "/c mklink $env:USERPROFILE\.hyper.js $env:USERPROFILE\.hyper\launch\$hyperProfile.hyper.js" *> $null
& hyper *> $null
@thaJeztah
thaJeztah / README.md
Last active Sep 8, 2019
Docker Compose as a Docker CLI plugin
View README.md
@dettmering
dettmering / ping.1m.py
Created Jan 30, 2019
BitBar plugin for showing host availability
View ping.1m.py
#!/usr/local/bin/python3
import os
hosts = [
'google.com',
'microsoft.com'
]
header = []
@ww9
ww9 / gist_blog.md
Last active May 7, 2021
Using Gist as a blog #blog
View gist_blog.md

Blogging with Gist

Gist simplicity can turn blogging into a liberating experience.

Pros Cons
Free, simple, fast, hassle-free Image upload in comments only
Tagging No post pinning
Search Doesn't look like a blog
Revisions Unfriendly URLs
@MetalArend
MetalArend / swarm.yml
Last active May 7, 2021
Run a GitLab Runner on your Swarm
View swarm.yml
version: '3.4'
secrets:
# Find your registration token at: "Your project" > "Settings" > "CI/CD" > "Runners settings" > "Specific Runners" (look for registration token)
# Register it as `GITLAB_REGISTRATION_TOKEN`: `docker secret create GITLAB_REGISTRATION_TOKEN YOUR_REGISTRATION_TOKEN`
GITLAB_REGISTRATION_TOKEN:
external: true
# Find your personal access token at: "Your user account" > "Settings" > "Access Tokens" > "Create personal access token" (for api)
# Register it as `GITLAB_PERSONAL_ACCESS_TOKEN`: `docker secret create GITLAB_PERSONAL_ACCESS_TOKEN <YOUR ACCESS TOKEN>`
@legowerewolf
legowerewolf / hyperstart.bat
Last active May 2, 2021
Selecting a shell on startup in the Hyper terminal emulator
View hyperstart.bat
@ECHO off
:top
CLS
ECHO Choose a shell:
ECHO [1] cmd
ECHO [2] bash
ECHO [3] PowerShell
ECHO [4] Python
ECHO.
ECHO [5] restart elevated
View npm exposed environment variables
// per https://docs.npmjs.com/misc/scripts, npm exposes a bunch of variables to
// the environment prefixed with npm_config_*, npm_package_* and npm_lifecycle_*.
// Here's a list of all variables exposed in my setup.
npm_config_access=
npm_config_allow_same_version=
npm_config_also=
npm_config_always_auth=
npm_config_argv='{"remain":[],"cooked":["run","foo"],"original":["run","foo"]}'
npm_config_auth_type=legacy