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
set :rvm_ruby_string, '1.9.3-p0@ccepreb' | |
set :rvm_install_type, :stable | |
set :rvm_install_ruby, :install | |
require "rvm/capistrano" | |
# server details | |
default_run_options[:pty] = true | |
set :application, "your_app" | |
server "ip_or_domain", :app, :web, :db, :primary => true |
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
server { | |
listen 80; | |
server_name juegoaprendo.hn www.juegoaprendo.hn ccepreb.hn www.ccepreb.hn ccepreb.fernandoirias.com; | |
root /opt/projects/ccepreb/current/public; # <--- be sure to point to 'public'! | |
passenger_enabled on; | |
client_max_body_size 50M; | |
} |
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
#!/usr/bin/env bash | |
# Adapted from the book "Nginx HTTP Server", by Clement Nedelcu. | |
# Original Author: Ryuan Norbauer http://norbauerinc.com | |
# Modified: Geoffrey Grosenbach http://topfunky.com | |
# Modified: Clement Nedelcu http://cnedelcu.blogspot.com/ | |
# Modified: Jordan Orelli http://jordanorelli.com/ | |
# source: https://gist.github.com/1161075 | |
# Corresponds with the following compile-time 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
# encoding: utf-8 | |
## | |
# Backup Generated: my_backup | |
# Once configured, you can run the backup with the following command: | |
# | |
# $ backup perform -t my_backup [-c <path_to_configuration_file>] | |
# |
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
# encoding: utf-8 | |
## | |
# Backup | |
# Generated Main Config Template | |
# | |
# For more information: | |
# | |
# View the Git repository at https://github.com/meskyanichi/backup | |
# View the Wiki/Documentation at https://github.com/meskyanichi/backup/wiki |
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 | |
echo "Breaking file into tracks..." | |
cuebreakpoints *.cue | shnsplit -o flac *.ape | |
echo "Converting flac tracks to ogg quality 9..." | |
oggenc -q9 split-track*.flac | |
echo "Tagging files with info from the cue sheet..." | |
cuetag *.cue split-track*.ogg | |
sleep 7 | |
echo "Renaming files according to tags..." |
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 | |
echo "Breacking file into tracks..." | |
cuebreakpoints *.cue | shnsplit -o flac *.flac | |
echo "Converting flac tracks to ogg quality 9..." | |
oggenc -q9 split-track*.flac | |
echo "Tagging files with info from the cue sheet..." | |
cuetag *.cue split-track*.ogg | |
sleep 7 | |
echo "Renaming files according to tags..." |
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 | |
SEPARATOR="-" | |
DIRS="${PWD}/*" | |
for dir in $DIRS | |
do | |
if [[ -d $dir && $dir == *-* ]] | |
then | |
dirname=$(basename $dir) |
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
MAIN_DIR="parent/dir/here/" && for dir in "$MAIN_DIR"*/; do cd "$dir"; for f in *.m4a; do alac-decoder -v -f "$(basename "$f" .m4a).wav" "$f"; done; cd ..; done; && find "$MAIN_DIR" -name "*.m4a" -delete |
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
# Some steps were taken from: http://blog.sofasurfer.org/2011/07/16/ubuntu-ec2-add-new-admin-user/ | |
# Create new user and follow the steps | |
sudo adduser MyAppName | |
# Add the user to the admin group to have sudo access | |
sudo adduser MyAppName admin | |
# If you want to allow sudo access without password (Insecure) | |
sudo visudo |