Skip to content

Instantly share code, notes, and snippets.

View betapictoris's full-sized avatar

Daniel Hall betapictoris

View GitHub Profile
@supechicken
supechicken / disable_verify.sh
Last active April 19, 2024 22:42
Script to disable rootFS verification on Chrome OS Flex/CloudReady 96+
#!/bin/bash -eu
# disable_verify.sh: Script to disable rootFS verification on Chrome OS Flex/CloudReady 96+
#
# Usage:
# curl -Ls 'https://gist.github.com/supechicken/ccf8bfad3be30dbcd144b46bc4d7083e/raw' | sudo bash -eu
[[ "${EUID}" != 0 ]] && echo -e "\e[1;31m"'Please run this script as root.'"\e[0m" && exit 1
# get disk device name which has Chrome OS installed to
cros_disk="$([[ "$(mount | grep '/mnt/stateful_partition')" =~ (sd[a-z]|nvme[0-9]n[0-9]p|mmcblk[0-9]p) ]] && \
@mokshchaudhary
mokshchaudhary / config.conf
Created February 7, 2022 13:15
Neofetch Configuration
# See this wiki page for more info:
# https://github.com/dylanaraps/neofetch/wiki/Customizing-Info
print_info() {
#info title
#info underline
info "OS\t\t" distro
info "Host\t" model
#info "Kernel" kernel
info "Uptime\t" uptime
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@yonderbread
yonderbread / xbox.py
Created December 14, 2020 20:59
New Minecraft authentication implemented in Python
# Microsoft Authentication Scheme
# https://wiki.vg/Microsoft_Authentication_Scheme
#
# DEV NOTE: Might switch to using xbox-webapi-python
# instead later on.
# https://github.com/OpenXbox/xbox-webapi-python
import requests
MS_OAUTH2_URL = "https://login.live.com/oauth20_authorize.srf"
@thecarlhall
thecarlhall / 0-scrape_api.sh
Created June 8, 2020 01:32
Scripts to check the API implementation of Gonic
#!/usr/bin/env bash
curl http://www.subsonic.org/pages/api.jsp | \
grep -A 4 '<h3' | \
grep -e '<h3' -e Since | \
tail -n +6 | tr -d "\r\n" | \
sed -e $'s/<h3>/\\\n/g' | \
sed 's/<[^>]*>//g' | \
awk '{print $3, $1}' | \
sort -V > api-by-version.csv
@ADeltaX
ADeltaX / rick.1.gif
Last active January 31, 2025 02:13
You.
rick.1.gif
@ADeltaX
ADeltaX / rick.0.gif
Last active January 31, 2025 02:13
I know
rick.0.gif
@auyongcheemeng
auyongcheemeng / ffmp-flac-alac.bat
Last active March 24, 2025 16:59
ffmpeg flac to alac conversion batch script (windows)
:::: ffmpeg script for converting FLAC to ALAC
:: ffmpeg windows binary is required (https://ffmpeg.org)
:: Script creates the folders ['flac' and 'alac'] on first run.
:: Copy the associated files to the appropriate folder [ie. '.flac' files to 'flac' folder]
:: and run the
IF NOT EXIST alac\NUL mkdir alac
@qoomon
qoomon / conventional-commits-cheatsheet.md
Last active December 9, 2025 13:19
Conventional Commits Cheatsheet
@boreycutts
boreycutts / i3-gaps_installation_guide.md
Last active November 11, 2024 11:55
A simple installation guide for i3-gaps

Installing i3-gaps

Dependencies

i3-gaps has some packages that are required for it to work so install these things:

sudo apt install libxcb1-dev libxcb-keysyms1-dev libpango1.0-dev libxcb-util0-dev libxcb-icccm4-dev libyajl-dev libstartup-notification0-dev libxcb-randr0-dev libev-dev libxcb-cursor-dev libxcb-xinerama0-dev libxcb-xkb-dev libxkbcommon-dev libxkbcommon-x11-dev autoconf xutils-dev libtool automake

You also need to install libxcb-xrm-dev, but I got Unable to locate package libxcb-xrm-dev when trying to install from the apt repositories on Ubuntu 16.04. If this happens to you, just install it from source using these commands:

mkdir tmp