This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# retrieve the total number of CPU minus one to avoid stall. | |
export NUM_CPU=$((`grep -c ^processor /proc/cpuinfo`-1)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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} | |
); |
NewerOlder