I hereby claim:
- I am beaudierman on github.
- I am beaudierman (https://keybase.io/beaudierman) on keybase.
- I have a public key whose fingerprint is F501 39AA D307 41ED 6293 9F41 1503 B071 252D E1B2
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| // MySQL to Google Spreadsheet By Pradeep Bheron | |
| // Support and contact at pradeepbheron.com | |
| function myMySQLFetchData() { | |
| var conn = Jdbc.getConnection('jdbc:mysql://127.0.0.1:3306/employee_db', 'username', 'pass'); // Change it as per your database credentials | |
| var stmt = conn.createStatement(); | |
| var start = new Date(); // Get script starting time | |
| import pip | |
| from subprocess import call | |
| packages = [dist.project_name for dist in pip.get_installed_distributions()] | |
| call("pip2 install --upgrade " + ' '.join(packages), shell=True) |
| --[[ | |
| 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 |
| #!/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 |
| ## Run the following commands after making sure you have the php5-mcrypt extension installed | |
| sudo php5enmod mcrypt | |
| sudo service apache2 restart |
| 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 |
| # 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 |
| 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. |
| 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); |