Skip to content

Instantly share code, notes, and snippets.

@jschoch
jschoch / grafana_dashboard.json
Last active October 3, 2019 05:42 — forked from skosch/grafana_dashboard.json
Updating format for Grafana 6.4.1 Very simple Grafana dashboard for Prometheus Elixir metrics
{
"__inputs": [
{
"name": "DS_PROMETHEUS",
"label": "Prometheus",
"description": "",
"type": "datasource",
"pluginId": "prometheus",
"pluginName": "Prometheus"
}

GPT2 example. Italics text was input, the rest is GPT2 generated. Amazing there is a fake photo attribution in the generated text!

Fans outraged from audio recording of racist slurs uttered by long time daily show's host John Stewart.

(Photo: CBS)

A few months ago, John Stewart made the following video comment about black athletes.

"In a few years when we have all of the best black athletes in the world, I'd probably make an exception in having us play together in the N.B.A," Stewart said. "In order for us to have all our best players, the black players who are in the N.B.L. and in the N.F.L., I think we should have a black-themed team."

@jschoch
jschoch / gpt2-2.md
Last active September 27, 2019 05:23

Hillary Clinton dismissed President Trump as an “illegitimate president” and suggested that “he knows” that he stole the 2016 presidential election. “I will use every lawful means to fight this illegitimate and dangerously authoritarian administration. But I will not engage in politics as usual. I will not play these games. Now is the time to speak truth to power. “‏ “ “Trump knows it would be a reckless mistake for us to let him off the hook in this way “‏ “because the world would look to other forces for leadership in peace and security “‏ “ and that is exactly what we “‏ need at home. “ ‏ “We could begin the long and difficult journey back from a world of conflict and anxiety by bringing together all Americans, regardless of party, to honor our fundamental law. “ ‏ We are stronger together. “ ‏ But we will not be strong absent leadership from within the United States and our allies and by working together on the shared challenges from terrorism and climate change to

/*
timetwister.nxc
http://tiltedtwister.com
Hans Andersson 2012
Connections:
A Minute motor
B Ten minute motor
*/
@jschoch
jschoch / idf_diff.txt
Last active August 18, 2019 17:02
3.22 vs 4.0 idf
:~/diff_test$ diff a b
5,10c5,10
< load:0x3fff001c,len:6264
< load:0x40078000,len:10180
< load:0x40080400,len:6712
< entry 0x40080768
< I (28) boot: ESP-IDF v3.2.2-dirty 2nd stage bootloader
< I (28) boot: compile time 18:26:31
---
> load:0x3fff001c,len:6552
@jschoch
jschoch / i_hate_idf.txt
Created August 16, 2019 03:10
idf has won
make[1]: Leaving directory `/home/oldidf/esp-idf-v3.2.2/tools/kconfig'
GENCONFIG
The following Python requirements are not satisfied:
cryptography>=2.1.4
Please refer to the Get Started section of the ESP-IDF Programming Guide for setting up the required packages.
Alternatively, you can run "/usr/bin/python -m pip install --user -r /home/oldidf/esp-idf-v3.2.2/requirements.txt" for resolving the issue.
make: *** [check_python_dependencies] Error 1
oldidf@LAPTOP-AB698MBS:~/esp-idf-v3.2.2/examples/get-started/blink$ pip show cryptography
---
Name: cryptography
@jschoch
jschoch / foo.build
Created August 15, 2019 20:57
love yak shaving
idf.py build
Checking Python dependencies...
Python requirements from /home/schoch/dev/esp-idf/requirements.txt are satisfied.
Executing action: all (aliases: build)
Running make in directory /home/schoch/dev/ESP32APA102Driver/build
Executing "make -j 6 all"...
[ 0%] Built target _project_elf_src
[ 0%] Built target esp32_linker_script
[ 1%] Built target partition_table
[ 1%] Performing build step for 'bootloader'
#include <neotimer.h>
Neotimer strobeT = Neotimer(30); // Set timer's preset to 30 milliseconds
Neotimer t1 = Neotimer(1000);
Neotimer t2 = Neotimer(50);
const int BTN1 = 0;
const int LED = 4;
@jschoch
jschoch / gist:57b06eda3e90df2874dd98591371840e
Created December 6, 2018 18:06
for the love of arduino
C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\jesse\AppData\Local\Arduino15\packages -hardware C:\Users\jesse\Documents\Arduino\hardware -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\jesse\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\jesse\Documents\Arduino\libraries -fqbn=Arduino_STM32:STM32F1:genericSTM32F103C:device_variant=STM32F103CB,upload_method=DFUUploadMethod,cpu_speed=speed_72mhz,opt=osstd -ide-version=10805 -build-path C:\Users\jesse\AppData\Local\Temp\arduino_build_597543 -warnings=default -build-cache C:\Users\jesse\AppData\Local\Temp\arduino_cache_534225 -prefs=build.warn_data_percentage=75 -verbose C:\Users\jesse\Documents\Arduino\foo\foo.ino
C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino
@jschoch
jschoch / printer.cfg
Created September 22, 2018 15:08
klipper mks gen-L
# This file contains pin mappings for the 2017 Creality CR-10S with a MKS Gen-L board. To use
# this config, the firmware should be compiled for the AVR atmega2560.
# See the example.cfg file for a description of available parameters.
[stepper_x]
step_pin: ar54
dir_pin: ar55
enable_pin: !ar38
step_distance: .0125