Skip to content

Instantly share code, notes, and snippets.

@abustany
abustany / gitlab-mr-approvals.user.js
Last active May 22, 2018 11:51
See which GitLab MRs are approved right from the list
// ==UserScript==
// @name Show approval status on GitLab MRs
// @namespace https://bustany.org
// @version 0.1
// @description See which merge requests are approved directly from the merge requests list
// @author Adrien Bustany <adrien@bustany.org>
// @match https://gitlab.com/*/*/merge_requests
// @grant none
// ==/UserScript==
@abustany
abustany / mattermost-hide-multi-team-bar.user.js
Created January 2, 2018 15:24
Hides the "multi team" bar of Mattermost when it's not needed
// ==UserScript==
// @name Mattermost: Hide multi-team bar
// @namespace https://bustany.org/
// @version 0.1
// @description Hides the "multi team" bar of Mattermost and shows it when the mouse hits the left edge of the screen
// @author Adrien Bustany
// @match https://chat.systerel.fr/*
// @grant GM_addStyle
// ==/UserScript==
@abustany
abustany / jenkins-filter-tap-results.user.js
Created June 9, 2017 12:42
Filter tap results in Jenkins
// ==UserScript==
// @name Filter TAP results in Jenkins
// @namespace bustany.org
// @description Adds filtering capabilities to Jenkins TAP results
// @include /.+\/job\/.+\/\d+\/tapResults\//
// @version 1
// @grant none
// @run-at document-end
// ==/UserScript==
@abustany
abustany / keybase.md
Created September 26, 2016 14:00
Keybase GitHub proof

Keybase proof

I hereby claim:

  • I am abustany on github.
  • I am abustany (https://keybase.io/abustany) on keybase.
  • I have a public key ASDL8X_N0yRVedMzZUQHd2m_GEoN1z3d9erwn9R1eFRD1wo

To claim this, I am signing this object:

package main
import (
"gopkg.in/redis.v2"
"testing"
)
func BenchmarkRedisZAdd(b *testing.B) {
options := &redis.Options{
Network: "tcp",
@abustany
abustany / gist:8866794
Last active August 29, 2015 13:56
Listing all functions in a rust file (using Rust's syntax module)
#[feature(managed_boxes)];
extern mod rustc;
extern mod syntax;
// Parses LD_LIBRARY_PATH
fn lib_path() -> std::hashmap::HashSet<Path> {
match std::os::getenv("LD_LIBRARY_PATH") {
Some(value) => {
let values: std::hashmap::HashSet<Path> = value.split(':').filter(|&x| x != "").map(|x| Path::new(x)).collect();
@abustany
abustany / google-reader-backup.py
Last active December 17, 2015 07:09
Backup all your Google Reader feeds *and* their articles - allows you to get not only the 30 last articles from the public feed, but the complete history stored in Google Reader's database
import codecs
import json
import os
import re
# https://code.google.com/p/google-api-python-client
from oauth2client.client import OAuth2WebServerFlow
from oauth2client.file import Storage
from oauth2client.tools import run