Skip to content

Instantly share code, notes, and snippets.

View tcoppex's full-sized avatar
🥝
ᐳ ᐁ ᓯ

Thibault Coppex tcoppex

🥝
ᐳ ᐁ ᓯ
  • France
View GitHub Profile
@tcoppex
tcoppex / .bashrc
Created April 13, 2018 09:13
Some bash utilities.
# retrieve the total number of CPU minus one to avoid stall.
export NUM_CPU=$((`grep -c ^processor /proc/cpuinfo`-1))
@tcoppex
tcoppex / greasemonkey_youtube_filters.js
Last active April 4, 2018 13:53
GreaseMonkey script to remove unused links from Youtube main page.
// ==UserScript==
// @name YouTube Spam Filters
// @namespace Youtube Scripts
// @description Remove unused links from Youtube's front page.
// @match *://www.youtube.com/*
// @grant GM_addStyle
// @run-at document-idle
// @icon http://www.youtube.com/favicon.ico
// ==/UserScript==
@tcoppex
tcoppex / async_dl.cc
Created December 2, 2017 14:32
Simple async case for 'curl for people'
#include <cpr/cpr.h> // https://github.com/whoshuu/cpr
#include <iostream>
static const char* sURL = "https://www.google.fr";
void async_result() {
auto fr = cpr::GetAsync(
cpr::Url{sURL}
, cpr::VerifySsl{false}
);