Skip to content

Instantly share code, notes, and snippets.

alexisrobert

  • Paris
Block or report user

Report or block alexisrobert

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@alexisrobert
alexisrobert / app.py
Created Jul 24, 2017
Automatic registration of Calendly guests in StationF's hal
View app.py
import os
import dateparser
import datetime
import pytz
import requests
from flask import Flask, request
app = Flask(__name__)
@alexisrobert
alexisrobert / dokku-backup.sh
Last active Apr 8, 2019
Backup script for Dokku (postgres & storage & let's encrypt & glacier)
View dokku-backup.sh
#!/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 / santanderbikes.md
Last active Jan 11, 2016
Dashing plugin for Santander Bikes (ex Barclays Bikes) realtime availability
View santanderbikes.md

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 / main.c
Created Feb 21, 2013
EXTI et ChibiOS
View main.c
#include "ch.h"
#include "hal.h"
static void extcb1(EXTDriver *extp, expchannel_t channel) {
chSysLockFromIsr();
palTogglePad(GPIOD, GPIOD_LED4);
chSysUnlockFromIsr();
}
@alexisrobert
alexisrobert / fetch-megavideo.go
Created Jun 4, 2011
Fetch the original video file's URL on Megavideo (premium accounts) without getting through the Flash app.
View fetch-megavideo.go
/*
* 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 / webserver.go
Created May 20, 2011
Tiny web server in Go for sharing a folder
View webserver.go
/* 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 / wgetfbx.py
Created May 13, 2011
Script Python quick'n'dirty qui permet de télécharger un lien sur la seedbox Freebox Révolution façon wget
View wgetfbx.py
#!/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]
You can’t perform that action at this time.