Skip to content

Instantly share code, notes, and snippets.

🦄
______ is best pony.​

Hugo Locurcio Calinou

🦄
______ is best pony.​
View GitHub Profile
@Calinou
Calinou / download-all.sh
Created Jun 2, 2020
Script to download all Godot files from a release on the TuxFamily download server
View download-all.sh
#!/usr/bin/env bash
# Copyright © 2019 Hugo Locurcio
# Licensed under the MIT license.
set -xeuo pipefail
IFS=$'\n\t'
export DIR
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
@Calinou
Calinou / sftgan.sh
Last active Apr 26, 2020
Shell script to prepare images and upscale them using SFTGAN
View sftgan.sh
#!/usr/bin/env bash
set -euo pipefail
IFS=$'\n\t'
SFTGAN_DIR="/path/to/SFTGAN/repository"
print_header() {
echo -e "\n\e[1m[*] $1\e[0m"
}
@Calinou
Calinou / download-all.sh
Last active Dec 1, 2019
Script to download all Godot files for a given version (useful to set up a mirror)
View download-all.sh
#!/usr/bin/env bash
# Copyright © 2019 Hugo Locurcio
# Licensed under the MIT license.
set -euo pipefail
IFS=$'\n\t'
export DIR
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
@Calinou
Calinou / scaling.gd
Last active May 10, 2019
[WIP] Automatic hiDPI scaling handling singleton for Godot
View scaling.gd
# Copyright © 2019 Hugo Locurcio and contributors - MIT License
#
# This script implements constant 2D scaling with basic hiDPI display detection.
# This is primarily intended for application GUIs, rather than games.
extends Node
func _ready() -> void:
get_viewport().connect("size_changed", self, "_on_window_size_changed")
_on_window_size_changed()
@Calinou
Calinou / godot-init
Last active Apr 21, 2019
Scripts to initialize and edit a Godot project for quick testing
View godot-init
#!/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 / update-godot.sh
Created Feb 26, 2019
Update, build and install Godot from source on Linux
View update-godot.sh
#!/usr/bin/env bash
set -euo pipefail
IFS=$'\n\t'
# Multiply CPU threads by 1.5 (Bash does not feature floating-point arithmetic)
THREADS="$(($(nproc) * 3/2))"
SCONS_FLAGS=("use_lto=yes" "progress=no" "debug_symbols=no" "LINKFLAGS='-fuse-ld=gold'" "-j$THREADS")
cd "$HOME/Documents/Git/godotengine/godot"
@Calinou
Calinou / kanboard-dark.css
Last active Apr 17, 2020
Dark theme for Kanboard (WIP)
View kanboard-dark.css
/* ==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 / modern-font-stack.css
Last active Oct 2, 2018
Userstyle to enforce a modern font stack on all websites
View modern-font-stack.css
/* ==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 / CHANGELOG.md
Last active Jun 28, 2020
Godot 4.0 preliminary changelog
View CHANGELOG.md

Changelog

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

The format is based on Keep a Changelog.

[Unreleased] (4.0-dev at commit 8f838f33b)

Added

@Calinou
Calinou / render_intro_outro.sh
Created Jun 4, 2018
Render intro/outro images for use with the Blender Video Sequence Editor
View render_intro_outro.sh
#!/bin/bash
#
# Renders video intro/outro images; targeted at Blender usage.
# Usage: ./render.sh
#
# Copyright © 2018 Hugo Locurcio
# Licensed under CC0 1.0 Universal: https://creativecommons.org/publicdomain/zero/1.0/
set -euo pipefail
IFS=$'\n\t'
You can’t perform that action at this time.