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
#!/bin/bash | |
UPLOAD_TO_CONTAINER="$HOSTNAME-Saves" #adjust it as you like | |
export CLOUDFILES_USERNAME= # THIS IS YOUR RACKSPACE USERNAME # | |
export CLOUDFILES_APIKEY= # THIS IS YOUR RACKSPACE API KEY # | |
export PASSPHRASE= | |
export BACK_THIS_UP=/home/pi/saves | |
duplicity --no-encryption $BACK_THIS_UP cf+http://${UPLOAD_TO_CONTAINER} |
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 *:80> | |
ServerAdmin [email protected] | |
ServerName sitename.example.com | |
DocumentRoot /var/www/siteroot | |
<Directory /> | |
Options FollowSymLinks | |
AllowOverride All | |
</Directory> | |
<Directory /var/www/siteroot> |
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
# Thanks to http://xyzpub.com/en/ruby-on-rails/3.2/rails3-install-debian.html | |
sudo apt-get -y install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion python | |
curl -L https://get.rvm.io | bash -s stable | |
source ~/.rvm/scripts/rvm | |
rvm autolibs enable | |
rvm install 1.9.3 | |
gem update | |
gem install rails --version '~> 3.2.1' | |
echo "source \$(rvm 1.9.3 do rvm env --path)" >> $HOME/.bashrc |
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
#!/bin/bash | |
# Make sure you have $HOME/git/working created already | |
# Put this file in a bare repository, configure Octopress for local deployment. | |
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function* | |
GEM_PATH=$GEM_PATH:$HOME/.gems | |
PATH=$PATH:$HOME/.gems/bin | |
site=www.example.com |
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
RewriteEngine on | |
RewriteCond %{HTTP_HOST} ^example\.com$ [NC] | |
RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L] |
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] | |
;;;;;;;;;;;;;;;;;;; | |
; About php.ini ; | |
;;;;;;;;;;;;;;;;;;; | |
; PHP's initialization file, generally called php.ini, is responsible for | |
; configuring many of the aspects of PHP's behavior. | |
; PHP attempts to find and load this configuration from a number of locations. | |
; The following is a summary of its search order: |
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
# | |
# /etc/proftpd/proftpd.conf -- This is a basic ProFTPD configuration file. | |
# To really apply changes reload proftpd after modifications. | |
# | |
# Includes DSO modules | |
Include /etc/proftpd/modules.conf | |
# Set off to disable IPv6 support which is annoying on IPv4 only boxes. | |
UseIPv6 on |
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
bob:x:0:0:root:/home/bob:/bin/bash | |
# The above user can log in interactively, and their home folder is in the usual location | |
alice:x:1000:1000:,,,:/var/www/www.example.com:/bin/false | |
# The above user can't log in interactively, and their home folder is set to their public website folder. |
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
APT::Periodic::Enable "1"; | |
APT::Periodic::Update-Package-Lists "1"; | |
APT::Periodic::AutocleanInterval "7"; | |
APT::Periodic::Unattended-Upgrade "1"; | |
// Automatically upgrade packages from these (origin, archive) pairs | |
Unattended-Upgrade::Allowed-Origins { |
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
@echo off | |
REM ABOUT: This file will unlock a user account that you specify on the command line. | |
REM REQUIREMENTS: Powershell with ActiveDirectory Module; Active Directory Account with Unlock permissions. | |
echo "This file will unlock a user who's username (sAMAccountName) you specify." | |
SET /P ADDomain=Your domain name: | |
SET /P AdminUser=Your admin username: | |
SET /P UserToUnlock=Username you would like unlocked: |
OlderNewer