Skip to content

Instantly share code, notes, and snippets.

View V1DEOJAMES's full-sized avatar
⛏️
Playing Minecraft

James V1DEOJAMES

⛏️
Playing Minecraft
View GitHub Profile
@V1DEOJAMES
V1DEOJAMES / hb_all_books_dl.js
Last active October 8, 2018 22:10 — forked from zuazo/hb_all_books_dl.js
Humble bundle book bundles - download all books at once
/*
Forked from https://gist.github.com/zuazo/a91ecbb97b90ef3ef9ce8caf361199a2
Which was Forked from https://gist.github.com/p0kR/95e05e689be4e59b1b8fb6e383b9e25a
This doesnt download ebooks. Small change but I kept forgetting to remove the other formats when I copied it. So. Here we are.
After purchasing a humble book bundle, go to your download page for that bundle.
Open a console window for the page and paste in the below javascript
this fork downloads all formats and does so without using jquery (since that didnt work for me)
note that if you are in chrome, chrome will not download the pdfs for you by default, to fix this
#include <Arduino.h>
#include <ESP8266WiFi.h>
#include <PubSubClient.h>
#include <SparkFunBME280.h>
#include <SparkFunCCS811.h>
#include <SoftwareSerial.h>
#define CCS811_ADDR 0x5B //Default I2C Address
#define LENG 31 //0x42 + 31 bytes equal to 32 bytes#define LENG 31 //0x42 + 31 bytes equal to 32 bytes
#define TX D7
@V1DEOJAMES
V1DEOJAMES / gist:cd9591b628c318ddd5476a6f3643fd5b
Created July 23, 2018 01:32
Copying SD Card and zip. (IE: Capturing BB or Raspi image)
sudo dd bs=4M if=/dev/sda status=progress| gzip > /home/james/LoraPi`date +%d%m%y`.gz
https://medium.com/@prtdomingo/editing-files-in-your-linux-virtual-machine-made-a-lot-easier-with-remote-vscode-6bb98d0639a4