Skip to content

Instantly share code, notes, and snippets.

@luisfcorreia
luisfcorreia / userconf.txt
Created August 27, 2024 20:35 — forked from M0LTE/userconf.txt
Raspberry Pi userconf
Create a file named user userconf (or userconf.txt) containing the following:
pi:$6$c70VpvPsVNCG0YR5$l5vWWLsLko9Kj65gcQ8qvMkuOoRkEagI90qi3F/Y7rm8eNYZHW8CY6BOIKwMH7a3YYzZYL90zf304cAHLFaZE0
Place userconf (or userconf.txt) plus an empty file named ssh (or ssh.txt) in the BOOT (FAT32) partition of the SD card.
Insert the SD card in the Raspberry Pi and it should boot with access to user 'pi' (password : raspberry) via SSH.
//**************************************************************************************************************************
//**************************************************************************************************************************
// ALEX-PASTA-DATA-COLLECTION V6
//**************************************************************************************************************************
//**************************************************************************************************************************
// Wifi libraries
#include <SPI.h>
#include <WiFiNINA.h>
@luisfcorreia
luisfcorreia / sessiontest.py
Created January 2, 2022 20:54 — forked from oz123/sessiontest.py
Example of using beaker sessions with bottle
import bottle
from beaker.middleware import SessionMiddleware
session_opts = {
'session.type': 'memory',
'session.cookie_expires': 300,
'session.auto': True
}
app = SessionMiddleware(bottle.app(), session_opts)
@luisfcorreia
luisfcorreia / autospam.py
Created May 26, 2020 21:43 — forked from robertosw/autospam.py
Bluetooth spam, blocking choosen device
# I got all in /home/pi - change directories if put somewhere else
import time
import os
path = '/home/pi/mac.txt'
mac_file = open(path, 'r')
attackmac = mac_file.read()
path = '/home/pi/attacktime.txt'
atk_file = open(path, 'r')
@luisfcorreia
luisfcorreia / gist:2094209749029f97b27d37118c7de6ce
Created April 26, 2019 17:47 — forked from nosuchuser/gist:21db3fdd9f4b80bf0910f8b8b6ea2f63
dnsmasq.conf configuration for vodafone IPTV
server=/.iptvpoc.alu/.discovery.iptv.microsoft.com/.iptv.vodafone.pt/.iptvdiscovery/.ims.vodafone.pt/192.168.1.1
@luisfcorreia
luisfcorreia / synth.cpp
Created April 15, 2018 18:13 — forked from genericpenguin/synth.cpp
Arduino Synth
/* Arduino Synth from
https://janostman.wordpress.com/2016/01/15/how-to-build-your-very-own-string-synth/
*/
#include <avr/interrupt.h>
#include <avr/io.h>
#include <avr/pgmspace.h>
#ifndef cbi
#define cbi(sfr, bit) (_SFR_BYTE(sfr) &= ~_BV(bit))
#endif
#ifndef sbi
@luisfcorreia
luisfcorreia / TinyTS_v11.ino
Created April 15, 2018 14:12
The Tiny-TS Touch Synthesizer
// (*) All in the spirit of open-source and open-hardware
// Janost 2016 Sweden
 
// The Tiny-TS Touch Synthesizer
// https://janostman.wordpress.com/the-tiny-ts-diy-touch-synthesizer/
 
// Copyright 2016 DSP Synthesizers Sweden.
//
// Author: Jan Ostman
//
@luisfcorreia
luisfcorreia / microTS.ino
Created April 15, 2018 14:10 — forked from anonymous/microTS.ino
Source code for the micro-TS key fob synthesizer
// (*) All in the spirit of open-source and open-hardware
// Janost 2017 Sweden
 
// The Micro-TS Key fob Touch Synthesizer
// https://janostman.wordpress.com/the-microts-diy-synth/
 
// Copyright 2017 DSP Synthesizers Sweden.
//
// Author: Jan Ostman
//
@luisfcorreia
luisfcorreia / miniTSos09.ino
Created April 13, 2018 22:45 — forked from anonymous/miniTSos09.ino
mini-TS OS v0.9
#define SSD1306_SDA 4
#define SSD1306_SCL 5
#define SSD1306_SA 
0x78  // Slave address