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
# Source: http://bit.ly/WiEa5q | |
# Confirmed working on Mac OS X Mountain Lion(v10.8.2) | |
# Open ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/Ruby/Ruby.sublime-build | |
# Change the contents to match the following: | |
{ | |
"env":{ | |
"PATH":"${HOME}/.rvm/bin:${PATH}" | |
}, |
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 | |
######################################################### | |
# Bash Script to find the Interal IP for Load Balancers # | |
######################################################### | |
echo "==================================================" | |
echo " ServiceNet IP for Load Balancers " | |
echo "==================================================" | |
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
I recently had to install MySQL 5.6 on Ubuntu 12.04 from a .deb package on the MySQL website. It seems that either the package has been updated recently or nobody uses this method to install so I ended up running into endless problems. Through trial and error I found the following method works for me. | |
Install libaio-dev: | |
sudo apt-get install libaio-dev | |
Now install your package(mine was enterprise edition, community may have a different filename): | |
sudo dpkg -i mysql-advanced-5.6.10-debian6.0-x86_64.deb | |
This will install your files to the /opt directory, instead of the more common /etc directory. No worries, all we need to do is point our system at this new directory. |
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
object ftpConnectionManager = (object)Dts.Connections["FTP Connection Manager"]; | |
string user = "user"; | |
string pass = "pass"; | |
Dts.Connections["FTP Connection Manager"].Properties["ServerUserName"].SetValue(ftpConnectionManager, user); | |
Dts.Connections["FTP Connection Manager"].Properties["ServerPassword"].SetValue(ftpConnectionManager, pass); |
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
When your cron jobs have output, or, when they fail, email is sent to the following addresses | |
MAILTO="foo@bar.com,baz@qux.com" | |
The path of the user whose crontab you're setting up. | |
Use echo $PATH and copy the contents into the PATH variable | |
PATH="/usr/bin:/sbin:/bin" | |
The home directory that your crontab should be working in. | |
This can replace needing to cd /path/to/app/root in each script and using absolute paths. |
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
# Make sure you have php5-mcrypt installed first. If not, run | |
sudo apt-get install php5-mcrypt | |
# Add a symlink for mcrypt.ini in the PHP5 apache config directory | |
sudo ln -s /etc/php5/conf.d/mcrypt.ini /etc/php5/apache2/conf.d/20-mcrypt.ini | |
# Restart apache | |
sudo service apache2 restart |
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 defaults write /System/Library/LaunchDaemons/com.apple.coreservices.appleevents ExitTimeOut -int 1 | |
sudo defaults write /System/Library/LaunchDaemons/com.apple.securityd ExitTimeOut -int 1 | |
sudo defaults write /System/Library/LaunchDaemons/com.apple.mDNSResponder ExitTimeOut -int 1 | |
sudo defaults write /System/Library/LaunchDaemons/com.apple.diskarbitrationd ExitTimeOut -int 1 | |
sudo defaults write /System/Library/LaunchAgents/com.apple.coreservices.appleid.authentication ExitTimeOut -int 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
## Run the following commands after making sure you have the php5-mcrypt extension installed | |
sudo php5enmod mcrypt | |
sudo service apache2 restart |
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/sh | |
# This script will monitor another NAT instance and take over its routes | |
# if communication with the other instance fails | |
# NAT instance variables | |
# Other instance's IP to ping and route to grab if other node goes down | |
NAT_ID= | |
NAT_RT_ID= | |
# My route to grab when I come back up |
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
--[[ | |
Youtube playlist importer for VLC media player 1.1 and 2.0 | |
Copyright 2012 Guillaume Le Maout | |
Authors: Guillaume Le Maout | |
Contact: http://addons.videolan.org/messages/?action=newmessage&username=exebetche | |
This program is free software; you can redistribute it and/or modify | |
it under the terms of the GNU General Public License as published by | |
the Free Software Foundation; either version 2 of the License, or |
OlderNewer