Skip to content

Instantly share code, notes, and snippets.

View Souler's full-sized avatar
:shipit:

Juan José Herrero Barbosa Souler

:shipit:
View GitHub Profile
@Souler
Souler / script.sh
Created June 12, 2024 14:48
Crop maskable icons into circular
for size in 48 72 96 128 192 384 512 1024
do
magick "maskable_x$size.png" \( +clone -threshold 100% -fill white -draw 'circle %[fx:int(w/2)],%[fx:int(h/2)] %[fx:int(0.95*w/2)],%[fx:int(0.95*(w/2+h/2))]' \) -channel-fx '| gray=>alpha' "base_x$size.png"
done
@Souler
Souler / rename_tags.sh
Last active June 18, 2017 09:37
Bulk rename Git Tags
#!/bin/sh
for tag in `git tag`; do
newTag="v$tag"
echo "$tag -> $newTag"
git tag $newTag $tag # Create the new tag where the older pointed
git tag -d "$tag" # Delete the old tag
git push origin ":refs/tags/$tag" # Delete the old tag from the remote
done
git push --tags # Push all the new tags
# For regular users
PS1='${debian_chroot:+($debian_chroot)}\[\e[1;30m\]$(date +%H:%M) \[\e[1;34m\]\u\[\e[1;33m\]@\[\e[1;32m\]\h \[\e[01;36m\]\W \[\e[1;33m\]$\[\e[0m\] '
# For root
PS1='${debian_chroot:+($debian_chroot)}\[\e[1;30m\]$(date +%H:%M) \[\e[1;31m\]\u\[\e[1;33m\]@\[\e[1;32m\]\h \[\e[01;36m\]\W \[\e[1;31m\]#\[\e[0m\] '

RaspberryPI stack de desarrollo web

Resumen

Vamos a crear un pequeño servidor desarrollo de soluciones basadas en web. La idea es crear aplicaciones basadas en nodejs.

Como vamos a tener varias aplicaciones corriendo y paralelo y somos muy malos recordando que puerto es cada una de nuestras apliciones, crearemos tambien un pequeño servidor DNS local que resolverá las peticiones destinadas a nuestro dominio .home dentro de nuestra LAN. Además, como DNS no entiende de numeros de puertos usaremos nginx como servidor proxy para redirigir el trafico IP en función del subdominio a través del que se acceda.

# Set this to 1 to enable startup
ENABLED=1
# The user to run Kodi as
USER=root
# Adjust niceness of Kodi (decrease for higher priority)
NICE=-5
@Souler
Souler / gist:1641820
Created January 19, 2012 18:53
The Dragonforged Hilt
SET @NPC_MYRALION_SUNBLAZE := 36642;
SET @NPC_CALADIS_BRIGHTSPEAR := 36624;
SET @NPC_SUNREAVER_WAR_MAGE := 36657;
SET @NPC_SILVER_COVENANT_SENTINEL := 36656;
SET @NPC_IMAGE_OF_ALEXTRASZA := 37829;
SET @NPC_IMAGE_OF_ANASTERIAN := 37844;
SET @NPC_IMAGE_OF_THALORIEN := 37828;
SET @NPC_IMAGE_OF_MORLEN := 37845;
SET @NPC_BLOOD_QUEEN_LANA_THEL := 37846;
SET @NPC_QUELDELAR_DUMMY := 37852;