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 | |
/** | |
* @package RedRokk | |
* @version 1.0.0 | |
* | |
* Plugin Name: Empty Widget | |
* Description: Single Widget Class handles all of the widget responsibility, all that you need to do is create the html. Just use Find/Replace on the Contact_RedRokk_Widget keyword to rebrand this class for your needs. | |
* Author: RedRokk Interactive Media | |
* Version: 1.0.0 | |
* Author URI: http://www.redrokk.com |
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 | |
NOW=$(date +"%F") | |
sh -c "mysqldump -u <UserName> -p<Password> <DatabaseName> | gzip -9 > <DatabaseName>-$NOW.sql.gz" | |
echo "MYSQL DATABASE BACKUP GENERATED AT $NOW" |
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 | |
url="https://www.google.com.br/?q=$1" | |
open "$url" |
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 | |
# http://www.unixmen.com/how-to-clear-memory-cache-on-linux-servers/ | |
NOW=$(date +"%F %T") | |
sh -c "free -mt >> /root/drop_caches.log" | |
echo "$NOW" >> /root/drop_caches.log | |
echo "--------------------" >> /root/drop_caches.log | |
sh -c "sync; echo 3 > /proc/sys/vm/drop_caches" |
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
# Put this into your httpd.conf to block access to any server .git folders and files | |
<DirectoryMatch "^/.*/\.git+/"> | |
Order deny,allow | |
Deny from all | |
</DirectoryMatch> | |
<Files ~ "^\.git"> | |
Order allow,deny | |
Deny from all | |
</Files> |
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 | |
class NumerologyCalc { | |
const BASE_LETTERS = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; | |
const VALID_FINAL_NUMBERS = [1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 22, 33, 44]; | |
public $numerology = null; | |
function __construct($input = "", $show = false) { |
OlderNewer