Skip to content

Instantly share code, notes, and snippets.

View philgood's full-sized avatar

RP philgood

View GitHub Profile
#include <ESP8266WiFi.h>
#include <ESP8266HTTPClient.h>
HTTPClient http; //Declare an object of class HTTPClient
WiFiClientSecure client;
const char* ssid = "xxx"; //insert your SSID here
const char* password = "xxx"; //insert your WIFI-Password here
const char* host = "https://api.pushcut.io/xxx/notifications/Doorbell";
@philgood
philgood / cpu-load.5s.sh
Created July 7, 2018 08:19
CPU load - Bitbar plugin to work with argos gnome extension
#!/usr/bin/env bash
# <bitbar.title>CPU Load</bitbar.title>
# <bitbar.version>v1.0</bitbar.version>
# <bitbar.author>Paul W. Rankin</bitbar.author>
# <bitbar.modified>Ryan Phelan - to work with argos in linux
# <bitbar.author.github>rnkn</bitbar.author.github>
# <bitbar.desc>Shows CPU load as a percentage (without using top).</bitbar.desc>
# <bitbar.image>http://photos.paulwrankin.com/screenshots/cpu-load.png</bitbar.image>
# <bitbar.dependencies>bash</bitbar.dependencies>
@philgood
philgood / bandwidth.1s.sh
Last active September 8, 2018 23:25
Bandwidth - Bitbar plugin to work with argos gnome extension
#!/usr/bin/env bash
# <bitbar.title>Bandwidth (Mbit/s)</bitbar.title>
# <bitbar.version>v0.0.1</bitbar.version>
# <bitbar.author>Kaspars Mickevics</bitbar.author>
# <bitbar.author.github>fxlv</bitbar.author.github>
# <bitbar.desc>Displays bandwidth usage for the primary interface in Megabits/s</bitbar.desc>
# <bitbar.dependencies>ifstat</bitbar.dependencies>
# <bitbar.image>https://cloud.githubusercontent.com/assets/2462211/12748504/584bbcea-c9b3-11e5-8109-ad8fdcefdc75.png</bitbar.image>
@philgood
philgood / PKGBUILD
Created July 6, 2018 08:16
ifstat 1.1 - A tool to report network interfaces bandwith just like vmstat/iostat do for other system counters
pkgname=ifstat
pkgver=1.1
pkgrel=1
pkgdesc="A tool to report network interfaces bandwith just like vmstat/iostat do for other system counters"
arch=('i686' 'x86_64')
url="http://gael.roualland.free.fr/ifstat/"
license=('GPL')
#install=ifstat.install
source=("http://gael.roualland.free.fr/ifstat/ifstat-$pkgver.tar.gz"
)
@philgood
philgood / arch-linux-install
Last active July 6, 2018 05:11 — forked from mattiaslundberg/arch-linux-install
Minimal instructions for installing arch linux on an UEFI system with full system encryption using dm-crypt and luks
# Install ARCH Linux with encrypted file-system and UEFI
# The official installation guide (https://wiki.archlinux.org/index.php/Installation_Guide) contains a more verbose description.
# Download the archiso image from https://www.archlinux.org/
# Copy to a usb-drive
dd if=archlinux.img of=/dev/sdX bs=16M && sync # on linux
# Boot from the usb. If the usb fails to boot, make sure that secure boot is disabled in the BIOS configuration.
# Set US keymap