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
### Keybase proof | |
I hereby claim: | |
* I am Nickfost on github. | |
* I am nickfost (https://keybase.io/nickfost) on keybase. | |
* I have a public key whose fingerprint is 408C 706E D349 E02F DAF9 2EA0 7026 C67D A9C2 E6C6 | |
To claim this, I am signing this object: |
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 | |
# NOTE: This installs docker, pulls the project deploys 4 Archive Warrior Instances, Updates Debian based Os, Reboots. | |
# Nickfost.net | |
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 | |
/** | |
* Simple downloads page. | |
* @author Nick Foster <[email protected]> | |
*/ | |
// CONFIG | |
$privatedir = "/"; | |
$publicdir = "/"; |
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
## 15 minute blocks wait exmaple | |
import os | |
from datetime import datetime | |
def wait_for_twitter_limit(): | |
now = datetime.now() | |
issuetime = now.minute | |
if issuetime < 15: | |
goodtime = 30 | |
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
//explode $data into a $line and explode line into a $word and check if it's a url then pass it bitly and return that url | |
function bitly($data){ | |
//token | |
$token = ""; // you must add your api token here | |
//break into line by line | |
$linearray = explode("\n",$data); | |
$linei = 0; | |
foreach($linearray as $line){ | |
$wordarray = explode(" ",$line); | |
$wordi = 0; |