Skip to content

Instantly share code, notes, and snippets.

View shikaan's full-sized avatar
🐽

Manuel Spagnolo shikaan

🐽
View GitHub Profile
@shikaan
shikaan / README.md
Created December 20, 2023 09:40
Debloat Kindle Fire

Prerequisites

  1. Rooted Kindle
  2. ADB/USB debug enabled on your kindle
  3. ADB installed on your compuer

Follow the procedure here to root your Kindle. As a side effect you should also have ADB properly setup.

Just in case, here's an archived version of the same guide.

@shikaan
shikaan / bash-gpt.bash
Last active February 26, 2024 05:43
bash GPT
#!/bin/bash
OPENAI_API_KEY="YOUR_API_KEY"
CONVERSATION="/tmp/$(cat /proc/sys/kernel/random/uuid)"
query_open_ai() {
curl -s https://api.openai.com/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $OPENAI_API_KEY" \
-d "{
@shikaan
shikaan / .config_foot_foot.ini
Last active November 6, 2022 19:45
sway + foot configurtaion
term=screen-256color
font=Fira Code,Noto Color Emoji:size=8
[cursor]
style=underline
# Solarized light
[cursor]
color=fdf6e3 586e75
@shikaan
shikaan / .env
Last active May 4, 2021 13:21
Contentful UI Extension -> App
CONTENTFUL_MANAGEMENT_TOKEN=
CONTENTFUL_EXTENSION_ID=
CONTENTFUL_ORGANIZATION_ID=
CONTENTFUL_SPACE_ID=
CONTENTFUL_ENVIRONMENT_ID=
@shikaan
shikaan / midi-to-qsynth
Created June 9, 2020 19:47
Attaches a midi device to Qsynth through ALSA
#!/usr/bin/env bash
# CONSTANTS
readonly MIDI_DEVICE_NAME=GarageKey
# VARIABLES
midi_device_port=
qsynth_port=
# FUNCTIONS
@shikaan
shikaan / bootstraper.sh
Created May 31, 2020 19:25
Bootstrap a simple and opinionated frontend application
#!/bin/bash
# CONFIGURATION
readonly SCRIPT="$(basename $0)"
readonly APP_NAME=$1
readonly TIMEOUT=.5
# FILES
readonly GITIGNORE="""
node_modules
@shikaan
shikaan / loopback-record.sh
Created May 8, 2020 23:30
Use ALSA to perform loopback record
#!/usr/bin/env bash
DATE_HASH=$(date '+%Y%m%d%H%M%S')
DEFAULT_LOCATION="$HOME/recording-$DATE_HASH.wav"
printf "\e[1mCreating loopback devices...\e[0m\n\n"
sudo modprobe snd-aloop
RAW_LOOPBACK_DEVICES=$(aplay -l | grep Loopback | sed -E "s/card\s([0-9]+).*device\s([0-9]*).*/hw:\1,\2/g" -)
@shikaan
shikaan / random-mute-mac.sh
Last active October 8, 2020 19:27
Randomly remove volume to practice timing
#! /usr/bin/env bash
SLEEP="$1"
while [[ 1 -eq 1 ]]; do
if [[ $(($RANDOM % 2)) -eq 0 ]]; then
echo "Mute"
sudo osascript -e "set volume output muted true"
else
echo "Unmute"
@shikaan
shikaan / .tmux.conf
Last active March 19, 2023 21:23
tmux + Vim Configuration
set -g mouse on
set -g status-style "bg=default"
set -g window-status-current-style "bg=default,reverse"
set -g window-status-separator '|'
set -g window-status-format " #W#{?window_flags,#F, } (M-#I) "
set -g window-status-current-format " #W#{?window_flags,#F, } (M-#I) "
set -g base-index 1
set-window-option -g pane-base-index 1
@shikaan
shikaan / changelog.sh
Last active October 14, 2019 14:31
Generate Changelogs with Conventional Commits
#!/usr/bin/env bash
tag=
branch=
tag_value=
branch_value=
has_options=
print_usage() {
name="$(basename $0)"