Skip to content

Instantly share code, notes, and snippets.

View Calinou's full-sized avatar
🦄
______ is best pony.​

Hugo Locurcio Calinou

🦄
______ is best pony.​
View GitHub Profile
@Calinou
Calinou / CHANGELOG.md
Last active May 25, 2023 19:07
Godot 4.0 preliminary changelog (does not list changes that were also backported to Godot 3.x)

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog.

[4.0] - TBD

Added

@Calinou
Calinou / modern-font-stack.css
Last active October 2, 2018 20:07
Userstyle to enforce a modern font stack on all websites
/* ==UserStyle==
@name Modern Font Stack
@namespace github.com/openstyles/stylus
@version 1.0.0
@license MIT
@description Replaces Segoe UI, Arial and Helvetica Neue with IBM Plex Sans on all websites
@author Calinou
==/UserStyle== */
@-moz-document regexp(".*") {
@Calinou
Calinou / kanboard-dark.css
Last active November 5, 2021 12:46
Dark theme for Kanboard (WIP)
/* ==UserStyle==
@name Kanboard Dark
@namespace github.com/openstyles/stylus
@version 0.0.1
@license MIT
@description Dark theme for Kanboard
@author Calinou
==/UserStyle== */
:root {
@Calinou
Calinou / update-godot-3.x.sh
Last active November 11, 2023 18:52
Update, build and install Godot from source on Linux
#!/usr/bin/env bash
set -euo pipefail
IFS=$'\n\t'
SCONS_FLAGS=(
"lto=full"
"progress=no"
"debug_symbols=no"
)
@Calinou
Calinou / godot-init
Last active June 2, 2023 15:53
Scripts to initialize and edit a Godot project for quick testing
#!/bin/bash
#
# For Linux and macOS.
# The Godot editor must be in your `PATH` as `godot` for this script to work.
# Licensed under CC0 1.0 Universal.
set -euo pipefail
IFS=$'\n\t'
if [[ ! "${1:-}" || "${1:-}" == "--help" || "${1:-}" == "-h" ]]; then
@Calinou
Calinou / fade-to-black.sh
Created January 11, 2020 17:13
Generate a set of PNG frames that fade towards black
#!/bin/bash
START=599
for i in {600..700}; do
brightness="$((700-i))"
convert "$START.png" -modulate "$brightness%" "$i.png" &
done
@Calinou
Calinou / clang-format.sh
Created March 3, 2020 14:50
Portable shell script to format all files in a folder recursively using clang-format
#!/usr/bin/env bash
set -euo pipefail
IFS=$'\n\t'
find . \( -name '*.cpp' -o -name '*.hpp' -o -name '*.c' -o -name '*.h' \) \
-exec clang-format -i {} \;
@Calinou
Calinou / sftgan.sh
Last active July 13, 2022 00:41
Shell script to prepare images and upscale them using SFTGAN
#!/usr/bin/env bash
set -euo pipefail
IFS=$'\n\t'
SFTGAN_DIR="/home/hugo/Documents/Git/xinntao/SFTGAN"
print_header() {
echo -e "\n\e[1m[*] $1\e[0m"
}
@Calinou
Calinou / matterbridge.toml
Last active September 11, 2020 12:18
Godot Discord-IRC bridge configuration (Matterbridge)
[irc]
[irc.freenode]
Server="irc.freenode.net:6697"
Nick="GDDiscord"
NickServNick="GDDiscord"
NickServPassword="SECRET"
UseTLS=true
UseSASL=true
SkipTLSVerify=false
EditDisable=false
@Calinou
Calinou / no-agc.sh
Last active September 14, 2020 13:08
Disable/bypass PulseAudio automatic gain control
#!/bin/bash
set -euo pipefail
IFS=$'\n\t'
while sleep 0.1; do
# Use `pacmd list-sources` to get the input source name.
# 65535 is 100% volume.
pacmd set-source-volume alsa_input.pci-0000_00_1f.3.analog-stereo 40000
done