Skip to content

Instantly share code, notes, and snippets.

View xlogik's full-sized avatar

Antoine xlogik

  • USA
View GitHub Profile
@tchen
tchen / observe.py
Created November 27, 2020 06:34
Observe Bluetooth advertisements for Govee H5075 and H5177 thermo-gygrometer and print out temperature, humidity, battery level
import datetime
from time import sleep
from bleson import get_provider, Observer
def c2f(val):
return round(32 + 9*val/5, 2)
last = {}
def temp_hum(values, battery, address):
@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
@zhoreeq
zhoreeq / prosody.cfg.lua
Created December 17, 2019 20:43
prosody.cfg.lua for Yggdrasil XMPP federation
admins = { }
plugin_paths = { "/usr/local/lib/prosody/modules" }
modules_enabled = { "roster", "saslauth", "dialback", "disco", "carbons", "pep", "private",
"blocklist", "vcard4", "vcard_legacy", "version", "uptime", "time", "ping", "register", "mam", "admin_adhoc", "bosh", "posix"}
modules_disabled = {}
allow_registration = true
daemonize = false; pidfile = "/run/prosody/prosody.pid"; use_libevent = true;
@pigeonhill
pigeonhill / DoF Bar.lua
Last active February 10, 2020 21:52
DoF Bar
-- DoF Bar
-- Version 1.672
-- Released Feb 2020
-- Garry George - http://photography.grayheron.net/
--[[
DOF Bar User Guide
DoF Bar is principally targeted at those that wish to obtain 'tack sharp' images from infinity to a near-field point of interest, eg landscape and cityscape photographers; either from a single image or through focus bracketing.
It can, however, also be useful to those who simply wish to know more about their depth of field (DoF).
@flatz
flatz / remote_pkg_installer.txt
Last active January 30, 2024 04:21
Instructions for Remote Package Installer
Remote Package Installer
Package link: https://mega.nz/#!2dN1XajB!Z5fXyFoKOXFI_ujgGoCZfFFy5nyn7OWo6vF6h_HmWhQ
Requirements:
Any exploit on 4.5x+
HEN 1.8 (you could get it from zecoxao's page) or any other kernel payload (it just need to have fPKG stuff and /data mount patches for ShellCore that I've posted recently)
Changelog:
[+] Added CORS header to interact with browser's AJAX
@jhaddix
jhaddix / content_discovery_all.txt
Created May 26, 2018 11:51
a masterlist of content discovery URLs and files (used most commonly with gobuster)
This file has been truncated, but you can view the full file.
`
~/
~
ים
___
__
_
@pigeonhill
pigeonhill / 4m.lua
Created May 12, 2018 13:50
EOSM script 4 (ND)
--Neutral Density Script (NDS) Release 0.9M
--[[
********************************************************************************************
This script creates a bracket set for post processing, allowing you to simulate an ND filter.
Also you can use the script to create brackets to 'remove people' ;-)
Change the number of brackets or the time delay (s) between brackets using the MENU and PLAY keys (Green text)
Toggle between these changes with the UP key.
@moorer2k
moorer2k / rtlsdr-decoder-setup.sh
Last active January 29, 2024 01:35
Automated setup created for DietPi on an RPI2 for RTL-SDR pager decoding using mutlimon-ng and pagermon. Uses version managers for node and python to keep it isolated + correctly compiled.
#DietPi setup script for RTL-SDR/Multimon-ng/Pagermon for decoding pager messages(FLEX/POCSAG etc.)
cat <<EOF >no-rtl.conf
blacklist dvb_usb_rtl28xxu
blacklist rtl2832
blacklist rtl2830
EOF
mv no-rtl.conf /etc/modprobe.d/
import discord
import asyncio
import requests
import json
client = discord.Client()
def check_psn(psn):
response = requests.post('https://accounts.api.playstation.com/api/v1/accounts/onlineIds', json={"onlineId": psn, "reserveIfAvailable": False})
return response.status_code != 401 and response.status_code != 400
@joeljacobs
joeljacobs / - instructions
Last active April 20, 2024 14:02
Rico SP C250DN Toner Reset on Raspberry Pi
Below are single-line commands to run in BASH on a Raspberry Pi to rewrite the toner chips to "full" for a Ricoh SP C250DN Printer.
You will need to have the 4 files below in the same directory: "black" "cyan" "magenta" and "yellow".
The chip is near one edge of the cartridge. The pad closest to the edge is GND, followed by VCC, DATA, and Clock.
On the Pi, connect VCC and GND to +3.3V and GND. Connect Data to (physical numbering) 3 and 5. They are the I2C Data and Clock pins.
Be sure i2c is enabled and installed.
modprobe -r i2c_bcm2708 ;modprobe i2c_bcm2708 baudrate=9600