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
# vzdump default settings | |
#tmpdir: DIR | |
#dumpdir: DIR | |
#storage: STORAGE_ID | |
#mode: snapshot|suspend|stop | |
#bwlimit: KBPS | |
#ionice: PRI | |
#lockwait: MINUTES | |
#stopwait: MINUTES |
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 | |
date=$(date +"%m-%d-%Y") | |
if [ "$1" == "job-end" ]; then | |
rclone move /var/lib/vz/dump/ b2:my-proxmox-server/vzdumps/$date/ | |
fi |
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
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDO3lPvkj3Mr0U8pQxo8svnw+dlDw7fNCnhaaSY4+YNz3AF0bRbGJplSA0iIWuaaw+8VgaHDfB1cLN1I3QORB5li242Gikf5l/FHz4PjGW7g7Q7C0rKYgYPdG823+JfpyWCyfx1Md4Ic1+APjqhMQG4nx7dUXaahX8xDyte5qg2uTV/UbDoX2fEOJuJLwKLF0G+rZgqwWbyPVJltTR/xVuyvwzdAjAxrhS4N7M1z5Wvx24tC4Zg8tii+ZJK34vMmqhhnw9khdem6ot6Y3jnJ24uk7T2fXjo/i2lqQDCeKTRT4cBJrCt71Dt/jj/6XDjeT8Io4s5wPBCDVlnUXk7XSut sajan@vor |
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 | |
DATE=$(date +"%m-%d-%Y") | |
DATABASES=`mysql -e "SHOW DATABASES" | tr -d "| " | grep -Ev 'Database|information_schema|performance_schema|mysql'` | |
echo "Dumping Databases" | |
for db in $DATABASES | |
do | |
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
<?php | |
$apiToken = ''; // Your API Key from NodePing. | |
// Ask NodePing if any checks are down. | |
$ch = curl_init(); | |
curl_setopt($ch, CURLOPT_URL, "https://api.nodeping.com/api/1/checks?current=1&token=" . $apiToken); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); | |
$checks = json_decode(curl_exec($ch)); |
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
<?php | |
/** | |
* Basic WHOIS query script for exipry date | |
*/ | |
// feed domain via script, or GET request | |
$domain = (PHP_SAPI == 'cli') ? $argv[1] : $_GET['domain']; | |
// exit if no domain is provided | |
if (!$domain) { |
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
[Desktop Entry] | |
Version=2.0.1 | |
Name=Sublime Text 2 | |
Encoding=UTF-8 | |
Comment=Advanced Code and Text Editor | |
Exec=/opt/sublime2/sublime_text | |
Icon=/opt/sublime2/Icon/256x256/sublime_text.png | |
Terminal=false | |
Type=Application | |
Categories=Developer; |
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
<?php | |
$numbers = array( | |
mt_rand(1, 200), | |
mt_rand(1, 200) | |
); | |
echo $json_encode($numbers); | |
?> |
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
<?php | |
include 'Twilio.class.php'; | |
$subject = urldecode($_GET['subject']); | |
$response = new Services_Twilio_Twiml(); | |
$response->say('Hello. New Zen desk ticket.'); | |
$response->pause(""); | |
$response->say($subject); | |
$response->sms( | |
'New support ticket: ' . $subject, |
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
<?php | |
function alpha_num_spaces($subject) | |
{ | |
$pattern = "#^[A-Z0-9 ]+$#i"; | |
$res = preg_match($pattern, $subject); | |
if ($res == 1) | |
{ |
NewerOlder