This utility helps replay a statistically significant number of HTTP requests against a service (serially) which are enough to give significance to two-decimal places.
replay-http {url} [{headers_path} {payload_path} {http_method}]
#!/bin/bash | |
sudo tar -xzf ~/Downloads/VSCodium-linux-x64*.tar.gz -C . && rm ~/Downloads/VSCodium-linux-x64* |
name: Docker Image CI | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: |
#include<stdio.h> | |
#include<math.h> | |
#include <stdint.h> | |
#include <string.h> | |
#if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ | |
#define for_endian(size) for (int i = 0; i < size; ++i) | |
#elif __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ | |
#define for_endian(size) for (int i = size - 1; i >= 0; --i) |
<script type="text/javascript"> | |
(function() { | |
/* | |
* Helper to extract FullStory Org code from URL when used in a HTML input element | |
*/ | |
const SCHEME_INDICATOR = '://'; | |
const URL_PATH_SEPARATOR = '/'; | |
const FULLSTORY_DOMAIN_INDICATOR = 'app.fullstory.com'; | |
document.querySelector('#fullstory_org_code').addEventListener('input', function(event) { |
/* | |
* Used via https://chrome.google.com/webstore/detail/user-javascript-and-css/nbhcbdghjpllgmfilhnhkllmkecfmpld | |
* to embed JS in all web-pages that are compliant to enable keyboard-navigation of blog posts | |
*/ | |
(function() { | |
window.addEventListener('keydown', function(e) { | |
switch(e.key) { | |
case 'Left': // IE11 BS | |
case 'ArrowLeft': | |
var link = document.querySelector('a[rel="prev"], .prev, #previtem'); |
export EDITOR="code --wait" | |
# export EDITOR="codium --wait" | |
# export EDITOR="atom --wait" | |
# export EDITOR="nano --wait" | |
# export EDITOR="vi --wait" | |
# export EDITOR="sublime --wait" |
#!/bin/bash | |
if [ "$EUID" -ne 0 ] | |
then echo "Must be root" | |
exit | |
fi | |
apt-get update -y | |
apt-get upgrade -y | |
apt-get dist-upgrade -y |
<?php | |
const OPTION_DEFAULTS = [ | |
'lang' => 'en', | |
'meta' => true, | |
'js' => true, | |
'title' => 'Redirection notice', | |
'link_sentence' => 'If you are not redirected automatically, follow <a href="%s">%s</a>', | |
'link_label' => 'this link', | |
'head_extra' => '<link rel="stylesheet" href="/css/style.css" />', |
#!/bin/sh | |
#setup dependencies | |
sudo apt-get install --reinstall linux-headers-generic build-essential | |
#get patched drivers | |
wget http://www.lewiscowles.co.uk/dls/MT7601U-14.04-patched.tar -O - | tar -x | |
cd MT7601U-14.04-patched | |
# build and install |