Skip to content

Instantly share code, notes, and snippets.

View Thrilleratplay's full-sized avatar

Tom Hiller Thrilleratplay

  • Albany , NY USA
View GitHub Profile
@Thrilleratplay
Thrilleratplay / earlygrubcryptoimg.sh
Created November 27, 2021 16:23 — forked from ibressler/earlygrubcryptoimg.sh
Creates an early grub core image for ESP to cryptmount a LUKS+LVM partition where the grub files /boot/ and the kernel is stored
#!/bin/dash
# Creates a standalone core image with grub to be started by EFI.
# It complements the excellent cryptroot tutorial at
# https://community.linuxmint.com/tutorial/view/2061
# for grub on BTRFS inside LVM inside LUKS.
#
# It initiates decryption of the root device which contains
# LVM with BTRFS on the root volume where grub is installed.
# Therefore, it allows to load grub from an LUKS encrypted BTRFS
# root file system.
@Thrilleratplay
Thrilleratplay / dump.txt
Created July 23, 2021 03:02
H5178 HCI dump
HCI sniffer - Bluetooth packet analyzer ver 5.60
device: hci0 snap_len: 1500 filter: 0x2
> 04 3E 2B 02 01 00 00 45 C5 DF 38 C1 A4 1F 0A 09 42 35 31 37
38 43 35 34 35 03 03 88 EC 02 01 05 0C FF 01 00 01 01 00 03
A0 0F 64 00 00 BB
> 04 3E 27 02 01 04 00 45 C5 DF 38 C1 A4 1B 1A FF 4C 00 02 15
49 4E 54 45 4C 4C 49 5F 52 4F 43 4B 53 5F 48 57 50 75 F2 FF
C2 BB
> 04 3E 2B 02 01 00 00 45 C5 DF 38 C1 A4 1F 0A 09 42 35 31 37
38 43 35 34 35 03 03 88 EC 02 01 05 0C FF 01 00 01 01 01 02
@Thrilleratplay
Thrilleratplay / redshift.conf
Created January 15, 2021 00:49
redshift config
; Global settings for redshift
[redshift]
; Set the day and night screen temperatures
temp-day=5700
temp-night=3500
; Enable/Disable a smooth transition between day and night
; 0 will cause a direct change from day to night screen temperature.
; 1 will gradually increase or decrease the screen temperature
transition=1
@Thrilleratplay
Thrilleratplay / notify-send-all-users.sh
Created June 14, 2020 17:09
Send notification to all users with x11 sessions. Useful for sending notifications from scripts that are run as root.
#!/usr/bin/env bash
# Send notification to all users with x11 sessions. Useful for sending notifications
# from scripts that are run as root.
#
#
# EXAMPLES:
#
# $> notify-send-all-users.sh Hello!
#
@Thrilleratplay
Thrilleratplay / thinkfan.conf
Created October 13, 2019 14:08
thinkfan.conf
tp_fan /proc/acpi/ibm/fan
hwmon /sys/devices/platform/coretemp.0/hwmon/hwmon1/temp1_input
hwmon /sys/devices/platform/coretemp.0/hwmon/hwmon1/temp2_input
hwmon /sys/devices/platform/coretemp.0/hwmon/hwmon1/temp3_input
(0, 0, 45)
(1, 40, 60)
(2, 55, 64)
(3, 57, 67)
(4, 56, 74)
@Thrilleratplay
Thrilleratplay / soic8_pinout.svg
Created October 10, 2019 02:12
SOIC8 pinout svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Thrilleratplay
Thrilleratplay / Dockerfile
Created May 28, 2018 02:05
Coreboot builder dockerfiler (WIP)
FROM bitnami/minideb:stretch
# ccache specifics
ENV CCACHE_SIZE=100M \
CCACHE_DIR=/build/ccache \
USE_CCACHE=1 \
CCACHE_COMPRESS=1
RUN apt-get -qq -y update && \
@Thrilleratplay
Thrilleratplay / skulls.svg
Last active May 9, 2018 02:46
Skulls SVG with Inkscape layers
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Thrilleratplay
Thrilleratplay / .config
Created May 5, 2018 18:32
x230 coreboot config
#
# Automatically generated file; DO NOT EDIT.
# coreboot configuration
#
#
# General setup
#
CONFIG_COREBOOT_BUILD=y
CONFIG_LOCALVERSION=""
@Thrilleratplay
Thrilleratplay / backup_script.sh
Created April 10, 2018 23:01
Duplicity backup script
#!/bin/bash
EXCLUDED_PATHS=(
/tmp
/proc
/sys
/run
/var/log/journal/
)
####################################################################################