Skip to content

Instantly share code, notes, and snippets.

View dudeitssm's full-sized avatar
🐧
Dood!

dudeitssm

🐧
Dood!
  • NY, USA
View GitHub Profile
@dudeitssm
dudeitssm / insignia_ns_rc03a_13.md
Last active March 4, 2021 02:50
Intel NUC Linux keymap for the Insignia NS-RC03A-13 infrared (IR) remote controller

I use this remote controller with an Intel NUC with onboard CIR sensor, running Fedora.
The steps should be more-or-less the same for any modern distribution.

Step 1. Install the v4l-utils package, which contains the program ir-keytable.
Do not use lirc. The latest kernels come with most of lirc functionality built in.

sudo dnf install v4l-utils
sudo apt install v4l-utils
sudo pacman -S v4l-utils

@dudeitssm
dudeitssm / plate_shaker.gcode
Last active June 18, 2021 22:15
Prusa I3 plate shaker (for PCB etching, for example)
; plate shaker gcode for reprap printers (runs for 1 hour; you can speed up or slow down your printer if you want)
; g-code reference: https://reprap.org/wiki/G-code
; you don't want to splash chemicals on your printbed or destroy your printer/motors
; set maximum acceleration to something reasonable (mm/s^2)
M201 X1000 Y1000 Z100 E2000
; home X and Y axes
G28 X Y
@dudeitssm
dudeitssm / autoexec.py
Last active January 29, 2022 02:41 — forked from schlomo/autoexec.py
XBMC automatically play all videos in a permanent loop. Ideal for video presentations, digital signage or party mode.
# See also http://wiki.xbmc.org/index.php?title=Autoexec.py
# Put this into the userdata folder, see http://wiki.xbmc.org/index.php?title=Userdata for details where this is for each platform
# on linux,the userdata folder is ~/.kodi/userdata/
import xbmc
xbmc.executebuiltin('xbmc.PlayMedia("/storage/videos/","isdir")')
xbmc.executebuiltin('xbmc.PlayerControl(repeatall)')
xbmc.executebuiltin("Action(Fullscreen)")
@dudeitssm
dudeitssm / configure-iis.ps1
Created April 8, 2022 19:02 — forked from kking124/configure-iis.ps1
Configuration Script to Secure Public IIS Server
# configure-iis.ps1
# Version: 1.2
# Author: kking124 (https://github.com/kking124)
#
# Copyright 2016, 2017
#
# License: MIT
# .SYNOPSIS
# Tries to configure IIS as a minimal, secure installation on Windows Server 2008 and later
#
@dudeitssm
dudeitssm / Digispark.md
Created April 11, 2022 03:44 — forked from Ircama/Digispark.md
Configuring the Digispark ATtiny85 board for Arduino IDE and upgrading the bootloader

Configuring the Digispark ATTINY85 board for Arduino IDE and upgrading the bootloader

Warning: this document has to be updated by pointing to https://github.com/SpenceKonde/ATTinyCore

This note describes the configuration of an ATtiny85 based microcontroller development board named Digispark and similar to the Arduino line. It is available in many online marketplaces for roughly 1 dollar (e.g., Ebay, Amazon, AliExpress) and is shipped fully assembled, including a V-USB interface (a software-only implementation of a low-speed USB device for Atmel's AVR microcontrollers). Coding is similar to Arduino: it uses the familiar Arduino IDE and is already provided with a ready-to-use bootloader (

@dudeitssm
dudeitssm / dumb-ap-wired-link.sh
Created April 24, 2022 02:43 — forked from braian87b/dumb-ap-wired-link.sh
How to setup a Dumb AP, Wired backbone for OpenWRT / LEDE
@dudeitssm
dudeitssm / libvirt_evdev_ps_2_device_pass_through_with_selinux_enabled.md
Created June 13, 2022 23:33
LIbvirt (virt-manager) Evdev PS/2 Keyboard Passthrough

Libvirt (virt-manager) Evdev PS/2 Device Pass Through With SELINUX Enabled

Problem

I saw the following errors when passing a PS/2 keyboard through qemu arguments inside libvirt:

Error starting domain: internal error: qemu unexpectedly closed the monitor: 2022-06-13T00:07:02.581352Z qemu-kvm: -object input-linux,id=kbd1,evdev=/dev/input/by-path/platform-i8042-serio-0-event-kbd,grab_all=on,repeat=on: Could not open '/dev/input/by-path/platform-i8042-serio-0-event-kbd': No such file or directory

Quick Guide To Flashing The UMX U693CL Android Smartphone With A Custom ROM And Recovery


Install The edl Tool

https://github.com/bkerler/edl

This tool can be used for flashing a variety of Qualcomm SoC based devices, including the UMX U693CL.

I recommend using the repo maintainer's live Ubuntu ISO for convenience.

@dudeitssm
dudeitssm / alpine-zfs-grub-uefi.md
Created August 12, 2022 04:57 — forked from kongkrit/alpine-zfs-grub-uefi.md
Install Alpine Linux on ZFS Root - grub bootloader on UEFI

Alpine Linux Installation on ZFS Root with grub on UEFI

  • References [ ref1 | ref2 | ref3 ]
  • Boot from alpine-extended [ download ]
  • login as root without any password
  • setup network interfaces and start networking:
    setup-interfaces
    /etc/init.d/networking start
    
  • add, config, and enable openssh:
@dudeitssm
dudeitssm / docker.md
Created September 21, 2022 04:00 — forked from FreddieOliveira/docker.md
This tutorial shows how to run docker natively on Android, without VMs and chroot.

Docker on Android 🐋📱

Edit 🎉

All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker. This will install the whole docker suite, left only Tini to be compiled manually.


Summary