Skip to content

Instantly share code, notes, and snippets.

View rymcol's full-sized avatar

Ryan Collins rymcol

View GitHub Profile
@rymcol
rymcol / logs.fish
Created July 9, 2020 14:08
just a handy fish function to make logs [app] [namespace] find a pod that matches metadata.app=[app] in [namespace] and produce logs for it
function logs
if test (count $argv) -ge 2
set app $argv[1]
set namespace $argv[2]
else
echo "You must provide two arguments… `logs [app] [namespace]`"
return 2
end
kubectl logs (kubectl get pods -l app=$app -o jsonpath="{.items[0].metadata.name}" -n $namespace) -n $namespace -f
@rymcol
rymcol / merged.fish
Last active June 27, 2019 12:15
When on a feature branch that has been merged remotely, type `merged [base_branch]` to checkout that base, update it, and delete the feature branch
function merged
set branch (git branch | grep \* | cut -d ' ' -f2)
if count $argv > /dev/null
set base $argv[1]
else
echo "You must provide the base branch as an argument… `merged [base]`"
return 2
end
@rymcol
rymcol / cpanel_account_delete.py
Created January 9, 2019 13:26
Deletes accounts from a cPanel server
#!/usr/bin/env python
# encoding=utf8
from urllib import urlencode
import httplib2, base64, json
filewithaccts = '/path/to/txt/full/of/usernames/accts.txt'
#WARNING THIS WILL DELETE ACCOUNTS
resellerlogin = 'root' #YOU MUST USE ROOT FOR THE SERVER
resellerpass = ''

BACKEND SWIFT/GO DEVELOPER (FREELANCE, 100% REMOTE, EU TIMEZONE)

We are searching an experienced backend developer for Moonshot Energy, a well-funded AI startup in the renewable energies sector located in Germany.

You will play a major role in helping us revolutionize and rethink the energy sector in Europe.

A substantial track record in backend development and the ability to overlap some Berlin local time for team meetings are a must-have.

Your job:

@rymcol
rymcol / krmosh.fish
Created June 21, 2018 11:17
workaround for kr to use mosh instead of ssh
function krmosh
mosh --experimental-remote-ip=remote $argv
end
@rymcol
rymcol / Senior Android Kotlin Developer (Freelance, 100% Remote, EU).md
Last active May 17, 2018 17:13
Searching for an experienced Android Lead

Senior Android Kotlin Developer (Freelance, 100% Remote, EU, Short Term Contract, Full-Time)

I am searching an experienced Kotlin developer for Moonshot Energy, a disruptive, well-funded high-tech startup in the renewable energies sector located in Germany.

You will fulfil a temporary role in helping us revolutionize and rethink the energy sector in Europe with things like artificial intelligence, machine learning, and new conversational user interfaces.

A substantial track record in backend development and a good amount of overlap to Berlin local time are a must-have.

Your job:

  • build our native chat-based Android app
@rymcol
rymcol / EXPERIENCED GO DEVELOPER (FREELANCE, 100% REMOTE, EU TIMEZONE).md
Last active May 17, 2018 16:42
Searching for an experienced go developer

EXPERIENCED GO DEVELOPER (FREELANCE, 100% REMOTE, EU TIMEZONE)

We are searching an experienced Golang developer for Moonshot Energy, a disruptive, well-funded high-tech startup in the renewable energies sector located in Germany.

You will play a major role in helping us revolutionize and rethink the energy sector in Europe with things like artificial intelligence, machine learning, and new conversational user interfaces.

A substantial track record in backend development and a good amount of overlap to Berlin local time are a must-have.

Your job:

@rymcol
rymcol / vscode.fish
Created March 7, 2018 12:12
quick open in vscode for fish
function vscode
open -a /Applications/Visual\ Studio\ Code.app .
end
@rymcol
rymcol / Packaging_Example.sh
Created February 2, 2018 15:33 — forked from asmaloney/Packaging_Example.sh
This is an example of script to package up and create a DMG for a Mac OS X app. Details may be found here: http://asmaloney.com/2013/07/howto/packaging-a-mac-os-x-application-using-a-dmg/
#!/bin/bash
# by Andy Maloney
# http://asmaloney.com/2013/07/howto/packaging-a-mac-os-x-application-using-a-dmg/
# make sure we are in the correct dir when we double-click a .command file
dir=${0%/*}
if [ -d "$dir" ]; then
cd "$dir"
fi
@rymcol
rymcol / ssh-copy-kr-id.sh
Created January 26, 2018 12:06
bash/zsh alias for copying krypton (kr) public ssh key through ssh-copy-id, for macOS
echo 'alias ssh-copy-kr-id="ssh-copy-id -f -i ~/.ssh/id_krypton.pub' >> ~/.bash_profile
echo 'alias ssh-copy-kr-id="ssh-copy-id -f -i ~/.ssh/id_krypton.pub' >> ~/.zshenv