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
//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; | |
}; |
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
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" |
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
# Put this in your ~/.bash_aliases | |
# and exploit the tab completion for | |
# maximum comfort | |
# | |
# Author: William Ghelfi <[email protected]> | |
# | |
#Entando | |
alias entando-start="mvn clean jetty:run" | |
alias entando-pg-db-backup="ant PG-db-backup" |
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
<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 |
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
# 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 # | |
# # |
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
# 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 |
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
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> | |
<script src="https://github.com/theonion/fartscroll.js/raw/master/fartscroll.js"></script> | |
<script> | |
$(document).ready(function() { | |
$(document).fartscroll(400); | |
}); | |
</script> |
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
// Just the relevant snippet: | |
copy: | |
assets: | |
files: { | |
'dist/img': ['img/*'] | |
} | |
// This only creates an empty 'img' dir under 'dist' | |
// The expected tree to be copied under dist is: |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Bootstrap In Practice - Landing Page Example</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<!-- Bootstrap --> | |
<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" /> | |
</head> | |
<body> | |
<h1>Hello, world!</h1> |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
# All Vagrant configuration is done here. The most common configuration | |
# options are documented and commented below. For a complete reference, | |
# please see the online documentation at vagrantup.com. |
OlderNewer