SLACK_DEVELOPER_MENU=true /Applications/Slack.app/Contents/MacOS/Slack
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
org="$(git remote get-url origin | cut -d '/' -f 4)" | |
repo="$(basename $(git rev-parse --show-toplevel))" | |
branch="$(git rev-parse --abbrev-ref HEAD)" | |
open "https://github.com/${org}/${repo}/pull/new/${branch}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Burrito { | |
constructor(carb, protein, salsa, cheese = null, guac = False) { | |
this.carb = carb; | |
this.protein = protein; | |
this.salsa = salsa; | |
this.cheese = cheese; | |
this.guac = guac; | |
} | |
/* ... the many behaviors of a burrito go here... */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule One do | |
@moduledoc """ | |
advent of code, day 1 | |
""" | |
def captcha(nums) do | |
split_and_indexed = Integer.to_string(nums) | |
|> String.graphemes | |
|> Enum.map(fn x -> String.to_integer(x) end) | |
|> Enum.with_index | |
split_and_indexed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [[ -z "$1" ]]; then | |
echo "[!] usage: $0 [HOST LIST]" | |
exit | |
fi | |
hosts="$1" | |
len=$(wc -l "$hosts") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# https://httpoxy.org/ | |
if [ -z "$1" ]; then | |
echo "[!] usage $0 [TARGET HOSTS FILE]" | |
exit 1 | |
fi | |
targets="$1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
if [[ -z "$2" ]]; then | |
echo "[!] usage: $0 [HOSTS FILE] [WORDS FILE] [THREADS (optional)]" | |
exit | |
fi | |
hosts=$1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
docker service create --name registry \ | |
-e "REGISTRY_STORAGE=s3" \ | |
-e "REGISTRY_STORAGE_S3_REGION=[S3 REGION]" \ | |
-e "REGISTRY_STORAGE_S3_ACCESSKEY=[ACCESS KEY]" \ | |
-e "REGISTRY_STORAGE_S3_SECRETKEY=[SECRET KEY]" \ | |
-e "REGISTRY_STORAGE_S3_BUCKET=[BUCKET NAME]" \ | |
-e "REGISTRY_STORAGE_S3_ENCRYPT=true" \ | |
--publish 5000:5000 \ |
I hereby claim:
- I am t3h2mas on github.
- I am t3h2mas (https://keybase.io/t3h2mas) on keybase.
- I have a public key whose fingerprint is 1152 CA36 D83A 2473 03A7 BAF0 FFDA 1B5C E276 21CB
To claim this, I am signing this object:
NewerOlder