Skip to content

Instantly share code, notes, and snippets.

View jfm-so's full-sized avatar

jfm jfm-so

View GitHub Profile
@jfm-so
jfm-so / filebackup.sh
Created August 22, 2016 14:22
Web folder backup
####FitTech Backup Script
#### Johnathan Martin (2016)
##
set -e #Exit on Errors
##
BACKUPFROM='/var/www/' #Directory to Backup
BACKUPTO='/media/HDD1/' #Location of backup
TIMESTAMP=$(date +%s); #Unix Timestamp
##
tar -zchf $BACKUPTO$TIMESTAMP.tar.gz $BACKUPFROM #Create TAR File

Keybase proof

I hereby claim:

  • I am johnathanmartin on github.
  • I am johnathan (https://keybase.io/johnathan) on keybase.
  • I have a public key whose fingerprint is AF85 50E4 0EBF 994A 45C6 619B C1C3 4190 CB2A 5C02

To claim this, I am signing this object:

@jfm-so
jfm-so / gist:d3e148deb5969c0e4b60
Created January 15, 2016 21:50
PiWallet Developer Mode
<?php if (!defined("IN_WALLET")) { die("Auth Error!"); } ?>
<?php
class Client {
private $uri;
private $jsonrpc;
function __construct($host, $port, $user, $pass)
{
$this->uri = "http://" . $user . ":" . $pass . "@" . $host . ":" . $port . "/";
$this->jsonrpc = new jsonRPCClient($this->uri);
}
### Keybase proof
I hereby claim:
* I am johnathanmartin on github.
* I am johnathan (https://keybase.io/johnathan) on keybase.
* I have a public key whose fingerprint is 6A05 1B2F E70E 101A 8F26 167B C428 C157 A4EA 1006
To claim this, I am signing this object: