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 | |
/** | |
* Split PDF file | |
* | |
* <p>Split all of the pages from a larger PDF files into | |
* single-page PDF files.</p> | |
* | |
* @package FPDF required http://www.fpdf.org/ | |
* @package FPDI required http://www.setasign.de/products/pdf-php-solutions/fpdi/ |
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 | |
# GUI-related packages | |
#pkgs=" | |
#xserver-xorg-video-fbdev | |
#xserver-xorg xinit | |
#gstreamer1.0-x gstreamer1.0-omx gstreamer1.0-plugins-base | |
#gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-alsa | |
#gstreamer1.0-libav | |
#epiphany-browser |
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
var requestjson = require('request-json'); | |
var request = require('request'); | |
var PushBullet = require('pushbullet'); | |
var pusher = new PushBullet('PUSHBULLET_API_KEY'); | |
var cheerio = require('cheerio'); | |
var stores = [ | |
{name:"The Pi Hut",url:'http://thepihut.com/products/raspberry-pi-zero',in_stock:check_pihut_inventory | |
}, | |
{name:"Adafruit",url:'https://www.adafruit.com/products/2816',in_stock:check_adafruit_inventory |
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 | |
DISKAVAILABLE=$(df / | awk '{ a = $3 } END { print a }'); | |
DISKUSED=$(df / | awk '{ a = $2 } END { print a }'); | |
DISKTOTAL=$((DISKAVAILABLE+DISKUSED)); | |
DISKPERCENTUSED=$(df / | awk '{ a = $5 } END { print a }'); | |
MEMUSE=$(free -m | head -n 2 | tail -n 1 | awk {'print $3'}); | |
MEMTOTAL=$(free -m | head -n 2 | tail -n 1 | awk {'print $2'}); | |
SWAPUSE=$(free -m | head -n 3 | tail -n 1 | awk {'print $3'}); | |
SWAPTOTAL=$(free -m | head -n 3 | tail -n 1 | awk {'print $2'}); | |
# TODO - Execute curl command once per day via cron, cat file here |