This file contains 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
#!/bin/bash | |
# Exception :) | |
function error { | |
echo "Error: "$1 | |
exit | |
} | |
#read param | |
fname=$1; |
This file contains 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
# Default respawn delay value | |
delay=5 | |
# Default environment value | |
env="development" | |
#Show help | |
if [[ "$@" = "--help" || "$@" = "-h" ]]; then | |
cat <<EOF | |
Usage: bash spawn.sh [FILE...] [OPTIONS...] |
This file contains 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
# Redirect from index | |
RewriteCond %{QUERY_STRING} ^$ [OR] | |
RewriteCond %{REQUEST_FILENAME} ^\/index$ | |
RewriteRule ^index$ http://host.tld/ [NC,R=301,L] | |
# Redirect everythink to php | |
RewriteCond %{QUERY_STRING} ^(.*)$ | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule ^([a-zA-Z_][a-zA-Z0-9_\-\[\]\/\.]+)$ /?%1&path=$1 [NC,L] |
This file contains 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
#!/bin/bash | |
# Yep, so simple =) | |
ffmpeg -f x11grab -r 25 -s 1280x1024 -i :0.0 -sameq screencast.mpeg |
This file contains 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
sudo mount -t ext4 -o umask=0755,gid=XXX,uid=XXX /dev/sdaX /media/laserslut |
This file contains 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
# mp3 to ogg | |
ffmpeg -i audio.mp3 -acodec libvorbis audio.ogg | |
# mp3 to aac | |
ffmpeg -i audio.mp3 -acodec libfaac audio.aac | |
# ogg to mp3 | |
ffmpeg -i audio.ogg -acodec libmp3lame audio.mp3 |
This file contains 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
#!/bin/bash | |
if [ ! -z $(tput colors) ]; then | |
bold=`tput bold` | |
normal=`tput sgr0` | |
fi | |
# Git info | |
commit=$(git log --max-count=1| head -n 1|cut -f 2 -d ' '); |
This file contains 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| | |
# Machine name | |
config.vm.define "boxname" | |
# Vagrant box |
This file contains 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
openssl genrsa -out privatekey.pem 1024 | |
openssl req -new -key privatekey.pem -out certrequest.csr | |
openssl x509 -req -in certrequest.csr -signkey privatekey.pem -out certificate.pem |
OlderNewer