Skip to content

Instantly share code, notes, and snippets.

refactor everything

Michael K tsal

refactor everything
View GitHub Profile
tsal / sftp.yaml
Created Jun 14, 2020 — forked from jujhars13/sftp.yaml
kubernetes pod example for atmoz/sftp
View sftp.yaml
apiVersion: v1
kind: Namespace
name: sftp
kind: Service
apiVersion: v1
tsal /
Created Feb 25, 2020 — forked from peterforgacs/
Running Windows 10 on AWS EC2

Running Windows 10 on AWS EC2

Downloading the image

Download the windows image you want.

AWS vmimport supported versions: Microsoft Windows 10 (Professional, Enterprise, Education) (US English) (64-bit only)

So Home wont work.

tsal / text_adv-part-1.go
Last active Oct 26, 2019 — forked from scottjbarr/text_adv-part-1.go
Writing a Text Adventure Game in Go - Part 1 (uses a *Location for Game.CurrentLocation)
View text_adv-part-1.go
package main
import (
type Game struct {
Welcome string
tsal / send-sms.go
Created Feb 26, 2019 — forked from ivajloip/send-sms.go
Sending an SMS Text Message using AWS SNS service in GoLang
View send-sms.go
//assumes you have the following environment variables setup for AWS session creation
package main
import (
View The Three Go Landmines.markdown

There are three easy to make mistakes in go. I present them here in the way they are often found in the wild, not in the way that is easiest to understand.

All three of these mistakes have been made in Kubernetes code, getting past code review at least once each that I know of.

  1. Loop variables are scoped outside the loop.

What do these lines do? Make predictions and then scroll down.

func print(pi *int) { fmt.Println(*pi) }
View auth.php
* <pre>
* Invision Power Services
* IP.Board v3.4.6
* Login handler abstraction : LDAP method
* Last Updated: $Date: 2013-03-05 08:57:05 -0500 (Tue, 05 Mar 2013) $
* </pre>
tsal /
Created Nov 14, 2013 — forked from jookyboi/
Python-related modules and guides.


  • lxml - Pythonic binding for the C libraries libxml2 and libxslt.
  • boto - Python interface to Amazon Web Services
  • Django - Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design.
  • Fabric - Library and command-line tool for streamlining the use of SSH for application deployment or systems administration task.
  • PyMongo - Tools for working with MongoDB, and is the recommended way to work with MongoDB from Python.
  • Celery - Task queue to distribute work across threads or machines.
  • pytz - pytz brings the Olson tz database into Python. This library allows accurate and cross platform timezone calculations using Python 2.4 or higher.


tsal / 0_reuse_code.js
Created Nov 14, 2013
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console