Skip to content

Instantly share code, notes, and snippets.

@nevali
nevali / minisapserver-0.3.6-customsdp.diff
Created April 16, 2009 07:37
A patch against VideoLAN's miniSAPServer to allow custom SDP announcements
diff -ruN minisapserver-0.3.6/message.cpp minisapserver-0.3.6-customsdp/message.cpp
--- minisapserver-0.3.6/message.cpp 2009-01-11 19:53:25.000000000 +0000
+++ minisapserver-0.3.6-customsdp/message.cpp 2009-04-15 00:21:19.000000000 +0100
@@ -96,59 +96,65 @@
bool Message::AddProgram(Program *p)
{
+ string sdp = "v=0\r\n"; // SDP version
/* FIXME */
/* RFC 2327 Compliance ? */
@Karry
Karry / hdmi-monitor.sh
Last active August 22, 2019 22:33
Purpose of this script is to monitor HDMI state on my Raspberry PI and start XBMC / Kodi when output is plugged in and terminate it when it is unplugged. It is tested with Raspbian distribution and XBMC / Kodi compiled from git.
#!/bin/bash
## DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
## Version 2, December 2004
##
## Copyright (C) 2013 Lukáš Karas <lukas.karas@centrum.cz>
##
## Everyone is permitted to copy and distribute verbatim or modified
## copies of this license document, and changing it is allowed as long
## as the name is changed.
@alecthegeek
alecthegeek / ConfigPocketPC
Last active March 9, 2017 22:41
Setup packages and improve security on PocketCHIP
#!/bin/bash
# Set up my PocketCHIP (Debian Linux)
# NB It's recommended you set up ssh key auth before running this script
# Extra tools -- edit this to suite what you want on your CHIP
OPTIONAL_PACKAGES="vim-gtk git build-essential python-serial arduino arduino-mk"
# Update
# 1st lets fix an occasional but obscure problem during upgrade
@Gadgetoid
Gadgetoid / main.py
Last active May 18, 2018 13:21
PiratePython: Scrollbot Web API
#!/usr/bin/env python
import scrollphathd
from scrollphathd.fonts import font5x7
from flask import Flask, request
import threading
import queue
import signal
import time
from zeroconf import ServiceInfo, Zeroconf
@Lewiscowles1986
Lewiscowles1986 / README.md
Last active November 18, 2023 19:08
Playstation 2 EU USB "The Buzz" controller

"The Buzz" Playstation 2 EU USB controller

Using tool "Simple HID Write"

  • W: Write
  • R: Read
W 00 {FF} 00 00 00 // controller 1 red light activate
W 00 {00} 00 00 00 // controller 1 red light deactivate

Hacker sa Switch facilement avec Atmosphère, Kosmos, Hekate & PegaScape

Vous voyez une multitude de tutoriels mais vous ne savez pas comment vous y prendre, quoi choisir etc. Ce tutoriel vous montrera les bonnes pratiques et l'utilisation d'outils faciles.

Est-ce que je peux hacker ma Nintendo Switch ?

Il existe plusieurs exploits ou failles sur la Nintendo Switch.

  • Cas 1: J'ai une Switch non patchée
@elementzonline
elementzonline / esp32_dualcore_example.ino
Last active December 7, 2021 21:06
ESP32 Dualcore usage with FastLED - Not working in Platformio
#include <Arduino.h>
#include <FastLED.h>
TaskHandle_t Task1;
TaskHandle_t Task2;
#define FRAMES_PER_SECOND 1
#define DATA_PIN_KICK 15 //144er roll
@justinschuldt
justinschuldt / raspberry-pi-zero_as_webcam.md
Last active July 4, 2024 09:01
Directions for setting up a RaspberryPi to act as a generic USB webcam

hardware/software

Webcam parts:

  • Raspberry Pi Zero W Rev 1.1
  • Raspberry Pi Camera v2 (8-megapixel)
  • Raspberry Pi High Quality Camera (12.3-megapixel)
  • Raspbian Buster Lite 2020-02-13

Webcam works with:

  • Windows 10
  • Windows 10 "Camera" app
import supervisor
import time
import board
# For Trinket M0, Gemma M0, ItsyBitsy M0 Express, and ItsyBitsy M4 Express
import adafruit_dotstar
led = adafruit_dotstar.DotStar(board.APA102_SCK, board.APA102_MOSI, 1, brightness=0.2)
def convert_color_str(color_str):
color_str = color_str.replace("(", "")
@anecdata
anecdata / code.py
Last active February 13, 2023 19:00
CircuitPython Pin Finder: microcontroller.pin to board mappings
# SPDX-FileCopyrightText: 2020 anecdata
#
# SPDX-License-Identifier: MIT
import microcontroller
import board
for pin in dir(microcontroller.pin):
if isinstance(getattr(microcontroller.pin, pin), microcontroller.Pin):
print("".join(("microcontroller.pin.", pin, "\t")), end=" ")