Skip to content

Instantly share code, notes, and snippets.

View 7ombie's full-sized avatar
🏠
Working from home

7ombie

🏠
Working from home
  • Cambridgeshire, England
View GitHub Profile
@7ombie
7ombie / config.toml
Last active March 7, 2024 03:16
Backup of current Helix bindings (work in progress - see docs below config file).
[keys.insert]
S-ret = "commit_undo_checkpoint"
S-tab = "completion"
A-up = "expand_selection"
A-down = "shrink_selection"
A-left = "select_prev_sibling"
A-right = "select_next_sibling"
@7ombie
7ombie / letter_to_america.md
Last active November 18, 2023 01:41
The open letter that Osama bin Laden is believed to have dictated to America.

In the Name of Allah, the Most Gracious, the Most Merciful

Quran 22:39 Permission to fight (against disbelievers) is given to those (believers) who are fought against, because they have been wronged. And surely, Allah is able to give them victory.

Quran 4:76 Those who believe, fight in the Cause of Allah, and those who disbelieve, fight in the cause of Taghut (anything worshipped besides Allah, like Satan). So you fight against the friends of Satan. Ever feeble indeed is the plot of Satan.

Some American writers have published articles titled On what basis are we fighting?. These articles have generated a number of responses, some of which adhered to the truth, and were based on Islamic Law, while others did not. Here, we wanted to outline the truth - as an explanation and a warning - hoping for Allah's reward, seeking success and support from Him.

While seeking Allah's assistance, we form our reply, based on two questions, directed to the Americans:

@7ombie
7ombie / ping.js
Last active February 8, 2022 23:52
Simple script for testing the mean roundtrip time when pinging a worker thread (`postMessage`).
worker.onmessage = function() {
/* This handler responds to each message from the worker thread
by storing the total roundtrip time in milliseconds, continuing
to iterate until the `deltas` array is full. At that point, the
function computes the mean average time (ignoring the first two
samples, as the first is invalid (and will always be zero), and
the second (the first genuine sample) will always take about an
order of magnitude longer than normal). The handler finishes by
logging the mean, then the array of times, before returning and