Skip to content

Instantly share code, notes, and snippets.

View shikaan's full-sized avatar
🐽

Manuel Spagnolo shikaan

🐽
View GitHub Profile
@shikaan
shikaan / .clangd
Created April 1, 2025 16:09
C project boilerplate
CompileFlags:
CompilationDatabase: compile_commands.json
Add: [-x, c, -std=c23]
Diagnostics:
ClangTidy:
Add: [modernize-*, bugprone-*, llvm-*, performance-*, readability-*]
CheckOptions:
readability-identifier-naming.ConstantCase: UPPER_CASE
readability-identifier-naming.ConstexprVariableCase: UPPER_CASE
readability-identifier-naming.EnumConstantCase: UPPER_CASE
@shikaan
shikaan / README.md
Last active February 15, 2025 16:46
ZED configuration

The only way I could find to unclutter the UI. There is still a bottom dead bar, this will make it better.

@shikaan
shikaan / README.md
Last active February 5, 2025 07:30
helix configuration for C debugging on Apple Silicon
@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" -)