Skip to content

Instantly share code, notes, and snippets.

Gautier P bagage

  • France
Block or report user

Report or block bagage

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
@bagage
bagage / _liblinphone
Created Mar 8, 2017
autocompletion zsh/bash linphone
View _liblinphone
# Copyright (C) 2012 Belledonne Comunications, Grenoble, France
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
View elevation-responsive.html
```
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Test</title>
@bagage
bagage / .lessfilter
Last active May 17, 2017
.lessfilter for various input files (code highlighting, image and binary files display, …).
View .lessfilter
#!/bin/bash -x
# input preprocessor for less
function cmdexist() {
which "$1" >/dev/null
}
function colorize() {
if which pygmentize >/dev/null ; then
pygmentize -g "$1"
@bagage
bagage / torrentcloud.sh
Last active Jan 8, 2019
Torrent and magnet manager for torrentcloud.eu (V2)
View torrentcloud.sh
#!/bin/bash
# modification of an initial version from uwe-schwarz: https://github.com/uwe-schwarz/dot/blob/master/bin/torrentcloud.sh
# license: WTFPL
host="www.torrentcloud.eu"
uri="/cpv2/"
u="$(grep ^username= ~/.tcrc | cut -d= -f 2)"
p="$(grep ^password= ~/.tcrc | cut -d= -f 2)"
target="$(grep ^target= ~/.tcrc | cut -d= -f 2)"
View gist:996f344ded4b2290582e
➜ brew install gtk+ --without-x11
==> Installing gtk+ dependency: cairo
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/cairo-1.14.0.yosemite.bottle.1.tar.gz
Already downloaded: /Library/Caches/Homebrew/cairo-1.14.0.yosemite.bottle.1.tar.gz
==> Pouring cairo-1.14.0.yosemite.bottle.1.tar.gz
🍺 /usr/local/Cellar/cairo/1.14.0: 106 files, 6.4M
==> Installing gtk+
==> Downloading http://ftp.gnome.org/pub/gnome/sources/gtk+/2.24/gtk+-2.24.25.tar.xz
Already downloaded: /Library/Caches/Homebrew/gtk+-2.24.25.tar.xz
@bagage
bagage / pre-receive
Last active Nov 27, 2018
Submodule commit checker pre-receive server-side git hook
View pre-receive
#!/bin/bash
# Service side git pre-receive hook
# Written by Gautier Pelloux-Prayer <gautier+git@damsy.net>, 2014
#
# Public domain
#
# Simply put this script in server git bare repository <your-git-folder>/hooks and
# apply 'chmod +x pre-receive'.
#
View orienteering_replay.py
import xml.etree.ElementTree as ET
from sys import argv
from os.path import splitext
import xml.dom.minidom as minidom
import random
from math import sin, cos, pi, atan, acos
import unicodedata
import re
@bagage
bagage / android_gui_localizer.py
Last active Aug 29, 2015
Make Android GUI localizable (move hardcoded android:text to res/values/string.xml and rename in .java)
View android_gui_localizer.py
#!/usr/bin/env python3
try:
import sys
import readline
import re
import fileinput
from bs4 import BeautifulSoup
except Exception as e:
print("Please install BeautifulSoup: pip3 install beautifulsoup4")
You can’t perform that action at this time.