Skip to content

Instantly share code, notes, and snippets.

Flash Flood Warning
NJC003-013-017-031-039-NYC005-047-061-081-085-119-020700-
/O.NEW.KOKX.FF.W.0043.210902T0354Z-210902T0700Z/
/00000.0.ER.000000T0000Z.000000T0000Z.000000T0000Z.OO/
BULLETIN - EAS ACTIVATION REQUESTED
Flash Flood Warning
National Weather Service New York NY
1154 PM EDT Wed Sep 1 2021
@bwDraco
bwDraco / zramswap-off.sh
Created March 13, 2019 21:25
Simple systemd service to automate turning zram swap on and off
#!/bin/sh
set -e
swapoff /dev/zram0
echo 1 > /sys/block/zram0/reset
@bwDraco
bwDraco / secure-erase.sh
Last active January 7, 2023 17:52
Simple script to secure-erase drives, based on https://ata.wiki.kernel.org/index.php/ATA_Secure_Erase
#!/bin/bash
# SPDX-License-Identifier: Apache-2.0
################################################################################
# secure-erase.sh
# Copyright 2018-2023 bwDraco - Brian Wong
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@bwDraco
bwDraco / sandbox.html
Created January 16, 2018 22:13
JavaScript sandbox with dynamic loading for rapid testing of code
<!DOCTYPE html>
<html>
<head>
<title>Sandbox</title>
<meta charset="UTF-8">
<link rel="stylesheet" href="/JSDev/styles.css">
<script>
function loadScript(location, runOnLoad) {
// Check for existing script element and delete it if it exists
var js = document.getElementById("sandboxScript");
@bwDraco
bwDraco / SETimeline.user.js
Last active April 6, 2016 07:47
Updated version of Stack Exchange timeline link Greasemonkey user script
// ==UserScript==
// @name Stack Exchange Timeline Link
// @namespace stackoverflow
// @description Add a 'timeline' link to Stack Exchange/Stack Overflow posts - based on http://stackapps.com/questions/2047/add-timeline-and-revisions-links/4238#4238
// @include http://*stackexchange.com/*
// @include http://*stackoverflow.com/*
// @include http://*serverfault.com/*
// @include http://*superuser.com/*
// @include http://*askubuntu.com/*
// @include http://*mathoverflow.net/*