infrastructure engineer // sufficiently advanced technologist
https://github.com/lynncyrin // [email protected]
- [ languages ] Python, Golang, NodeJS, Ruby, JS, PHP, Rust
| 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! |
| 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. | |
| // |
infrastructure engineer // sufficiently advanced technologist
https://github.com/lynncyrin // [email protected]
| # 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 |
| # ~/.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 |
| 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 |