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
#Requires AutoHotkey v2.0 | |
; swap semicolon & colon for vim | |
*vkBA::{ | |
If (GetKeyState("Shift")){ | |
Send "`;" | |
} | |
else { | |
Send ":" | |
} | |
} |
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 bash | |
release_url=$1 | |
checksum_url=$2 | |
binary_name=$3 | |
cleanup=${4:-true} | |
function checksum() { | |
release_name=$1 | |
checksum_name=$2 | |
cs="no such checksum" |
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
DOCKER_RUN := docker run --rm -v $(shell pwd):/src -w /src | |
NODE_IMAGE := docker.io/node:18 | |
NPM := $(DOCKER_RUN) $(NODE_IMAGE) npm | |
lint: | |
$(NPM) install | |
$(NPM) run lint |
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 ( | |
"bufio" | |
"fmt" | |
"os" | |
"regexp" | |
"strconv" | |
"strings" | |
) |
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 | |
func main() { | |
panic("test panic") | |
} |
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 dns | |
import ( | |
"fmt" | |
"io/ioutil" | |
ddns "github.com/go-zen-chu/customdns/domain/dns" | |
) | |
type etcHostsRepository struct { |
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
# returns 0 if file should be written | |
function confirm_overwrite() { | |
declare file=$1 | |
if [[ -f "${file}" ]] ; then | |
read -r -p "${file} exists. overwrite? [y/n]" -n 1 response | |
echo "" | |
case "${response}" in | |
y|Y ) return 0 ;; | |
*) echo "abort overwrite"; return 1 ;; | |
esac |
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 python | |
# -*- coding: utf-8 -*- | |
import os | |
import sys | |
import argparse | |
import pytz | |
import pprint | |
from jira import JIRA | |
from datetime import datetime |
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 ( | |
"context" | |
"flag" | |
"github.com/google/go-github/v24/github" | |
"golang.org/x/oauth2" | |
"log" | |
"net/url" | |
) |
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
# Your init script | |
# | |
# Atom will evaluate this file each time a new window is opened. It is run | |
# after packages are loaded/activated and after the previous editor state | |
# has been restored. | |
# | |
# An example hack to log to the console when each text editor is saved. | |
# | |
# atom.workspace.observeTextEditors (editor) -> | |
# editor.onDidSave -> |
NewerOlder