Skip to content

Instantly share code, notes, and snippets.

Avatar
🦄
______ is best pony.​

Hugo Locurcio Calinou

🦄
______ is best pony.​
View GitHub Profile
@Calinou
Calinou / insaneBump.py
Created Mar 9, 2015
InsaneBump GIMP plugin (licensed under GPLv3)
View insaneBump.py
#! /usr/bin/env python
from gimpfu import *
import commands
import glob
import os
import string
import subprocess
suffixes = (['diffuse', '_d'], ['specular', '_s'], ['normal', '_n'], ['height', '_h'], \
@Calinou
Calinou / update-git.sh
Last active Sep 6, 2015
Updates all Git repositories in a directory
View update-git.sh
#!/bin/bash
# Copyright (c) 2015 Calinou
# CC0 1.0 Universal
# <https://creativecommons.org/publicdomain/zero/1.0/>
update() {
for d in "$@"; do
test -d "$d" -a \! -L "$d" || continue
cd "$d"
@Calinou
Calinou / update-svn.sh
Last active Aug 29, 2015
Updates all Subversion repositories in a directory
View update-svn.sh
#!/bin/bash
# Copyright (c) 2015 Calinou
# CC0 1.0 Universal
# <https://creativecommons.org/publicdomain/zero/1.0/>
update() {
for d in "$@"; do
test -d "$d" -a \! -L "$d" || continue
cd "$d"
@Calinou
Calinou / prune-inactive-accounts.sh
Created Jun 10, 2015
Bash script to prune inactive Minetest accounts from a server (script by VanessaE)
View prune-inactive-accounts.sh
#!/bin/bash
cd /home/minetest/.minetest/worlds/
for j in $(ls); do
echo /home/minetest/.minetest/worlds/$j
cd /home/minetest/.minetest/worlds/$j
rm -rf players-tmp
mv players players-tmp
mkdir players
@Calinou
Calinou / build_android.sh
Last active May 27, 2019
Compile Godot for Android easily
View build_android.sh
#!/bin/sh -x
# This script compiles Android debug and release templates from a Godot Git clone.
# It needs to be run from a GNU/Linux system. The compilation process will automatically
# use all CPU threads available.
# You will need to install Android SDK (API 23), the build tools,
# the Android Support Repository and the NDK (latest, as of November 2016).
# Place this script at the root of your Godot Git clone.
# CC0 1.0 Universal
@Calinou
Calinou / build_windows.bat
Last active Jun 16, 2022
Compile Godot for Windows easily
View build_windows.bat
:: This script must be run from a Windows machine with
:: Visual Studio 2015, Python 2.7 and SCons installed at their
:: default locations. 7-Zip also needs to be installed (to compress editor binaries).
:: NOTE: You need Pywin32 to be installed to use multi-threaded compilation.
:: You may need to set "threads" to 1 for the first build, even if you have it installed.
:: Place this script at the root of your Godot Git clone.
:: CC0 1.0 Universal
@Calinou
Calinou / build_osx.sh
Last active Jul 14, 2022
Compile Godot for OS X easily (from Linux)
View build_osx.sh
#!/bin/sh -x
# This script must be run from a GNU/Linux system with
# OSXCross installed and configured. XCode SDK 7.2 is used
# with this script.
# Place this script at the root of your Godot Git clone.
# CC0 1.0 Universal
OSXCROSS_PATH="/opt/osxcross"
@Calinou
Calinou / build_linux.sh
Last active Dec 2, 2021
Compile Godot for GNU/Linux 64-bit easily
View build_linux.sh
#!/bin/sh -x
# This script compiles Godot for GNU/Linux in 64-bit.
# Place this script at the root of your Godot Git clone.
# CC0 1.0 Universal
# Build 64-bit Godot for GNU/Linux desktop, in debug and release mode
scons p=x11 -j$(nproc) verbose=no tools=yes target=release_debug openssl=builtin
scons p=x11 -j$(nproc) verbose=no tools=no target=release_debug openssl=builtin
@Calinou
Calinou / build_iphone.sh
Last active Sep 1, 2020
Compile Godot for iOS easily (from Linux)
View build_iphone.sh
#!/bin/sh -x
# This script compiles Godot for iOS in 64-bit and 32-bit.
# It must be run from a GNU/Linux system.
# Place this script at the root of your Godot Git clone.
# CC0 1.0 Universal
# This needs to be set so that SCons detects OS X as a valid option
export OSXCROSS_IOS="anything"
@Calinou
Calinou / build_javascript.sh
Last active Jan 9, 2022
Compile Godot for HTML5 easily
View build_javascript.sh
#!/bin/sh -x
# This script must be run from a GNU/Linux system with the Emscripten SDK
# installed and configured.
# Place this script at the root of your Godot Git clone.
# CC0 1.0 Universal
export EMSCRIPTEN_ROOT="/opt/emsdk/emscripten/master"