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.
@luisfcorreia
luisfcorreia / splitRom.py
Created December 20, 2022 20:22
an Amiga 1200 splitter and swapper for kickstart roms
#!/usr/bin/env python3
import argparse
parser = argparse.ArgumentParser(description="Byteswap and split an Amiga 1200 ROM file")
parser.add_argument("infile", type=str, help="the ROM file to convert")
parser.add_argument("lo", type=str, help="filename for LO rom")
parser.add_argument("hi", type=str, help="filename for HI rom")
args = parser.parse_args()
//**************************************************************************************************************************
//**************************************************************************************************************************
// 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)
$fn=50;
altura = 5;
encoder=6.25;
midi=16;
lcdw=78;
lcdh=50;
bumperw=5;
//mixes it up
leftlcd=20;
@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')
version: '3'
services:
# Frontend
web:
image: jitsi/web
labels:
- "traefik.enable=false"
ports:
- '${HTTP_PORT}:80'
- '${HTTPS_PORT}:443'
function f(a,c,d){return d=d.split("").filter(c=>a.includes(c)),i=0,l=a.length,c?d.map(d=>(b=c[i++%c.length],a[(a.indexOf(b)-a.indexOf(d)+l)%l])).join(""):d.join("")}
f=(a,c,d)=>{return d=d.split("").filter(c=>a.includes(c)),i=0,l=a.length,c?d.map(d=>(b=c[i++%c.length],a[(a.indexOf(b)-a.indexOf(d)+l)%l])).join(""):d.join("")}
f=(e,a,c)=>(c=c.split("").filter(a=>e.includes(a)),i=0,l=e.length,a?c.map(c=>(b=a[i++%a.length],e[(e.indexOf(b)-e.indexOf(c)+l)%l])).join(""):c.join(""))
f=(a,k,t)=>(t=[...t].filter(k=>a.includes(k)),i=0,l=a.length,k?t.map(t=>(b=k[i++%k.length],a[(a.indexOf(b)-a.indexOf(t)+l)%l])).join(""):t.join(""))
f=(a,k,t)=>(o=0,t.replace(/./g,m=>(l=a.length,a.includes(m)?k?a[(a.indexOf(b=k[o++%k.length])-a.indexOf(m)+l)%l]:m:'')))
f=(a,k,t)=>(o=0,t.replace(/./g,m=>(l=a.length,(z=a.indexOf(m))>-1?k?a[(a.indexOf(b=k[o++%k.length])-z+l)%l]:m:'')))
f=(a,k,t)=>(o=0,t.replace(/./g,m=>(l=a.length,(z=a.indexOf(m))>-1?k?a[(a.indexOf(k[o++%k.length])-z+l)%l]:m:'')))
f=(a,k,t,o=0,l=a.length)=>t.replace(/./g,m
@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