Skip to content

Instantly share code, notes, and snippets.

View TomLous's full-sized avatar
:shipit:
D̴̰͈͍̟͚́̓̉̄͂̈́ê̵͆̈͐͠v̶ẽ̴̱͇̰̜l̴̹̫̃̇́̏͘ǫ̸͍̻̜̯̲̙͇̣̕p̵̐̈́̐͊͂ȉ̴̳̺n̷̻͈̯͇͌͋̊̄̚g̸̛̭͂̍

Tom Lous TomLous

:shipit:
D̴̰͈͍̟͚́̓̉̄͂̈́ê̵͆̈͐͠v̶ẽ̴̱͇̰̜l̴̹̫̃̇́̏͘ǫ̸͍̻̜̯̲̙͇̣̕p̵̐̈́̐͊͂ȉ̴̳̺n̷̻͈̯͇͌͋̊̄̚g̸̛̭͂̍
View GitHub Profile
@TomLous
TomLous / setup.sh
Last active June 26, 2024 10:26
Clean Install
defaults write com.apple.finder AppleShowAllFiles YES
defaults write com.apple.Finder AppleShowAllFiles true
# TODO: Copy id_rsa keys to .ssh (copy from file)
chmod 600 ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa.pub
# Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
@AndruC
AndruC / Roll20 Macros.md
Last active May 10, 2024 06:25
Macros that I use to improve my D&D games

Macro Must-Haves

These are my must-have macros for running games online. I make full use of the compendium, which gives these macros access to common actions and rolls, saving me time.

Remember to add /w gm or @{selected|wtype} to hide sensitive info from your players. WTYPE is an attribute used in the 5th Edition OGL character sheet, a prerequisite for most of these.

Here's what my bar looks like.

Macro Quickbar

val conf = new SparkConf().setAppName("SparkTest").setMaster("local[1]")
val sparkContext = new SparkContext(conf)
val sqlContext = new SQLContext(sparkContext)
import sqlContext.implicits.{getClass => _, _}
val fileNameGoogle = "/google-places-data.json" // 1 json places per line
val locationsGoogle = sqlContext.read.json(getClass.getResource(fileNameGoogle).getPath).
toDF().
@lttlrck
lttlrck / gist:9628955
Created March 18, 2014 20:34
rename git branch locally and remotely
git branch -m old_branch new_branch # Rename branch locally
git push origin :old_branch # Delete the old branch
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote