Skip to content

Instantly share code, notes, and snippets.

View DominikAngerer's full-sized avatar
🏠
For sure working from somewhere 🤘

DominikAngerer DominikAngerer

🏠
For sure working from somewhere 🤘
View GitHub Profile
#!/bin/sh
DEFAULT_ = '/usr/local/tomcat/logs/catalina.out'
DEV_ = '/usr/local/tomcat_dev/logs/catalina.out'
DEV = '/usr/local/tomcatdev/logs/catalina.out'
TEST_ = '/usr/local/tomcat_test/logs/catalina.out'
TEST = '/usr/local/tomcattest/logs/catalina.out'
echo "############################################################"
echo "############################################################"
@DominikAngerer
DominikAngerer / ResourceContainer.java
Created November 9, 2014 15:01
ResourceContainer for Jersey to return an valid emberjs response (REST Adapter)
package at.adtime.resource.container;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import javax.ws.rs.core.Response;
import at.adtime.resource.Resource;
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
mkdir ~/local
mkdir ~/node-latest-install
cd ~/node-latest-install
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1
./configure --prefix=~/local
make install # ok, fine, this step probably takes more than 30 seconds...
curl https://www.npmjs.org/install.sh | sh
Verifying that +dominikangerer is my Bitcoin username. You can send me #bitcoin here: https://onename.io/dominikangerer
### Keybase proof
I hereby claim:
* I am DominikAngerer on github.
* I am dominikangerer (https://keybase.io/dominikangerer) on keybase.
* I have a public key whose fingerprint is 523E 9FCE 3BD5 95B5 67A3 D36E 4A3F B490 C5DD F73F
To claim this, I am signing this object:
@DominikAngerer
DominikAngerer / Fixing ownership of npm
Created June 2, 2015 10:29
Fixing ownership of npm
sudo chown -R $(whoami) ~/.npm
sudo chown -R $(whoami) /usr/local/lib/node_modules
<header class="uk-navbar uk-navbar-attached">
<nav class="uk-container uk-container-center">
<a href="#offcanvas-1" class="uk-navbar-toggle uk-visible-small" data-uk-offcanvas=""></a>
<div class="uk-navbar-brand uk-navbar-center uk-visible-small">
<img src="docs/images/logo_uikit.svg" width="90" height="30" title="UIkit" alt="UIkit">
</div>
<a class="uk-navbar-brand uk-hidden-small" href="index.html">
<img class="uk-margin uk-margin-remove" src="docs/images/logo_uikit.svg" width="90" height="30" title="UIkit" alt="UIkit">
</a>
<div class="uk-navbar-flip">
Fontawesome Icon List:
var xx = [];
$('.fa-hover.col-md-3.col-sm-4').find('i.fa').each(function() {
xx.push( { 'value': $(this).attr('class'), 'name': $(this).attr('class').replace('fa-', '').replace('fa', '') } );
});
JSON.stringify(xx);
UIKIT Icon List:
var xx = [];
$('.tm-icons li i').each(function() {
xx.push( { 'value': $(this).attr('class'), 'name': $(this).attr('class').replace('uk-', '').replace('icon-', '') } );
});
JSON.stringify(xx);
@DominikAngerer
DominikAngerer / bootstrap-grid-only.css
Created June 27, 2017 10:50
Only Bootstrap's grid - nothing more - nothing less.
/*!
* Bootstrap v3.3.7 (http://getbootstrap.com)
* Copyright 2011-2017 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
/*!
* Generated using the Bootstrap Customizer (http://getbootstrap.com/customize/?id=5ba27cd27278404bb63b6fddafbc352b)
* Config saved to config.json and https://gist.github.com/5ba27cd27278404bb63b6fddafbc352b
*//*!