Skip to content

Instantly share code, notes, and snippets.

View itsHanibee's full-sized avatar
:shipit:
not developing

hani itsHanibee

:shipit:
not developing
View GitHub Profile
@itsHanibee
itsHanibee / runic
Last active February 26, 2025 05:25
a keyboard layout for xkb to type out runes. (made for personal use so if you'd like to extend this then please fork and credit the original)
default partial alphanumeric_keys
xkb_symbols "basic" {
include "us(basic)"
include "level3(ralt_switch)"
// Layer Shifting (Taking A (AC01) as an example)
// No Modifier = ᚨ
// Shift + A = ᚩ
// RAlt + A = ᚬ
@itsHanibee
itsHanibee / floorp
Created June 28, 2024 09:05
profile-sync-daemon support for Floorp Browser
if [[ -d "$HOME"/.floorp ]]; then
index=0
PSNAME="$browser"
while read -r profileItem; do
if [[ $(echo "$profileItem" | cut -c1) = "/" ]]; then
# path is not relative
DIRArr[$index]="$profileItem"
else
# we need to append the default path to give a
# fully qualified path
@itsHanibee
itsHanibee / erpnext.sh
Created June 5, 2024 07:50 — forked from mlow/erpnext.sh
Simple ERPNext setup script
#!/bin/bash
# This script helps with getting Frappe/ERPNext running quickly using
# the upstream Compose specifications. Not intended for production.
#
# Usage:
#
# $ git clone https://github.com/frappe/frappe_docker
# $ cd frappe_docker
# $ curl -Lo erpnext.sh <URL to this raw gist>
#
#!/bin/bash #
# This script does exactly 3 things for 1 good reason:
#
# What this does:
#
# 1. Detects either curl or wget and wraps them in helpers
# 2. Exports the helpers for the real installer
# 3. Downloads and runs the real installer
#
# Why
@itsHanibee
itsHanibee / patch-for-old-glibc.sh
Last active May 25, 2023 08:39 — forked from beakthoven/patch-for-old-glibc.sh
A script for patching toolchains to resolve glibc requirement issues on distros with old glibc packages. The script must be placed in the toolchain directory and then executed.
#!/usr/bin/env bash
WORK_DIR=$(pwd)
cd "$HOME" || exit
echo "Downloading patchelf binary from ArchLinux repos"
mkdir -p patchelf-temp
#curl -L https://github.com/Jebaitedneko/docker/raw/ubuntu/patchelf
curl -L https://archlinux.org/packages/extra/x86_64/patchelf/download | bsdtar -C patchelf-temp -xf -
mv "$HOME"/patchelf-temp/usr/bin/patchelf "$HOME"/
rm -rf "$HOME"/patchelf-temp