Skip to content

Instantly share code, notes, and snippets.

View duhow's full-sized avatar
🏠
Working from home

David Girón duhow

🏠
Working from home
View GitHub Profile
apiVersion: apps/v1
kind: DaemonSet
metadata:
labels:
component: resolv
tier: node
name: resolv
namespace: default
spec:
selector:
@d3v1an7
d3v1an7 / ddr-extreme.md
Last active May 2, 2025 19:01
Setting up Stepmania to look/feel like DDR Extreme

Setting up Stepmania to look/feel like DDR Extreme

The first time I played DDR was on a 6th Mix DDR MAX cabinet, but I spent most of my time with this massive custom LED wall screen that housed DDR Extreme. So when I got a foam pad for home, I wanted to replicate what felt most comfortable.

I'm sure it's not pixel perfect, and there are probably some arcade features/behaviours I'm missing, but this setup is close enough for me!

  1. Download Beware's Stepmania Extreme build (direct)

If you don't mind using an older version of Stepmania, you're probably good to go and can ignore the rest!

@triangletodd
triangletodd / README.md
Last active July 9, 2025 10:16
k3s in LXC on Proxmox

On the host

Ensure these modules are loaded

cat /proc/sys/net/bridge/bridge-nf-call-iptables

Disable swap

sysctl vm.swappiness=0
swapoff -a
@likeablob
likeablob / running-debian-on-goke-gk710x-devices-chroot.md
Last active March 12, 2022 22:13
Running Debian on Goke GK710x devices (chroot)

WIP

Prerequisites

  • A Goke GK710x-based device(uname -r === 3.4.43-gk)
  • Ubuntu 18.04 as a build environment

Set up the toolchain

  • Install crosstool-ng
$ wget http://crosstool-ng.org/download/crosstool-ng/crosstool-ng-1.24.0.tar.xz
$ tar xvf http://crosstool-ng.org/download/crosstool-ng/crosstool-ng-1.24.0.tar.xz
@mcfrojd
mcfrojd / Shield_Intents.MD
Last active June 8, 2025 15:26
Working INTENTS to use with Community Hass.io Add-ons: Android Debug Bridge for your Nvidia Shield TV

Latest Update 2021-03-06 : New image showing the new "Services" in Home Assistant and got some tips from the comments below.

Credits and thanks: Home Assistant Forum users & Github users: @ocso, @wiphye, @teachingbirds, @tboyce1, @simbesh, @JeffLIrion @ff12 @rebmemer @siaox @DiederikvandenB @Thebuz @clapbr @Finsterclown


Start apps on your android device (in the examples below, my Nvidia Shield TV) from Home Assistant

alt text

Starts Youtube App

entity_id: media_player.shield
command: >-
@XMB5
XMB5 / irconvert.js
Last active March 5, 2024 16:51
Convert from infrared pronto codes to raw codes
//usage: node irconvert.js <pronto hex>
//steps from https://stackoverflow.com/a/27323452
numbers=process.argv[2].split(' ').map(x=>parseInt(x,16))
fullSequenceConverted=[]
carrierFrequency = 1000000/(numbers[1] * .241246)
codeLength = numbers[2]
repeatCodeLength = numbers[3]
for(i=4;i<numbers.length;i++) {
@David-Lor
David-Lor / disablewupdateWatchdog.bat
Created March 7, 2018 17:50
Disable Windows Update "Watchdog"
@echo off
:loop
sc stop "wuauserv"
sc config "wuauserv" start= disabled
timeout 15
goto loop
@Luzifer
Luzifer / README.md
Last active March 31, 2025 18:54
Running docker-compose as a systemd service

Running docker-compose as a systemd service

Files

File Purpose
/etc/compose/docker-compose.yml Compose file describing what to deploy
/etc/systemd/system/docker-compose-reload.service Executing unit to trigger reload on docker-compose.service
/etc/systemd/system/docker-compose-reload.timer Timer unit to plan the reloads
/etc/systemd/system/docker-compose.service Service unit to start and manage docker compose
@donmccurdy
donmccurdy / wildcard-to-regexp.js
Last active February 21, 2024 06:49
Wildcard and glob matching in JavaScript.
/**
* Creates a RegExp from the given string, converting asterisks to .* expressions,
* and escaping all other characters.
*/
function wildcardToRegExp (s) {
return new RegExp('^' + s.split(/\*+/).map(regExpEscape).join('.*') + '$');
}
/**
* RegExp-escapes all characters in the given string.
@kylemanna
kylemanna / README-python-service-on-systemd-activated-socket.md
Last active June 1, 2025 10:20 — forked from drmalex07/README-python-service-on-systemd-activated-socket.md
An example network service with systemd-activated socket in Python. #systemd #python #socket #socket-activation

README

The example below creates a TCP server listening on a stream (i.e. SOCK_STREAM) socket. A similar approach can be followed to create a UDP server on a datagram (i.e. SOCK_DGRAM) socket. See man systemd.socket for details.

An example server

Create an simple echo server at ~/tmp/foo/serve.py.