Skip to content

Instantly share code, notes, and snippets.

View pitpit's full-sized avatar

Damien Pitard pitpit

View GitHub Profile
@averad
averad / Stable_Diffusion.md
Last active January 26, 2025 16:37 — forked from harishanand95/Stable_Diffusion.md
Stable Diffusion on AMD GPUs on Windows using DirectML
@ofstudio
ofstudio / usb-rtlsdr-docker-rootless.sh
Created October 17, 2021 20:29
How to mount USB device to docker container in rootless mode
# How to mount RTL-SDR (Flightaware) USB dongle
# to docker container in rootless mode
#
# For example running: `docker run --device=/dev/bus/usb:/dev/bus/usb ...`
#
# or via docker compose:
#
# version: '3'
# services:
# dump1090:
@jpcaparas
jpcaparas / References
Last active January 16, 2025 14:09
Limit docker CPU and memory resource usage
Inspired by: https://stackoverflow.com/questions/46408673/docker-17-06-ce-default-container-memory-limit-on-shared-host-resources/46557336#46557336
@tinogomes
tinogomes / DNS_TO_LOCALHOST.markdown
Last active February 26, 2025 17:08
Public DNS Pointing to localhost (127.0.0.1)

Available Public Wildcard DNS Domains pointing to localhost (127.0.0.1)

The best way to safely and securely use local domains pointing to 127.0.0.1 is to edit your local settings (/etc/hosts) and add your own settings. Keep in mind if you want to use subdomains, you need to enter all variations.

Example:

# Adding bottom of your current file /etc/hosts
################# MY LOCAL DOMAINS
127.0.0.1 local.com admin.local.com
127.0.0.1 domain1.com
@shiritrong
shiritrong / gist:d85bb1e16c66d1a09896727780b4fc7c
Last active February 27, 2025 02:22
Windows 7 All Online/Offline [Retail-MAK] Activation Keys
Windows 7 All Online/Offline [Retail-MAK] Activation Keys
=================================================================================
. Run "Command Prompt" as Administrator
. slmgr.vbs -ipk Product Key
. slui4
=================================================================================
Windows 7 Ultimate Retail Phone Activation Keys
RHTBY-VWY6D-QJRJ9-JGQ3X-Q2289
V77DJ-CT8WB-Y3GXT-X3FBP-6F987
JC7BV-94FD2-D86PH-XRMHR-BXKDG
@Ryex
Ryex / killseedboxrsync
Created May 22, 2016 21:45
seedbox rsync automation: down load all files from a seed box or other remote server with rsync
#!/bin/bash
pid_file="/path/to/destination/rsync.pid"
rsync_pid=$(cat $pid_file)
if [[ -z "${rsync_pid// }" ]] ; then
echo "[$(date)] no PID for seedbox rsync, exiting"
exit
else
@curtisz
curtisz / parseurl.js
Created November 9, 2015 23:07
RFC 3986 URL Parsing Regular Expression (JavaScript)
/* ***********************************************************************************
Hero authors of RFC 3986 (http://www.ietf.org/rfc/rfc3986.txt) gave us this regex
for parsing (well-formed) URLs into their constituent pieces:
^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?
Which for the following URL:
http://www.ics.uci.edu/pub/ietf/uri/#Related
@pitpit
pitpit / mailcatcher-install.md
Last active November 21, 2022 04:45
Install Mailcatcher on OSX - works well with macOS Sierra High 10.12.X

05/25/2018: tested with macOS Sierra High 10.12.6

08/04/2020: added @mayesa's suggestion to fix an exception with EventMachine 08/04/2020: tested with macOS Catalina 10.15.5

Install MailCatcher:

brew install ruby
sudo gem install mailcatcher
@denji
denji / http-benchmark.md
Last active February 20, 2025 12:17
HTTP(S) Benchmark Tools / Toolkit for testing/debugging HTTP(S) and restAPI (RESTful)