Skip to content

Instantly share code, notes, and snippets.

View igaskin's full-sized avatar
🏠
Working from home

Isaac Gaskin igaskin

🏠
Working from home
View GitHub Profile
@igaskin
igaskin / Task_List.md
Last active August 29, 2015 14:27
Rito API Challenge: TODO

Preliminary

  • Deploy droplet 🚀
  • Droplet Name: Rito-API-Challenge
  • IP Address: 45.55.59.251
  • Add Source code to repo

TODO

  • Store All Item data as JSON
  • Download sound bits
  • Download .png files for icons
@igaskin
igaskin / 0_reuse_code.js
Last active August 29, 2015 14:27
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@igaskin
igaskin / 95-lolcat
Created January 14, 2016 21:31 — forked from dorentus/95-lolcat
dynamically generated /etc/motd using fortune, cowsay & lolcat,save it as /etc/update-motd.d/95-lolcat.Google `pam_motd` or `update-motd` for more details of dynamically generated message-of-the-day.
#!/bin/bash
# see: http://blog.tomtung.com/2009/11/cowsay-fortune
# http://www.commandlinefu.com/commands/view/3584/remove-color-codes-special-characters-with-sed
# https://github.com/busyloop/lolcat
# https://github.com/dorentus/mruby-lolcat-bin
#
# requires `fortune`, `cowsay`,
# and ruby gem `lolcat` or its mruby version equivalent
export LANG="en_US.UTF-8"
@igaskin
igaskin / Dockerfile
Created June 2, 2017 08:04
Intro to GraphQL in Docker
FROM node:7-alpine
COPY ./ /app
WORKDIR /app
CMD node hello.js
@igaskin
igaskin / bumpme
Last active January 14, 2019 23:09
Mon Jan 14 23:09:47 UTC 2019
podman build --format docker -t gcr.io/pyaxie-bot/pyaxie-bot . && \
gcloud auth print-access-token | podman login -u oauth2accesstoken --password-stdin gcr.io/pyaxie-bot
podman push gcr.io/pyaxie-bot/pyaxie-bot --remove-signatures
@igaskin
igaskin / update_cloud_shell_ip
Created October 3, 2021 17:20
shell script for updating IP in ssh config for Google Cloud Shell
update_cloud_shell_ip () {
IP=$(gcloud alpha cloud-shell ssh --dry-run | grep -o '[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}')
OLDIP=`grep -w cloud-shell -A 1 $HOME/.ssh/config | awk '/HostName/ {print $2}'`
sed -i "" "s/$OLDIP/$IP/g" $HOME/.ssh/config
}