Skip to content

Instantly share code, notes, and snippets.

View afk-mario's full-sized avatar
🥔

afk afk-mario

🥔
View GitHub Profile
@afk-mario
afk-mario / gitTick
Last active September 15, 2015 02:41
#! /bin/bash
if [ -z "$1" ]; then
DATE=`date +"%m/%d/%Y"`
else
DATE=$1
fi
git log --all --pretty=format:'%ad%x08%x08%x08%x08%x08%x08%x08%x08%x08%x08%x08%x08%x08%x08 %s' --abbrev-commit --author="Arlefreak" --after="$DATE 00:00" --before="$DATE 23:59" | cat
@afk-mario
afk-mario / [email protected]
Last active February 22, 2024 22:15
Django + Gunicorn + VirtualEnv + Systemd
[Unit]
Description=Gunicorn for project %I
After=network.target
After=syslog.target
[Service]
EnvironmentFile=/etc/conf.d/django_%i
ExecStart=/usr/bin/start_gunicorn
Restart=always
SyslogIdentifier=gunicorn%I
@afk-mario
afk-mario / game.txt
Created June 16, 2018 20:58
flickgame
{"gameLink":"www.flickgame.org","canvasses":[[531,"0",3,"f",156,"0",5,"f",151,"0",9,"f",148,"0",23,"f",135,"0",31,"f",127,"0",46,"f",112,"0",53,"f",105,"0",57,"f",102,"0",60,"f",99,"0",63,"f",95,"0",67,"f",91,"0",70,"f",89,"0",33,"f",15,"0",23,"f",89,"0",31,"f",24,"0",16,"f",88,"0",26,"f",35,"0",11,"f",87,"0",18,"f",46,"0",8,"f",87,"0",15,"f",52,"0",3,"f",90,"0",11,"f",148,"0",11,"f",149,"0",9,"f",30,"0",14,"f",107,"0",8,"f",20,"0",30,"f",103,"0",6,"f",16,"0",40,"f",116,"0",49,"f",106,"0",58,"f",99,"0",30,"f",10,"0",24,"f",94,"0",21,"f",26,"0",21,"f",91,"0",17,"f",36,"0",18,"f",88,"0",14,"f",45,"0",15,"f",84,"0",11,"f",54,"0",12,"f",82,"0",9,"f",60,"0",11,"f",79,"0",8,"f",64,"0",10,"f",78,"0",7,"f",67,"0",9,"f",77,"0",6,"f",70,"0",8,"f",75,"0",6,"f",72,"0",8,"f",74,"0",6,"f",74,"0",7,"f",73,"0",5,"f",76,"0",7,"f",72,"0",5,"f",77,"0",7,"f",71,"0",5,"f",78,"0",7,"f",71,"0",3,"f",80,"0",6,"f",155,"0",5,"f",156,"0",3,"f",419,"0",3,"f",2,"0",27,"f",127,"0",35,"f",125,"0",36,"f",124,"0",36,"f",125,"0",35,"f",126,"0
@afk-mario
afk-mario / game.txt
Created June 16, 2018 20:58
flickgame
{"gameLink":"www.flickgame.org","canvasses":[[16000,"0"],[16000,"0"],[16000,"0"],[16000,"0"],[16000,"0"],[16000,"0"],[16000,"0"],[16000,"0"],[16000,"0"],[16000,"0"],[16000,"0"],[16000,"0"],[16000,"0"],[16000,"0"],[16000,"0"],[16000,"0"]],"hyperlinks":[[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]]}
@afk-mario
afk-mario / game.txt
Created June 16, 2018 20:58
flickgame
{"gameLink":"www.flickgame.org","canvasses":[[16000,"0"],[16000,"0"],[16000,"0"],[16000,"0"],[16000,"0"],[16000,"0"],[16000,"0"],[16000,"0"],[16000,"0"],[16000,"0"],[16000,"0"],[16000,"0"],[16000,"0"],[16000,"0"],[16000,"0"],[16000,"0"]],"hyperlinks":[[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]]}
@afk-mario
afk-mario / game.txt
Created June 16, 2018 21:14
flickgame
{"gameLink":"www.flickgame.org","canvasses":[[3764,"0",25,"1",129,"0",36,"1",121,"0",41,"1",117,"0",44,"1",114,"0",47,"1",112,"0",49,"1",109,"0",51,"1",108,"0",53,"1",106,"0",55,"1",104,"0",56,"1",28,"0",7,"1",67,"0",28,"1",14,"0",16,"1",27,"0",9,"1",65,"0",26,"1",21,"0",12,"1",26,"0",11,"1",64,"0",22,"1",28,"0",9,"1",25,"0",13,"1",63,"0",20,"1",31,"0",8,"1",25,"0",13,"1",63,"0",18,"1",35,"0",5,"1",26,"0",13,"1",63,"0",15,"1",68,"0",14,"1",64,"0",13,"1",69,"0",14,"1",66,"0",10,"1",70,"0",14,"1",66,"0",8,"1",72,"0",14,"1",66,"0",7,"1",73,"0",14,"1",67,"0",5,"1",74,"0",14,"1",146,"0",14,"1",146,"0",14,"1",121,"0",5,"1",20,"0",14,"1",120,"0",7,"1",19,"0",14,"1",91,"0",8,"1",21,"0",7,"1",19,"0",14,"1",90,"0",10,"1",15,"0",12,"1",19,"0",15,"1",89,"0",10,"1",14,"0",13,"1",19,"0",15,"1",89,"0",10,"1",14,"0",13,"1",19,"0",15,"1",89,"0",10,"1",14,"0",12,"1",20,"0",15,"1",89,"0",10,"1",13,"0",8,"1",25,"0",15,"1",90,"0",8,"1",13,"0",9,"1",25,"0",15,"1",111,"0",9,"1",24,"0",16,"1",110,"0",10,"1",24,"0",16,"1",110,"0",10,
@afk-mario
afk-mario / ejercicio_04.lua
Last active September 26, 2018 14:50
Cocos Laboratorio
-- ejercicio 04
function _init()
-- limpia la pantalla
cls()
-- calcula el centro
-- de la pantalla
center = flr(127/2)
@afk-mario
afk-mario / draw.lua
Last active November 21, 2018 06:43
Pico 8 state machine for game screens.
function _draw()
-- manda a llamar la funcion
-- draw correspondiente al estado
if state == states.menu then
draw_menu()
elseif state == states.game then
draw_game()
elseif state == states.over then
draw_over()
end
@afk-mario
afk-mario / collisions.lua
Created November 21, 2018 06:45
Sistema de colisiones para pico 8
function solid(x, y)
-- checa el indice del sprite
-- en la posicion indicada
val=mget(x, y)
-- checa si el sprite tiene la
-- bandera 0 activada
return fget(val, 0)
end
@afk-mario
afk-mario / Notes.md
Created January 16, 2019 06:44
Disable laptop keyboard on external usb keyboard plugged on Linux