Skip to content

Instantly share code, notes, and snippets.

View SmiddyPence's full-sized avatar

Nicholas Smith SmiddyPence

View GitHub Profile
@SmiddyPence
SmiddyPence / HttpProxyConfig.java
Created February 6, 2015 09:52
Static Java Block To Set Proxy for external http requests
static {
final String authUser = "XXXXX";
final String authPassword = "XXXXXX";
Authenticator.setDefault(
new Authenticator() {
public PasswordAuthentication getPasswordAuthentication() {
return new PasswordAuthentication(
authUser, authPassword.toCharArray());
}
}
@SmiddyPence
SmiddyPence / gist:456a85ef62fbe502f67f3b2f30f679a1
Created February 19, 2019 10:26
Git Update Multiple Repos
git config --global alias.up '!git remote update -p; git merge --ff-only @{u}'
#!/bin/sh
for repo in repo1 repo2 repo3 repo4; do
(cd "${repo}" && git checkout master && git up)
done