Skip to content

Instantly share code, notes, and snippets.

View jforge's full-sized avatar

jforge

  • Germany, Bargteheide
  • 12:21 (UTC +02:00)
View GitHub Profile
@jforge
jforge / Attraktor-Arduino-Day-2017 - Arduino-based Gas Sensor
Last active April 7, 2017 06:13
Attraktor-Arduino-Day-2017 - Arduino-based Gas Sensor
ref:
- https://www.meetup.com/de-DE/attraktor/events/238182737/
- https://wiki.attraktor.org/RGB_Moodlight
res:
- https://www.arduino.cc/en/main/software
- http://zadig.akeo.ie/
# Setup Arduino IDE and solve the basic issues for your OS.
@jforge
jforge / Connect-RaspberryPi-to-PC
Created April 12, 2017 21:30
Connect-RaspberryPi-to-PC
use ethernet cable and connect raspberrypi directly
ipconfig : check the new address on the new network
arp -a : find the neighbour hood, identify raspberrypi ip by exlusion of all broadcast and multicast addresses
use the ip for ssh access
or use ssh raspberrypi.local, if it has a avahi daemon running
(Install PuTTY on windows for ssh client, pftp etc.)
1. Check-in at http://alexa.design/hamburgskills
2. Create a free account at http://developer.amazon.com
3. Create an account at http://aws.amazon.com
Build & publish THREE skills within 30 days!
-> get a device
Alexa Resources
http://alexa.design/ask
@jforge
jforge / wtd-2017
Last active September 12, 2017 14:19
WTD 2017 Info Board Team R.E.D.
===============================
Sources on Github: https://github.com/jforge/wtd-2017
== PubsubClient for Arduino
https://github.com/knolleary/pubsubclient
https://gist.github.com/igrr/7f7e7973366fc01d6393
@jforge
jforge / alexa-lambda-cloudwatch
Last active September 19, 2017 12:03
Alexa Lambda Cloudwatch Logs
# typical failure, if you don't defined explicite stateHandlers, but only 'global' handlers, together with an state change to
# this.handler.state = states.ASKMODE;
# Either avoid this state setting, or defined the state handlers for every state of
# const states = {
# STARTMODE: '_STARTMODE', // Prompt the user to start or restart the game.
# ASKMODE: '_ASKMODE', // Alexa is asking user the questions.
# DESCRIPTIONMODE: '_DESCRIPTIONMODE' // Alexa is describing the final choice and prompting to start again or quit
#};
2017-09-13T16:44:51.784Z dcfe0c3e-98a2-11e7-ac8e-2da12a149a47
@jforge
jforge / ImperialMarch.ino
Created November 17, 2017 10:05 — forked from octosteve/ImperialMarch.ino
Imperial march played on an Arduino with a Piezo Element
int speakerPin = 9;
int length = 70;
String notes[] = {"G4","G4", "G4", "D#4/Eb4", "A#4/Bb4", "G4", "D#4/Eb4","A#4/Bb4", "G4", "D5", "D5", "D5", "D#5/Eb5", "A#4/Bb4", "F#4/Gb4", "D#4/Eb4","A#4/Bb4", "G4", "G5","G4","G4","G5","F#5/Gb5", "F5","E5","D#5/Eb5","E5", "rest", "G4", "rest","C#5/Db5","C5","B4","A#4/Bb4","A4","A#4/Bb4", "rest", "D#4/Eb4", "rest", "F#4/Gb4", "D#4/Eb4","A#4/Bb4", "G4" ,"D#4/Eb4","A#4/Bb4", "G4"};
int beats[] = { 8, 8, 8, 6, 2, 8, 6 , 2 ,16 , 8, 8, 8, 6, 2, 8, 6, 2, 16,8,6,2,8,6,2,2, 2, 2,6,2,2,8,6,2,2,2,2,6,2,2,9,6,2,8,6,2,16 };
int tempo = 50;
void playTone(int tone, int duration) {
for (long i = 0; i < duration * 1000L; i += tone * 2) {
digitalWrite(speakerPin, HIGH);
delayMicroseconds(tone);
@jforge
jforge / GagSsl.java
Created February 16, 2018 11:15 — forked from mefarazath/GagSsl.java
Get OkHttpClient which ignores all SSL errors.
private static OkHttpClient getUnsafeOkHttpClient() {
try {
// Create a trust manager that does not validate certificate chains
final TrustManager[] trustAllCerts = new TrustManager[]{
new X509TrustManager() {
@Override
public void checkClientTrusted(java.security.cert.X509Certificate[] chain,
String authType) throws CertificateException {
}
https://www.smart-wohnen.de/haus-garten/artikel/so-gehts-einen-magic-mirror-selbst-bauen/
https://www.glas-star.de/spionspiegelnachmass/chrome-spy-spiegel/
@jforge
jforge / README.md
Created February 27, 2018 14:37 — forked from fnichol/README.md
Testing on Mac Platforms with Test Kitchen

Testing Mac Platforms with Test Kitchen

We'll assume an OS X Mavericks (10.9) box here.

Requirements

You'll need:

  • Vagrant
  • Vagrant's VMware Fusion provider
@jforge
jforge / go-shebang-story.md
Created March 1, 2018 09:55 — forked from posener/go-shebang-story.md
Story: Writing Scripts with Go

Story: Writing Scripts with Go

This is a story about how I tried to use Go for scripting. In this story, I’ll discuss the need for a Go script, how we would expect it to behave and the possible implementations; During the discussion I’ll deep dive to scripts, shells, and shebangs. Finally, we’ll discuss solutions that will make Go scripts work.

Why Go is good for scripting?

While python and bash are popular scripting languages, C, C++ and Java are not used for scripts at all, and some languages are somewhere in between.