Skip to content

Instantly share code, notes, and snippets.

View trumbitta's full-sized avatar
🚀
Basically a rocket ship. And a bear 🐻.

William Ghelfi trumbitta

🚀
Basically a rocket ship. And a bear 🐻.
View GitHub Profile
@trumbitta
trumbitta / tint2rc
Created April 30, 2013 14:10
tint2rc
# Tint2 config file
# Generated by tintwizard (http://code.google.com/p/tintwizard/)
# For information on manually configuring tint2 see http://code.google.com/p/tint2/wiki/Configure
# Background definitions
# ID 1
rounded = 0
border_width = 1
background_color = #000000 60
border_color = #FFFFFF 16
@trumbitta
trumbitta / provision-entando-1-system-update.sh
Last active October 12, 2015 04:57
A couple of scripts for gettin ready a web server for Entando
# expecially tailored for Aruba Cloud (www.cloud.it)
# Ubuntu 12.10
# should work weel on any Ubuntu 12.10 with ssh root access
# example: cat provision-entando-1-system-update.sh | ssh me@myserver /bin/bash
cat <<"EOM"
###########################################################
# #
# 1. UPDATING THE SYSTEM #
# #
@trumbitta
trumbitta / VirtualHost
Last active October 12, 2015 01:57
Quick resources for an Entando falvored Java web server provisioning
<VirtualHost FQDN:80>
ServerName FQDN
DocumentRoot /var/www/FQDN
ErrorLog /var/log/apache2/FQDN_error.log
LogLevel warn
CustomLog /var/log/apache2/FQDN_access.log combined
# Use SetEnvIf to st no-jk when /home/ is encountered
SetEnvIf Request_URI "/APPNAME/resources/cms/*" no-jk
@trumbitta
trumbitta / entando_aliases
Last active October 2, 2015 20:18
A bunch of bash aliases for not having to remember a lot of different commands while using Entando ( >= 2.4.0.1 )
# Put this in your ~/.bash_aliases
# and exploit the tab completion for
# maximum comfort
#
# Author: William Ghelfi <trumbitta@gmail.com>
#
#Entando
alias entando-start="mvn clean jetty:run"
alias entando-pg-db-backup="ant PG-db-backup"
@trumbitta
trumbitta / .bash_aliases
Last active September 2, 2016 21:00 — forked from henrik/.bashrc
My version with tweaks and inspiration from holman/dotfiles
export CLICOLOR=1
export LSCOLORS=ExFxBxDxCxegedabagacad
alias ls='ls -GFh'
alias git=hub
alias gis="git status"
alias gits="git status"
alias gitp="git pull"
alias safepull="git stash && git pull && git stash apply"
@trumbitta
trumbitta / hide-address-bar-webkit
Created September 29, 2011 10:19
A snippet taken from BostonGlobe.com for a proper hiding of the address bar in crappy webkit browsers as mine in HTC Desire :p
//Thx to Ethan Marcotte, anyway
//scroll to top, hide address bar on mobile devices - 1 for android, 0 for the rest
if( !location.hash ){
//scroll to top
window.scrollTo( 0, 1 );
var scrollTop = 1,
getScrollTop = function(){
return "scrollTop" in doc.body ? doc.body.scrollTop : 1;
};