Skip to content

Instantly share code, notes, and snippets.

@ggramaize
ggramaize / fizzbuzz.c
Last active January 18, 2022 16:21
FizzBuzz
#include <stdio.h>
#include <stdlib.h>
void nop(void) { ; }
void die(void) { exit(1); }
void (*die_if_true[])(void) = { nop, die};
int main(void)
{
@ggramaize
ggramaize / challenge.php
Created February 5, 2021 12:18
@Al_Grigor's challenge
<?php
function process( $input)
{
$result = '[';
$occurences = array();
$occur_offset = -1;
$input_sz = strlen($input);
<?php
$service_url = 'http://www.hampager.de:8080/calls';
$username = 'n0call';
$password = 'geheim';
$body = array(
'text' => "F4HOF: Ceci est un autre test de l'API REST Dapnet. 73",
'callSignNames' => array(
@ggramaize
ggramaize / zip.go
Created August 31, 2018 15:31
Patched transcoder/zip.go
package transcoder
import (
"compress/gzip"
"github.com/barnacs/compy/proxy"
brotlienc "gopkg.in/kothar/brotli-go.v0/enc"
brotlidec "gopkg.in/kothar/brotli-go.v0/dec"
"net/http"
"strings"
)
@ggramaize
ggramaize / DOC_INSTALL_OSM_SERVER.md
Last active March 31, 2017 03:46 — forked from dugasmark/DOC_INSTALL_OSM_SERVER.md
Installation d'un serveur OpenStreetMap sur Debian Jessie

Ce tuto est directement inspiré de ce gist qui réalisait l'installation sur une ubuntu 12.04.

Ici, le tuto est réadapté pour Debian Jessie.

Installation des dépendances

Une fois votre VM installée, mettez à jour le système et installez les paquets listés ci-dessous.

su
apt-get update

apt-get dist-upgrade

Keybase proof

I hereby claim:

  • I am ggramaize on github.
  • I am isithran (https://keybase.io/isithran) on keybase.
  • I have a public key whose fingerprint is D4B0 8488 03E7 D7AF F9DB 90E2 4EB8 8CD9 5731 2C28

To claim this, I am signing this object: