This file contains 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
#!/usr/bin/env sh | |
root_path=$1 | |
usage() { | |
echo "Usage: check_certificates.sh PATH" | |
echo "" | |
echo "Search for any certificate (*.pem, *.crt) in PATH then sort them by validity" | |
} |
This file contains 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
let page = 0; | |
const rxp = /bought (\d+|a) coffee/g; | |
const url = new URL("https://www.buymeacoffee.com/tGJba8O"); | |
url.searchParams.set('notification', '1'); | |
const gifts = []; | |
function addResult(text) { | |
gifts.push( ...[ ...text.matchAll(rxp) ].map(m => Number(m[1]) || 1) ); | |
const nbCoffees = gifts.reduce((p, n) => p + n, 0); |
This file contains 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
const SEED = 16777215; | |
const FACTOR = 49979693; | |
function stringToColor(str) { | |
let b = 64; | |
let d = 192; | |
let f = 0; | |
if (str.length > 0) { | |
for (var i = 0; i < str.length; i++) | |
str[i].charCodeAt(0) > d && (d = str[i].charCodeAt(0)), |
This file contains 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
#ifdef GL_ES | |
precision mediump float; | |
#endif | |
// glslsandbox uniforms | |
uniform float time; | |
uniform vec2 resolution; | |
uniform vec2 mouse; | |
// shadertoy globals |
This file contains 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
#!/usr/bin/env node | |
/* | |
node proxy-http.js [http_server_hostname] [http_server_port] [listening_port] | |
*/ | |
const http = require('http'); | |
const target = { | |
hostname: process.argv[2] || '127.0.0.1', |
This file contains 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
function sleep(milliseconds) { | |
var xhr = new XMLHttpRequest(); | |
// Open a non existing url | |
xhr.open('GET', location.protocol + '//sleep' + (new Date()).getTime(), false); | |
var blob = new Blob([ | |
"onmessage = function() { setTimeout(function() {postMessage('done');}, "+milliseconds+"); }"]); | |
var blobURL = window.URL.createObjectURL(blob); | |
var worker = new Worker(blobURL); | |
worker.onmessage = function() { |
This file contains 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
Processor Information: | |
Vendor: GenuineIntel | |
Speed: 2668 Mhz | |
8 logical processors | |
4 physical processors | |
HyperThreading: Supported | |
FCMOV: Supported | |
SSE2: Supported | |
SSE3: Supported | |
SSSE3: Supported |