Skip to content

Instantly share code, notes, and snippets.

View alexisrobert's full-sized avatar

Alexis Robert alexisrobert

  • Kima Ventures
  • Paris
  • X @ale6_
View GitHub Profile
@alexisrobert
alexisrobert / wgetfbx.py
Created May 13, 2011 22:26
Script Python quick'n'dirty qui permet de télécharger un lien sur la seedbox Freebox Révolution façon wget
#!/usr/bin/python
# wgetfbx.py - Alexis ROBERT <alexis.robert@gmail.com>
# Under WTFPL license.
# Puis jme la pete j'ecris en anglais aussi alors que c'est pour une Freebox.
# Puis jme la pete je mets une licence aussi.
#
# Si vous voulez conserver le mot de passe, creez un fichier
# .config/wgetfbx.conf du type :
#
# [wgetfbx]
@alexisrobert
alexisrobert / webserver.go
Created May 20, 2011 10:13
Tiny web server in Go for sharing a folder
/* Tiny web server in Golang for sharing a folder
Copyright (c) 2010-2014 Alexis ROBERT <alexis.robert@gmail.com>
Contains some code from Golang's http.ServeFile method, and
uses lighttpd's directory listing HTML template. */
package main
import "net/http"
import "net/url"
@alexisrobert
alexisrobert / fetch-megavideo.go
Created June 4, 2011 23:29
Fetch the original video file's URL on Megavideo (premium accounts) without getting through the Flash app.
/*
* Fetch the original video file's URL on Megavideo (premium accounts) without getting
* through the Flash app.
*
* Copyright (c) 2011 Alexis ROBERT <alexis.robert@gmail.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@alexisrobert
alexisrobert / main.c
Created February 21, 2013 17:22
EXTI et ChibiOS
#include "ch.h"
#include "hal.h"
static void extcb1(EXTDriver *extp, expchannel_t channel) {
chSysLockFromIsr();
palTogglePad(GPIOD, GPIOD_LED4);
chSysUnlockFromIsr();
}
@alexisrobert
alexisrobert / santanderbikes.md
Last active January 11, 2016 17:52
Dashing plugin for Santander Bikes (ex Barclays Bikes) realtime availability

Santander Bikes (ex Barclays Bikes) realtime availability

This widget fetchs the availability of Santander Bikes (ex Barclays Bikes) in realtime using TfL's API.

To install, just type dashing install cfdb32371db7a240263c

Don't forget to add httparty in you Gemfile like this :

    gem 'httparty'
@alexisrobert
alexisrobert / dokku-backup.sh
Last active April 8, 2019 10:23
Backup script for Dokku (postgres & storage & let's encrypt & glacier)
#!/bin/bash
BACKUP_ROOT="/root/backup/"
BACKUP_DATE="`date +'%Y%m%d-%H%M%S'`"
BACKUP_FTP_ROOT="/tmp/glacier-${BACKUP_DATE}"
mkdir -p $BACKUP_FTP_ROOT
DAYS_RETENTION=30
@alexisrobert
alexisrobert / app.py
Created July 24, 2017 14:26
Automatic registration of Calendly guests in StationF's hal
import os
import dateparser
import datetime
import pytz
import requests
from flask import Flask, request
app = Flask(__name__)
@alexisrobert
alexisrobert / eip712-sign.py
Last active February 11, 2024 18:15
Python script that signs EIP712 structs that can be validated by EVM smart contracts
# Python script that signs EIP712 structs that can be validated
# by EVM smart contracts.
#
# Copyright (c) 2021 Alexis Robert <github@me.ale6.net>
#
# Dependencies:
# coincurve==15.0.1
# eip712-structs==1.1.0
import os