This file contains hidden or 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
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 |
This file contains hidden or 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
static { | |
final String authUser = "XXXXX"; | |
final String authPassword = "XXXXXX"; | |
Authenticator.setDefault( | |
new Authenticator() { | |
public PasswordAuthentication getPasswordAuthentication() { | |
return new PasswordAuthentication( | |
authUser, authPassword.toCharArray()); | |
} | |
} |
This file contains hidden or 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
Index: javaparser-testing/src/test/resources/com/github/javaparser/bdd/parsing_scenarios.story | |
IDEA additional info: | |
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP | |
<+>UTF-8 | |
=================================================================== | |
--- javaparser-testing/src/test/resources/com/github/javaparser/bdd/parsing_scenarios.story (revision 15a23ae2350c29a11da98fdd9d5d3765e3f2ee27) | |
+++ javaparser-testing/src/test/resources/com/github/javaparser/bdd/parsing_scenarios.story (revision ) | |
@@ -162,7 +162,7 @@ | |
Then lambda in statement 1 in method 1 in class 1 body is "System.out.println("Hello world!");" | |
Then lambda in statement 2 in method 1 in class 1 block statement is null |
This file contains hidden or 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
python -m http.server [port] | |
# python -m SimpleHTTPServer 8000 |
This file contains hidden or 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
1) Create the .Renviron file in user home. Likely /Documents on Windows (You should find a .Rhistory file there) | |
This file isn't created until you have close RStudio for the first time. | |
options(internet.info = 0) | |
http_proxy=http://my-proxy-server/ | |
http_proxy_user=username:password | |
2) Check in RStudio Sys.getenv("http_proxy") |
This file contains hidden or 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
# Add original/upstream repo as remote | |
git remote add upstream https://github.com/whoever/whatever.git | |
# Fetch new commits | |
git fetch upstream | |
# Make sure your on your own master | |
git checkout master | |
# Replay any of your commits ontop of upstream commits |
This file contains hidden or 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
jetty:run --no-snapshot-updates |
This file contains hidden or 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
wget -O - http://debian.neo4j.org/neotechnology.gpg.key >> key.pgp | |
sudo apt-key add key.pgp | |
echo 'deb http://debian.neo4j.org/repo stable/' | sudo tee -a /etc/apt/sources.list.d/neo4j.list > /dev/null | |
sudo apt-get update && sudo apt-get install neo4j | |
sudo service neo4j-service (stop|start|restart) |
This file contains hidden or 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
sudo update-alternatives --config javac | |
sudo update-alternatives --config java |
This file contains hidden or 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
select 'drop '||object_type||' '|| object_name|| DECODE(OBJECT_TYPE,'TABLE',' CASCADE CONSTRAINTS;',';') from user_objects |
NewerOlder