Skip to content

Instantly share code, notes, and snippets.

View timle8n1's full-sized avatar
🧐

Tim LeMaster timle8n1

🧐
View GitHub Profile
@timle8n1
timle8n1 / .gitconfig
Created October 5, 2023 00:19
My git aliases
[alias]
co = checkout
cb = rev-parse --abbrev-ref HEAD
pup = "!git push -u origin $(git cb)"
sha = rev-parse --short HEAD
clbr = ! git fetch -p && git branch -vv | awk '/: gone]/{print $1}' | xargs git branch -d
pm = ! git co main && git pull && git clbr
rbm = ! git co main && git pull && git co - && git rebase main
@timle8n1
timle8n1 / network.swift
Created December 8, 2018 17:21
Making a JSON Request on Mac OS
let urlSession = URLSession(configuration: .default)
guard let url = URL(string: "https://reqres.in/api/user") else { return }
let task = urlSession.dataTask(with: url) { data, response, error in
guard let content = data,
let json = try? JSONSerialization.jsonObject(with: content) else { return }
print(json)
}
task.resume()

Keybase proof

I hereby claim:

  • I am timle8n1 on github.
  • I am timle (https://keybase.io/timle) on keybase.
  • I have a public key whose fingerprint is 44C2 1664 E758 023E F506 179E 7525 B254 E955 6E95

To claim this, I am signing this object: