Skip to content

Instantly share code, notes, and snippets.

View jgmdev's full-sized avatar

Jefferson González jgmdev

View GitHub Profile
@Gumichan01
Gumichan01 / circle.cpp
Last active April 1, 2024 14:56
[SDL2] Draw and fill a circle
int
SDL_RenderDrawCircle(SDL_Renderer * renderer, int x, int y, int radius)
{
int offsetx, offsety, d;
int status;
CHECK_RENDERER_MAGIC(renderer, -1);
@auroraeosrose
auroraeosrose / InitialIdeas.md
Created June 19, 2014 23:22
Ideas for merged extension generator

An initial dump of ideas for a php generator

  1. use composer and symfony console tools for cli manipulation
  2. pluggable architecture

components needed - configuration parsing scanning? (helper for generating definitions) templating

@mikkeloscar
mikkeloscar / guide.md
Created June 14, 2014 20:44
Setup armv7h chroot under x86_64 host (Archlinux/Archlinuxarm biased)

Setup armv7h chroot under x86_64 host (Archlinux/Archlinuxarm biased)

Simple way to setup an arm chroot for building packages for your arm devices. This is an alternative to cross-compiling where you are limited to only linking against the libs in your toolchain.

Setup chroot-fs

You can store the chroot wherever you like. I choose to store it in a disk-image which I mount to my filesystem.

@thomasfr
thomasfr / autossh.service
Last active May 9, 2024 16:59
Systemd service for autossh
[Unit]
Description=Keeps a tunnel to 'remote.example.com' open
After=network.target
[Service]
User=autossh
# -p [PORT]
# -l [user]
# -M 0 --> no monitoring
# -N Just open the connection and do nothing (not interactive)
@AndrewRose
AndrewRose / PKGBUILD
Last active August 29, 2015 13:57
PKGBUILD for ZTS wxPHP (includes wxWidgets, pthreads, event and runkit)
pkgname=wxphp
true && pkgname=(
'wxphp'
'wxphp-wxwidgets'
'wxphp-pecl-wxwidgets'
'wxphp-pecl-event'
'wxphp-pecl-runkit'
'wxphp-pecl-pthreads'
)