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 | |
//Originally from https://ghostbin.com/paste/xjeud by https://social.freedombone.net/bob | |
//Re-writen to use PHP7.x MySQLi functions as mysql_*() are REMOVED in php7.0 | |
// gnusocial post expiry script, based on StatExpire by Tony Baldwin | |
// https://github.com/tonybaldwin/statexpire | |
//Make sure to check and/or change these options | |
$howfarback="-3 months"; //Check http://php.net/manual/en/function.strtotime.php for syntax | |
$server="localhost"; |
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 | |
/* | |
By Mitchell Urgero (@[email protected]) | |
Mass follower using a friends.json list. Based off of https://gitlab.com/snippets/12852 | |
(Looks like the api will only grab 201 "friends" at a time.... shame really...) | |
*/ | |
$user = "user"; | |
$pass = "P@ssW0Rd"; | |
$api = "https://example.com/api"; |
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
crontab -e | |
Add: | |
0 0 * * * /bin/bash /root/restartqueue.sh | |
(Make sure to change for your setup |
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 the following DIR's: | |
# /temp | |
# /backups | |
## START CONFIG | |
TIMESTAMP=$(date +"%F") | |
BACKUP_DIR=/temp/My-Backup-$TIMESTAMP | |
MYSQL_USER="USERNAME" | |
MYSQL=/usr/bin/mysql |
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
#!/usr/bin/php | |
<?php | |
if(php_sapi_name() !== 'cli'){ | |
die(); | |
} | |
//Tiny config options | |
$max = 95; //Max percentage the script should detect (in RAM Usage) | |
$restartScript = "/root/restartqueue.sh"; //Location of the restart script for the daemons. | |
/* restartqueue.sh "/root/restartqueue.sh" - also see: https://gist.github.com/mitchellurgero/e914c6109d0ad31fd85bf6d4dbb7e1f1 | |
#!/bin/bash |
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 | |
/* | |
RBL checker tool for Windows & Linux | |
By Mitchell Urgero | |
Code based off of https://gist.github.com/kamermans/1548922 just with *slight* modifications and a proper RBL list. | |
*/ | |
$mail_server = "111.222.333.444"; // or: trim(exec("curl icanhazip.com")); to get the WAN IP of the current server. | |
$rbls = array( | |
'b.barracudacentral.org', | |
'spam.rbl.msrbl.net', |
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
/********************************************************* | |
* Bitcoin Cash (BCH/BCC) | |
* 1DaXBwnUgWcPuNvEzei9KMkodjxF6rSSw6 | |
* | |
*/ | |
<?php | |
class db { | |
/** |
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 | |
#source .bashrc | |
cd /turnkey/fab/products/$1 | |
echo In products/$1 | |
echo Current Build $2 | |
export FAB_PATH=/turnkey/fab | |
export FAB_APT_PROXY=http://127.0.0.1:8124 |
Looking to install one of the distributions listed on this site? Here are some general instructions to get the job done for most distro's listed here.
Note: Some Linux distributions will require special instructions, which you will find on the download site for that specific distro.
Assuming you are on Windows (If you are on linux, you know how to install Linux and don't really need this tutorial) the easiest way is using Easy2Boot (Which does more than just Linux too!)
OlderNewer