Skip to content

Instantly share code, notes, and snippets.

@gluneau
gluneau / bpmdetect.py
Last active October 5, 2022 10:53 — forked from virtuald/bpmdetect.py
GStreamer BPM Detector frontend
#!/usr/bin/env python
'''
Simple program that uses the 'bpmdetect' GStreamer plugin to detect
the BPM of a song, and outputs that to console.
Requires GStreamer 1.x, PyGObject 1.x, and gst-plugins-bad
Copyright (C) 2015 Dustin Spicuzza
This program is free software; you can redistribute it and/or modify
@snikch
snikch / .env.example
Last active May 20, 2021 12:46
Chia Network Docker Compose
PLOTS_TMP_DIR=/mnt/scratch/plots
PLOTS_FINAL_DIR=/mnt/storage/plots
@xirixiz
xirixiz / pihole-macvlan-synology-docker.txt
Last active June 10, 2024 08:44
Add a PiHole instance on a macvlan enabled Docker network (Synology eth0 example)
#!/bin/bash
# NAS IP: 192.168.1.10 in this example
# DHCP scope reservation for macvlan: 192.168.1.210/28 (Details below)
## Network: 192.168.1.210/28
## HostMin: 192.168.1.211
## HostMax: 192.168.1.224
## Hosts/Net: 14
# Create a Synology macvlan0 bridge network attached to the physical eth0, and add the ip range scope (sudo)
@mhamrah
mhamrah / DellXPS13_9360
Created September 22, 2019 02:20
Minimal instructions for installing arch linux on a DELL XPS 13 9360 - UEFI, Toshiba 512GB NVMe SSD, with full system encryption using dm-crypt and luks
# Reference:
# https://wiki.archlinux.org/index.php/installation_guide
# https://github.com/variadico/xpslinux
# https://gist.github.com/njam/85ab2771b40ccc7ddcef878eb82a0fe9
# https://gist.github.com/brammitch/281e9a2f3aca57ae4a333fc63732f602
# https://wiki.archlinux.org/index.php/Dell_XPS_13_(9360)
# http://www.bhartiya.io/always-updated-arch-linux-tutorial/30411
# Set a bigger font size on the arch usb bootup shell
# Setfont sun12x22
@huntrar
huntrar / full-disk-encryption-arch-uefi.md
Last active June 28, 2024 20:21
Arch Linux Full-Disk Encryption Installation Guide [Encrypted Boot, UEFI, NVMe, Evil Maid]

Arch Linux Full-Disk Encryption Installation Guide

This guide provides instructions for an Arch Linux installation featuring full-disk encryption via LVM on LUKS and an encrypted boot partition (GRUB) for UEFI systems.

Following the main installation are further instructions to harden against Evil Maid attacks via UEFI Secure Boot custom key enrollment and self-signed kernel and bootloader.

Preface

You will find most of this information pulled from the Arch Wiki and other resources linked thereof.

Note: The system was installed on an NVMe SSD, substitute /dev/nvme0nX with /dev/sdX or your device as needed.

@appastair
appastair / multi-passcode.user.js
Last active August 8, 2018 13:34 — forked from rongself/multi-passcode.user.js
iitc script for multi passcode apply (点击下面raw按钮安装)
// ==UserScript==
// @id iitc-plugin-multi-passcode@rongself
// @name IITC plugin: Multi Passcode Redeem
// @category Controls
// @version 0.1.0.20180529.1331.
// @namespace https://gist.github.com/rongself/288ad6c887ffb184b469ae0295acc642
// @updateURL https://gist.github.com/appastair/bd32ac0bbfed9a476edd0d2c2148d25e
// @downloadURL https://gist.github.com/appastair/bd32ac0bbfed9a476edd0d2c2148d25e
// @description [rongself-2016-07-17-154202] script for multi passcode apply [appastair-2018-05-28.1331] fixed and added support for newline
// @include https://*.ingress.com/intel*
@keks55
keks55 / tint2rc
Created September 17, 2017 08:49
Tint2 - tint2rc
# Tint2 config file
# Generated by tintwizard (http://code.google.com/p/tintwizard/)
# For information on manually configuring tint2 see http://code.google.com/p/tint2/wiki/Configure
# Background definitions
# ID 1
rounded = 7
border_width = 2
background_color = #000000 60
border_color = #FFFFFF 16
@mbreese
mbreese / build-tmux.sh
Last active January 23, 2024 10:11
HOWTO build a statically linked tmux in one script (downloads and builds dependencies from source)
#!/bin/bash
TARGETDIR=$1
if [ "$TARGETDIR" = "" ]; then
TARGETDIR=$(python -c 'import os; print os.path.realpath("local")')
fi
mkdir -p $TARGETDIR
libevent() {
curl -LO https://github.com/libevent/libevent/releases/download/release-2.0.22-stable/libevent-2.0.22-stable.tar.gz
tar -zxvf libevent-2.0.22-stable.tar.gz
@rawsh
rawsh / tint2rc
Last active May 19, 2018 01:46
tint2rc
#---- Generated by tint2conf 9757 ----
# See https://gitlab.com/o9000/tint2/wikis/Configure for
# full documentation of the configuration options.
#-------------------------------------
# Backgrounds
# Background 1: Panel, Tooltip
rounded = 0
border_width = 0
border_sides = TBLR
background_color = #16161d 63
@gotofritz
gotofritz / gitlab-markdown-toc.js
Last active May 7, 2019 12:50
creates a gitlab markdown table of contents for a README.md page
// quick and dirty snippet to creates a gitlab markdown table of contents for a README.md page
// preview gitlab page and paste in browser console
var str = "";
$('.file-content')
.find('h1, h2, h3, h4, h5, h6, h7')
.each((i, node) => {
// node.tagName is H1 H2...
let indent = Number(node.tagName[1]) - 1;
// markdown mested lists are
// - xxx