Skip to content

Instantly share code, notes, and snippets.

@Ludo6431
Ludo6431 / graphe2.png
Last active December 28, 2015 06:09
"Cheap" answer to https://plus.google.com/100596916576106169058/posts/W87V4uTsASn (older versions of the gist refers to this problem: https://plus.google.com/100596916576106169058/posts/SAae56Bo8GZ) Uses recursivity :/
graphe2.png
ludo6431@ludo6431-N53Jf:~/Public/GDrive$ ./grive
Reading local directories
Synchronizing folders
Reading remote server file list
Synchronizing files
sync "./Bricolage/CNC/Liens.gdoc" doesn't exist in server, uploading
sync "./Bricolage/GyroCam/gopro/AchatGoPro.gsheet" doesn't exist in server, uploading
sync "./Bricolage/GyroCam/gopro/GoPro Hero 3.sldprt" created in remote. creating local
exception: /home/ludo6431/grive/libgrive/src/util/OS.cc(81): Throw in function void gr::os::SetFileTime(const string&, const gr::DateTime&)
Dynamic exception type: boost::exception_detail::clone_impl<gr::os::Error>
JSON.stringify(window.plugin.playerTracker.stored)
"{"20a0e93a6bb34253a276c1f03e5b91f9.c":{"nick":"ludolacoste","team":"RESISTANCE","events":[{"latlngs":[[43.499037,1.365384],[43.499037,1.365384],[43.499037,1.365384],[43.499037,1.365384],[43.499037,1.365384],[43.499037,1.365384],[43.499037,1.365384],[43.499037,1.365384],[43.499037,1.365384],[43.499037,1.365384],[43.499037,1.365384],[43.499037,1.365384],[43.499037,1.365384],[43.499037,1.365384],[43.499037,1.365384],[43.499037,1.365384],[43.499037,1.365384],[43.499037,1.365384],[43.499037,1.365384],[43.499037,1.365384],[43.499037,1.365384],[43.499037,1.365384],[43.499037,1.365384],[43.499037,1.365384],[43.499037,1.365384],[43.499037,1.365384],[43.499037,1.365384],[43.499037,1.365384],[43.499037,1.365384],[43.499037,1.365384],[43.499037,1.365384],[43.499037,1.365384],[43.499037,1.365384],[43.499037,1.365384],[43.499037,1.365384],[43.499037,1.365384],[43.499037,1.365384],[43.499037,1.365384],[43.499037,1.365384],[43.499037,1.365384],[43.499037,1.365384],[43.49903
@Ludo6431
Ludo6431 / decoder.py
Created December 4, 2011 22:29
KORG Monotribe AFSK firmware decoder
# -*- coding: utf-8 -*-
# KORG monotribe firmware decoder by:
# Ludovic Lacoste (aka Ludo6431) -- http://ludolacoste.com
#
# thanks to :
# Th0mas @ http://gravitronic.blogspot.com/2011/12/decoding-korg-monotribe-firmware.html
# nitro2k01 @ http://blog.gg8.se/wordpress/2011/12/04/korg-monotribe-firmware-20-analysis/
# decoder.py <input ascii bits file> <output file prefix>
static int
execute_pipeline (command, asynchronous, pipe_in, pipe_out, fds_to_close)
COMMAND *command;
int asynchronous, pipe_in, pipe_out;
struct fd_bitmap *fds_to_close;
{
int prev, fildes[2], new_bitmap_size, dummyfd, ignore_return, exec_result;
int lstdin, lastpipe_flag, lastpipe_jid;
COMMAND *cmd;
struct fd_bitmap *fd_bitmap;
/* Fork, handling errors. Returns the pid of the newly made child, or 0.
COMMAND is just for remembering the name of the command; we don't do
anything else with it. ASYNC_P says what to do with the tty. If
non-zero, then don't give it away. */
pid_t
make_child (command, async_p)
char *command;
int async_p;
{
int forksleep;
#!/bin/bash
cd "`dirname $0`"
BASESRC="fsroot"
IMGFILE="fsimg.img"
IMGSIZE="256" # in MB
TMPDIR="`mktemp -d`"
# <-- verifying mandatory things
ludo6431@ludo6431-maverick-Aspire5100:~$ sudo fdisk -l /dev/sdb1
Disque /dev/sdb1 : 3960 Mo, 3960995840 octets
122 têtes, 62 secteurs/piste, 1022 cylindres
Unités = cylindres de 7564 * 512 = 3872768 octets
Taille de secteur (logique / physique) : 512 octets / 512 octets
taille d'E/S (minimale / optimale) : 512 octets / 512 octets
Identifiant de disque : 0x00000000
def answer_privmsg(c, e, s):
dest = ''
if e.eventtype() in ['pubmsg', 'action', 'pubnotice', 'join', 'part', 'kick', 'mode']:
dest = e.target()
else:
dest = nm_to_n(e.source())
c.privmsg(dest, s)
@Ludo6431
Ludo6431 / irqs.c
Created July 4, 2011 19:41
ninty's irq functions
#include "irqs.h"
u32 irq_ack(u32 irqs) {
u16 ime = REG_IME;
REG_IME = 0;
u32 ifs = REG_IF;
REG_IF = irqs;
REG_IME = ime;