This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Arduino.h> | |
#if defined ARDUINO_AVR_UNO || defined ARDUINO_AVR_LEONARDO | |
#include <Arduino_FreeRTOS.h> | |
#elif defined ARDUINO_NUCLEO_F103RB | |
#include <STM32FreeRTOS.h> | |
#elif defined ARDUINO_DISCO_L072CZ_LRWAN1 | |
#include <STM32FreeRTOS.h> | |
#endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Umeå Hackerspace konstpaj self-explanatory configuration file | |
term=1 | |
xres=1920 | |
yres=1080 | |
# auto=0, analogue=1, hdmi=2 | |
aout=0 | |
vol=0 | |
background="black.ppm" | |
videofolder="videos" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Name": "Namecoin", | |
"Desc": "Description of Namecoin", | |
"ID": "0xfeb4bef9", | |
"Port": 8334, | |
"Pver": 70001, | |
"TTL": 600, | |
"InitialIP": "127.0.0.1", | |
"DNSName": "dnsseed.nmctest.net", | |
"Seeder1": "nmc.seed.quisquis.de", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <string.h> | |
#include <math.h> | |
#include <unistd.h> // for sleep function | |
#include <libserialport.h> // cross platform serial port lib | |
//#include "protocol.h" | |
//const char* desired_port = "COM8"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//compile with 'javac RegexTest.java' | |
//run with java RegexTest example.com | |
import java.util.regex.Matcher; | |
import java.util.regex.Pattern; | |
public class RegexTest { | |
public static void main(String[] args) { | |
//line bellow does not work, must include regex inline instead |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TADA, it’s `hexdump -v -e '64/1 "%02x" "\n"' < /dev/hidraw3` | |
No idea what the first byte is… but I’m going to assume its for device ID for the many users that are connected, but it probably has to be set by the connected machine? | |
01ff777f7f0800aa0000435dfdf1ff14000200c5ff0721150300000000001b000001fc9133a32990880428008000000080000000008000000080000000008000 | |
↑↑↑↑ | |
left stick, value, first field is horz (00 left), second field is vertical (00 top) | |
017f80ff61080064000059f2fdfffffbff0e00d107081e9bf600000000001b0000018e94b1b00690880428008000000080000000008000000080000000008000 | |
↑↑↑↑ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:var s=document.createElement('script');s.setAttribute('src', 'https://github.com/Khan/tota11y/releases/download/0.1.3/tota11y.min.js');document.getElementsByTagName('body')[0].appendChild(s);void(s); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
socat - TCP4:10.168.168.1:11880 | |
dd if=/dev/mtdr0 of=/tmp/mtdr0-image bs=4k | |
md5sum /tmp/mtdr0-image > /tmp/mtdr0-image.md5sum |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tell application "TextEdit" | |
activate | |
make new document | |
end tell | |
tell application "Notes" | |
if folder "Archive" exists then | |
set output to "" | |
repeat with aNote in notes in folder "Archive" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This file provides a long_running decorator to indicate that a function needs a long amount of time to complete and | |
# the computer should not enter standby. This file currently only works on Windows and is a no-op on other platforms. | |
import ctypes | |
import platform | |
ES_CONTINUOUS = 0x80000000 | |
ES_SYSTEM_REQUIRED = 0x00000001 | |