Skip to content

Instantly share code, notes, and snippets.

@ericgrosse
ericgrosse / gist:81056d3e2d1b8fed670bed3af6038ab2
Created January 30, 2023 15:45
Clone all your repositories at once with a simple python script
// Note: You need to plug in your github username, as well as a github personal access token found through Settings -> Developer Settings -> Personal Access Tokens -> Tokens (classic).
import requests
import os
# Your Github username
username = "<github_username>"
# API endpoint to get a list of all repositories
url = f"https://api.github.com/users/{username}/repos"
@petemcw
petemcw / brew-instructions.sh
Last active March 27, 2024 15:59
Setup dnsmasq on Mac OS X
# Install `dnsmasq` and configure for *.test domains
$ brew install dnsmasq
$ vim /usr/local/etc/dnsmasq.conf
# Reload configuration and clear cache
$ sudo launchctl unload /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist
$ sudo launchctl load /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist
$ dscacheutil -flushcache