Skip to content

Instantly share code, notes, and snippets.

View daspecster's full-sized avatar
🏠
Working remote

Thomas Schultz daspecster

🏠
Working remote
View GitHub Profile
@daspecster
daspecster / set_screenshot_location.sh
Last active January 10, 2019 21:16
Set MacOS/OSX screenshot location.
mkdir ~/Desktop/ScreenShots
defaults write com.apple.screencapture location ~/Desktop/ScreenShots/
killall SystemUIServer
def generate_path(self):
min_char = 8
max_char = 12
max_lookups = 100
character_choices = string.ascii_letters
for _ in range(max_lookups):
url_path = (
"".join(choice(character_choices) for x
in range(randint(min_char, max_char))))
[
"Aleutians East",
"Aleutians West (CA)",
"Anchorage Municipality",
"Bethel Census Area",
"Bristol Bay",
"Denali",
"Dillingham (CA)",
"Fairbanks North Star",
"Haines",