Skip to content

Instantly share code, notes, and snippets.

View tsal's full-sized avatar
🩳
swifty kotlin

Michael K tsal

🩳
swifty kotlin
View GitHub Profile
@tsal
tsal / moarExample output.md
Last active August 31, 2019 14:54
strings are first class
>>> ",".join("get all the words as a list then make them a csv".split())
'get,all,the,words,as,a,list,then,make,them,a,csv'
@tsal
tsal / ordinals.py
Last active October 21, 2019 22:54
ordinals example
def switch_suffix(digit):
switch = {
1: "st",
2: "nd",
3: "rd",
}
return switch.get(digit % 10, "th")
ordinals = [i+1 for i in range(10)]
@tsal
tsal / text_adv-part-1.go
Last active October 26, 2019 18:09 — forked from scottjbarr/text_adv-part-1.go
Writing a Text Adventure Game in Go - Part 1 (uses a *Location for Game.CurrentLocation)
package main
import (
"fmt"
"math/rand"
"time"
)
type Game struct {
Welcome string
@tsal
tsal / main.go
Last active October 29, 2019 16:34
go temperature conversion
package main
import (
"example/pkg/temperature"
"fmt"
)
func main() {
t := convert.New(0, convert.Celsius)
fmt.Println(t.F())
@tsal
tsal / Windows10AWSEC2.md
Created February 25, 2020 13:17 — forked from peterforgacs/Windows10AWSEC2.md
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
tsal / sftp.yaml
Created June 14, 2020 15:19 — forked from jujhars13/sftp.yaml
kubernetes pod example for atmoz/sftp
apiVersion: v1
kind: Namespace
metadata:
name: sftp
---
kind: Service
apiVersion: v1
metadata:

Keybase proof

I hereby claim:

  • I am tsal on github.
  • I am tsalaroth (https://keybase.io/tsalaroth) on keybase.
  • I have a public key ASCRU6scfikjIJi2pr2nuugpLpOHg2-KHaWlsba1ZoqOjwo

To claim this, I am signing this object:

@tsal
tsal / a3update.py
Created March 6, 2023 15:54 — forked from marceldev89/a3update.py
Arma 3 Linux server and mod updater (workshop)
#!/usr/bin/python3
# MIT License
#
# Copyright (c) 2017 Marcel de Vries
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell