Skip to content

Instantly share code, notes, and snippets.

View mralexgray's full-sized avatar

Alex Gray mralexgray

View GitHub Profile
@gene1wood
gene1wood / google-drive-symlink.md
Last active May 23, 2024 14:54
Google Drive symlink
@mralexgray
mralexgray / trumpisms.json
Last active April 18, 2020 18:13
dumb things he says
{
"style": [
"Let me tell you something, this is one of the most pathetic, stupid questions I have ever seen on Quora! Sad! I kid you not, we need to report this person to Quora moderation, and no one does that better than me, believe me.",
"I have gotten so fed up with Quora lately, I kid you not. I tell you what, I’m going to make a new site. It will be a very good site, and I will deport people like you from that site. And honestly, if you don’t like it… I’m sorry. And quite frankly, Quirky Quorans like you are just as bad as Crooked Hillary.",
"I tell you what, if we can’t make Quora great again, I will make a new site. It will be so good -and let me tell you something- people will say it is a very good site. I will have the best site, I kid you not. It will be so good.",
"And you know what? I will build a great, great firewall around this site. It will keep all the hackers out – won’t even have to deport them! I tell you what, this site will be so amazing. It will be the best site. In fact- It w
@mralexgray
mralexgray / 0x00000.bin
Created January 3, 2016 08:36 — forked from ajfisher/0x00000.bin
ESP8266 Transparent bridge to J5
@whatnick
whatnick / Energy_Monitor.ino
Created September 3, 2015 13:08
ESP8266 Energy Monitor
/*
* This sketch sends ads1115 current sensor data via HTTP POST request to thingspeak server.
* It needs the following libraries to work (besides the esp8266 standard libraries supplied with the IDE):
*
* - https://github.com/adafruit/Adafruit_ADS1X15
*
* designed to run directly on esp8266-01 module, to where it can be uploaded using this marvelous piece of software:
*
* https://github.com/esp8266/Arduino
*
@develhox
develhox / switchs.h
Last active September 30, 2024 15:23
Switch operand implementation for the strings
#ifndef __SWITCHS_H__
#define __SWITCHS_H__
#include <string.h>
#include <regex.h>
#include <stdbool.h>
/** Begin a switch for the string x */
#define switchs(x) \
{ char *ss__sw = (x); bool ss__done = false; bool ss__cont = false; \
@jcmvbkbc
jcmvbkbc / Makefile
Last active March 29, 2021 07:45
Makefile for ESP8266 that can build both C and C++
# tnx to mamalala
# Changelog
# Changed the variables to include the header file directory
# Added global var for the XTENSA tool root
#
# This make file still needs some work.
#
# Updated for SDK 0.9.2
#
# Output directors to store intermediate compiled files
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>EnvironmentVariables</key>
<dict>
<key>NODE_ENV</key>
<string>production</string>
</dict>
<key>Label</key>
@mralexgray
mralexgray / README.md
Last active August 29, 2015 14:07 — forked from mbostock/.block

Run like so:

node gist-clone-all.js username

You'll want to replace "username" with your own username.

This script clones using the push URL, so you should probably be the owner of the gists. You could also use this to clone someone else's gists, but in that case you may wish to edit the code to use gist_pull_url instead.

var $ = require('NodObjC');
$.import('Cocoa');
var installNSBundleHook = function() {
var cls = $.NSBundle;
if (cls) {
var bundleIdentifier = cls.getInstanceMethod('bundleIdentifier');
bundleIdentifier.setImplementation(function(val) {
@bigmonkeyboy
bigmonkeyboy / README.md
Last active April 22, 2023 22:08 — forked from juzam/Node_Red Init
init.d script for Node-RED

This gist creates an init.d script to automatically run Node-RED at boot time.

To run it as a single step you can cut paste the following single line command

sudo wget -O /tmp/download https://gist.github.com/bigmonkeyboy/9962293/download && sudo tar -zxf /tmp/download --strip-components 1 -C /etc/init.d && sudo chmod 755 /etc/init.d/nodered && sudo update-rc.d nodered defaults

or click right-click "save as" this link - But please read the script first and satisfy yourself it's safe to execute in your environment...