Skip to content

Instantly share code, notes, and snippets.

View nucleare's full-sized avatar
💭
I pull from you, don't pull from me, push your ways on me.

nucleare nucleare

💭
I pull from you, don't pull from me, push your ways on me.
  • Defordo Innovations
  • Irvine, CA
View GitHub Profile
@pschichtel
pschichtel / control_screen.sh
Last active January 1, 2021 19:33
Small script to control a screen using CEC
#!/usr/bin/env bash
device="${CEC_DEVICE:-0.0.0.0}"
command="${1?no command given}"
case "$command" in
on)
cec_command="on $device"
;;
@altmind
altmind / oo-shutup10-privacy.reg
Created March 8, 2020 10:17
oo-shutup10-privacy.reg
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Storage\microsoft.microsoftedge_8wekyb3d8bbwe\MicrosoftEdge\FlipAhead]
"FPEnabled"=dword:00000000
[HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Storage\microsoft.microsoftedge_8wekyb3d8bbwe\MicrosoftEdge\Main]
"ShowSearchSuggestionsGlobal"=dword:00000000
"DoNotTrack"=dword:00000001
[HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Storage\microsoft.microsoftedge_8wekyb3d8bbwe\MicrosoftEdge\ServiceUI]
import binascii
import pefile
import subprocess
import sys
import os
ror = lambda val, r_bits, max_bits: \
((val & (2**max_bits-1)) >> r_bits%max_bits) | \
(val << (max_bits-(r_bits%max_bits)) & (2**max_bits-1))
@pschichtel
pschichtel / play_video.sh
Created May 18, 2019 14:26
Simple script to play the video from a capture card
#!/bin/bash
device=/dev/video2
amixer -c stk1160mixer sset Line unmute cap
vlc -vvv --color --input-slave=alsa://pulse --live-caching=300 \
--v4l2-standard=PAL --deinterlace-mode=yadif \
--video-filter=deinterlace "v4l://${device}"
@aziraphale
aziraphale / dmesg.log
Created February 24, 2019 00:19
AGPTEK USB 3.0 HDMI Capture Box (VG0061) hardware information
New USB device found, idVendor=1bcf, idProduct=2c99
New USB device strings: Mfr=1, Product=2, SerialNumber=0
Product: FHD Capture
Manufacturer: VXIS Inc
@tangrs
tangrs / bin2elf.sh
Last active October 31, 2024 04:51
Convert a memory dump/raw binary image into an ELF file
#!/bin/sh
# Convert a raw binary image into an ELF file suitable for loading into a disassembler
cat > raw$$.ld <<EOF
SECTIONS
{
EOF
echo " . = $3;" >> raw$$.ld