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
; https://web.archive.org/web/20190701203222/https://www.pcengines.ch/tp3.htm | |
; The disassembler was applied to a copy of TP 3.01A downloaded from WinWorld. | |
; I postprocessed the disassembly with a script to clean up spacing and column alignment. | |
; *** TURBO PASCAL version 3.01 A source code | |
; *** | |
; *** commented by Pascal Dornier | |
; *** all rights reserved | |
; "*** | |
cseg $100 ; "COM file... |
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
/* | |
Go-Language implementation of an SSH Reverse Tunnel, the equivalent of below SSH command: | |
ssh -R 8080:127.0.0.1:8080 operatore@146.148.22.123 | |
which opens a tunnel between the two endpoints and permit to exchange information on this direction: | |
server:8080 -----> client:8080 |
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
port module Api exposing (..) | |
import JsonStuff exposing (ToJson, FromJson, getEncoder, getDecoder) | |
import Http | |
helpPostJson : String -> ToJson a msg -> FromJson b msg -> a -> Http.Request b | |
helpPostJson url toJson fromJson o = | |
Http.request | |
{ method = "POST" | |
, headers = [] |
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
" Minimal neovim configuration for go | |
" | |
" deoplete requires neovim, so this will not work with regular vim | |
" | |
" prereqs: | |
" - neovim | |
" - neovim python3 (pip3 install --upgrade neovim) | |
" | |
" includes: | |
" - syntax checking on save (using neomake, go and gometalinter) |
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
#!/usr/bin/python | |
# -*- coding: UTF-8 -*- | |
import serial, time, struct | |
ser = serial.Serial() | |
ser.port = "/dev/cu.wchusbserial1410" # Set this to your serial port | |
ser.baudrate = 9600 | |
ser.open() |
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 <Wire.h> | |
#include "Adafruit_Trellis.h" | |
#include <SoftwareSerial.h> | |
#include "Adafruit_Soundboard.h" | |
/************ sound board setup ***********/ | |
// Choose any two pins that can be used with SoftwareSerial to RX & TX | |
#define SFX_TX 5 | |
#define SFX_RX 6 | |
// Connect to the RST pin on the Sound Board |
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
package main | |
// This is a basic example of running an nsqd instance embedded. It creates | |
// and runs an nsqd with all of the default options, and then produces | |
// and consumes a single message. You are probably better off running a | |
// standalone instance, but embedding it can simplify deployment and is | |
// useful in testing. | |
// See https://github.com/nsqio/nsq/blob/master/nsqd/options.go and | |
// https://github.com/nsqio/nsq/blob/master/apps/nsqd/nsqd.go for |
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
RailsRoot = File.expand_path "#{File.dirname __FILE__}/.." | |
PidsDir = "#{RailsRoot}/tmp/pids" | |
OldPidFile = "#{PidsDir}/unicorn.pid.oldbin" | |
ListenAddress = "127.0.0.1" | |
ListenPort = 50000 | |
UnixListen = "tmp/unicorn.sock" | |
Backlog = 2048 | |
Workers = 4 |
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
gem 'lograge' # more readable logs | |
gem 'logstash-event' # for logstash json format | |
gem 'mono_logger' # threadsafe logging |
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
// Base class for MCP23008 and MCP23017 family of I2C i/o expanders | |
class MCP230xx { | |
BASE_ADDR = 0x20 | |
i2cPort = null | |
i2cAddr = null | |
regs = null | |
constructor(i2cPort, deviceAddr) { | |
this.i2cPort = i2cPort | |
this.i2cAddr = (BASE_ADDR + deviceAddr) << 1 |
NewerOlder