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
<IfModule mod_rewrite.c> | |
RewriteEngine on | |
RewriteRule (.*\.min.css) less.php?min=yes&path=$1 | |
RewriteRule (.*\.css) less.php?min=no&path=$1 | |
</IfModule> |
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
# logged in as root/admin | |
crontab -u www-data -e | |
# logged in as any other user | |
sudo su -c "crontab -e" www-data | |
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
git log --oneline --decorate --tags --no-walk |
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
# Get new tags from the remote | |
$ git fetch --tags | |
# Get the latest tag name | |
$ latestTag=$(git describe --tags `git rev-list --tags --max-count=1`) | |
# Checkout the latest tag | |
$ git checkout $latestTag |
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
find . -type d -name "public" -exec echo {} \; -exec chmod -fR 0775 . \; -exec chown -fR www-data:www-data . \; |
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
# | |
# Ubuntu 14.04 LTS (Trusty Tahr) | |
# | |
# Basic packages i usually install | |
# | |
# Author: Julius Beckmann <[email protected]> | |
# | |
.PHONY: all update upgrade graphics darktable networking google_chrome dropbox archives media pandoc system harddisk docker filesystem apache2 php mysql memcached mongodb tools encfs_manager nautilus httpie erlang elixir openoffice owncloud |
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
<?php | |
function array_orderby() { | |
$args = func_get_args(); | |
$data = array_shift( $args ); | |
if ( ! is_array( $data ) ) { | |
return array(); | |
} |
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
; Sample supervisor config file. | |
[unix_http_server] | |
file=/tmp/supervisor.sock ; (the path to the socket file) | |
;chmod=0700 ; sockef file mode (default 0700) | |
;chown=nobody:nogroup ; socket file uid:gid owner | |
;username=user ; (default is no username (open server)) | |
;password=123 ; (default is no password (open server)) | |
;[inet_http_server] ; inet (TCP) server disabled by default |
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
<IfModule mod_rewrite.c> | |
RewriteEngine on | |
RewriteRule (.*\.min.css) less.php?min=yes&path=$1 | |
RewriteRule (.*\.css) less.php?min=no&path=$1 | |
</IfModule> |
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
#--- Ubuntu 14.04 LTS (Trusty Tahr) | |
#- | |
#- Basic packages i usually install | |
# | |
# - Run with: | |
# sudo apt-get -y install git ; git clone https://gist.github.com/7be7f940325614dc59fb.git provision ; cd provision ; sh ubuntu_14_04.sh | |
# Update and Upgrade | |
sudo apt-get update | |
sudo apt-get upgrade |