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
<style> | |
/* This helps the ng-show/ng-hide animations start at the right place. */ | |
/* Since Angular has this but needs to load, this gives us the class early. */ | |
[ng\:cloak], [ng-cloak], [data-ng-cloak], [x-ng-cloak], [ng-hide], .ng-cloak, .x-ng-cloak, .ng-hide { | |
display: none !important; | |
} | |
</style> |
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
worker_processes 4; | |
error_log logs/error.log; | |
events { | |
worker_connections 1024; | |
} | |
http { | |
include mime.types; |
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
package hello; | |
import java.io.IOException; | |
import javax.servlet.Filter; | |
import javax.servlet.FilterChain; | |
import javax.servlet.FilterConfig; | |
import javax.servlet.ServletException; | |
import javax.servlet.ServletRequest; | |
import javax.servlet.ServletResponse; | |
import javax.servlet.http.HttpServletResponse; | |
import org.springframework.stereotype.Component; |
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
su - postgres | |
psql | |
CREATE ROLE stash WITH LOGIN PASSWORD 'stash' VALID UNTIL 'infinity'; | |
CREATE DATABASE stash WITH ENCODING='UTF8' OWNER=stash CONNECTION LIMIT=-1; | |
\connect stash; | |
CREATE SCHEMA stash AUTHORIZATION stash; | |
ALTER USER stash SET SEARCH_PATH TO stash; |
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
git tag -a v0.0.1 -m "Release version 0.0.1" | |
git push -u origin master --tags |
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
Settings > Tools > Terminal | |
[git install dir]/bin/sh.exe -login -i |
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
mobo: GIGABYTE GA-970A-UD3P 24.000 | |
ram: HyperX 8GB Savage DDR3 1866MHz CL9 25.000 | |
cpu: AMD FX-8350 4.00GHz AM3+ BOX 51.000 | |
vga: SAPPHIRE 11217-01-20G R9 270X 2G GDDR5 DUAL-X OC 52.000 | |
psu: FSP HYPER 600 19.000 | |
ssd: SAMSUNG 120GB 850 EVO 22.500 | |
hdd: WD Purple 2TB 5400rpm 64MB SATA3 26.000 | |
haz: FRACTAL DESIGN Define R5 32.000 | |
huto: ARCTIC COOLING Freezer 13 8.500 | |
---------------------------------------------------------------- |
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
/** | |
* Old version | |
*/ | |
return sequelize.transaction(function (t) { | |
return User.create({ | |
firstName: 'Abraham', | |
lastName: 'Lincoln' | |
}, {transaction: t}).then(function (user) { | |
return user.setShooter({ | |
firstName: 'John', |
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
/* guest additions */ | |
sudo ./VBoxLinuxAdditions.run | |
/* jdk7 */ | |
sudo apt-get install python-software-properties | |
sudo add-apt-repository ppa:webupd8team/java | |
sudo apt-get update | |
sudo apt-get install oracle-java7-installer | |
java -version |
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
// MAVEN DEP DOWNLOAD BUG | |
Known Ubuntu + java + keytool bug, where maven can't download dependencies: | |
CA certs are corrupt somehow, so we need to regen them.... | |
https://help.ubuntu.com/lts/serverguide/certificates-and-security.html#generating-a-csr | |
// JAVA | |
sudo add-apt-repository ppa:webupd8team/java | |
sudo apt-get update | |
sudo apt-get install oracle-java7-installer |