Skip to content

Instantly share code, notes, and snippets.

Thomas Laroche Mikayex

  • Bordeaux, France
View GitHub Profile
@Mikayex
Mikayex / borgweb.service
Created Aug 9, 2016
Borgweb systemd service
View borgweb.service
[Unit]
Description=Web front-end for Borg
After=network.target
[Service]
Type=simple
User=root
Group=root
ExecStart=/usr/bin/borgweb
@Mikayex
Mikayex / Makefile
Created Mar 29, 2016
Transmission 2.92 sequential (Entware)
View Makefile
#
# Copyright (C) 2009-2014 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=transmission
@Mikayex
Mikayex / main.cpp
Created Jan 21, 2015
Démonstration openCV
View main.cpp
#include <cstdlib>
#include <iostream>
#include <opencv2/opencv.hpp>
using namespace std;
using namespace cv;
int main(int argc, char** argv) {
Size2i imageSize(200, 200);
Scalar red(0, 0, 255), blue(255, 0, 0);
@Mikayex
Mikayex / PKGBUILD
Last active Aug 29, 2015
gogs-git-dev PKGBUILD
View PKGBUILD
# Contributor: Thomas Laroche <tho.laroche@gmail.com>
# Maintainer: Thomas Fanninger <thomas@fanninger.at>
pkgname=gogs-git-dev
_pkgname=gogs
_branch=dev
pkgver=1915.81a44e4
pkgrel=1
epoch=1
pkgdesc="Gogs(Go Git Service) is a Self Hosted Git Service in the Go Programming Language. This is the current git version from branch ${_branch}."
@Mikayex
Mikayex / PKGBUILD
Last active Aug 29, 2015
go-sqlite3 PKGBUILD
View PKGBUILD
# Contributor: Thomas Laroche <tho.laroche@gmail.com>
# Maintainer: Andreas B. Wagner <AndreasBWagner@pointfree.net>
pkgname=go-sqlite3
pkgver=240.4c5aec8
pkgrel=1
pkgdesc="sqlite3 driver for go that using database/sql"
arch=('i686' 'x86_64')
url="https://github.com/mattn/go-sqlite3"
license=('MIT')
depends=('sqlite3' 'go')
View Segmentation.ijm
function listOfImages() {
images=newArray(nImages+1);
for (i=1; i<=nImages; i++) {
selectImage(i);
images[i-1]=getTitle;
}
images[nImages]="Aucune";
return images;
}
@Mikayex
Mikayex / Image2Sound.py
Created Jul 31, 2014
Sound2Image and Image2Sound
View Image2Sound.py
#Encode image to sound
#Requirement : Python 2.5, Numpy, audiolab, PIL
import numpy as np
from scikits.audiolab import Format, Sndfile
import math
from PIL import Image
import sys
if len(sys.argv)!=2:
@Mikayex
Mikayex / README.md
Last active Mar 19, 2016
Patch to add sequential downloading option to Transmission
You can’t perform that action at this time.