Skip to content

Instantly share code, notes, and snippets.

View kaesetoast's full-sized avatar
🤔
Coding

Philipp Nowinski kaesetoast

🤔
Coding
View GitHub Profile
@kaesetoast
kaesetoast / 0_reuse_code.js
Created March 25, 2014 14:21
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@kaesetoast
kaesetoast / CSS magic
Created March 24, 2014 13:33
HTML, CSS, JS tricks
/* apply a natural box layout model to all elements */
*, *:before, *:after {
-moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;
}
@kaesetoast
kaesetoast / apache-jenkins-proxy
Last active July 12, 2017 10:34
Template for Apache vhost that tunnels jenkins
<VirtualHost *:80>
ServerName ci.{domain}.{tld}
ProxyPass / http://127.0.0.1:8080/
ProxyPassReverse / http://127.0.0.1:8080/
ProxyRequests Off
ProxyPreserveHost On
<proxy http://127.0.0.1:8080*>
Order deny,allow
Allow from all
@kaesetoast
kaesetoast / dev-apache-vhost
Created May 30, 2013 21:11
Template for Apache vhost
<VirtualHost *:80>
ServerName {sitename}.dev
DocumentRoot /var/www/{sitename}/
<Directory /var/www/{sitename}/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog /var/log/apache2/{sitename}-error.log