Skip to content

Instantly share code, notes, and snippets.

View coilysiren's full-sized avatar
🛠️
software engineering

kai [they] coilysiren

🛠️
software engineering
View GitHub Profile
Hotkey script 1:
```
#Requires AutoHotkey v2.0
#SingleInstance
!e:: {
# via the following link, slightly modified
# https://github.com/nginxinc/ansible-role-nginx/blob/ead9de5ce6d29b299d8b139a82178926bb0f2c4b/tasks/opensource/install-source.yml
- name: (Centos/RHEL) Install build tools
yum:
name:
- "@Development tools"
- ca-certificates
- gcc
- gd
https://drive.google.com/file/d/1bv4dvrvrRMF99F9xs3Bgv1aqgYV_7iI5/view?usp=sharing
func isHappy(n int) bool {
numbersSeen := make(map[int]bool)
for {
n = processNumber(n)
// this number is repeating infinitely
if numbersSeen[n] == true {
return false
}
// happy number yay!
@coilysiren
coilysiren / main.go
Created April 6, 2020 22:44
replica placement coding test
package main
import (
"fmt"
"strings"
)
// Build a list of replica sets from a list of hosts and the number of
// hosts per replica set provided as input.
//
@coilysiren
coilysiren / resume.md
Last active March 27, 2020 23:22
backup markdown version of my resume
@coilysiren
coilysiren / .pgpass
Created February 20, 2020 04:49
psql / pgcli with pgpass example
# hostname:port:database:username:password
lynn-db-one.us-west-2.rds.amazonaws.com:5432:database:username:password
lynn-db-two.us-west-2.rds.amazonaws.com:5432:database:username:password
@coilysiren
coilysiren / .profile
Last active June 12, 2019 05:59
personal WSL (Windows Subsystem for Linux) dev setup
# ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# exists.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.
# the default umask is set in /etc/profile; for setting the umask
# for ssh logins, install and configure the libpam-umask package.
#umask 022
docker-dev run base-image/python my-project-name tests/my-tests.py
docker-dev run base-image/go my-project-name tests/my-tests.go
@coilysiren
coilysiren / .travis.yml
Last active April 28, 2018 04:39
travis ci pull request cleanup bot script
sudo: required # possibly not needed, I haven't tested it
before_script:
- '[ "${TRAVIS_PULL_REQUEST}" = "false" ] || bin/pr-cleanup-script.sh' # dont run on both PR and branch builds
script:
- make lint # fail the build if cleanup scripts detect changes
- make test # or whatever your test script is