Skip to content

Instantly share code, notes, and snippets.

@drzax
drzax / bug.svelte
Created August 29, 2023 01:01
A formatting bug in prettier-plugin-svelte
View bug.svelte
<div>
<!-- this is duplicated on format -->
<style></style>
</div>
@drzax
drzax / readme.md
Last active January 28, 2020 23:26
Quick and dirty twitter scraper.
View readme.md
  1. Get to the page with tweets you want to scrape.
  2. Throw the content of scrape.js into the console.
  3. console.log(JSON.stringify(Array.from(captured).map(d =&gt; d[1]), null, 2))
@drzax
drzax / kill.sh
Created January 25, 2018 06:21 — forked from colingourlay/kill.sh
Kill McAfee
View kill.sh
sudo /usr/local/McAfee/AntiMalware/VSControl stopoas
sudo killall VShieldService
sudo killall VShieldScanner
View index.js
/** @jsx Preact.h */
import Preact from 'preact';
import Stage from './components/stage';
const container = document.querySelector('[data-encryption-explainer]');
const stage = container.querySelector('.scrollyteller-stage');
// Get rid of support message.
document.querySelector('.interactive_support_msg').parentNode.remove();
@drzax
drzax / iptv-to-hls.sh
Created June 1, 2017 05:24
IPTV to HTTP live streaming
View iptv-to-hls.sh
#!/bin/bash
while true; do
currTime=`date +%Y%m%d%H%M`
if [ "$currTime" -ge 201507081658 -a "$currTime" -le 201507082300 ]; then
echo "$currTime: Stream should be on. Start ffmpeg if the process does not exist"
if [ "$(pidof ffmpeg)" ]; then
echo "$currTime: ffmpeg already running."
sleep 10
else
View cricket
#!/usr/bin/env bash
open -n "/Applications/VLC.app" udp://@239.193.4.128:5000
/Applications/VLC.app/Contents/MacOS/VLC --no-audio udp://@239.193.4.70:5000 &
View data.rive
+ [*] who is (@candidate) [*]
- <call>candidate-info:who <star></call>
+ [*] who (@candidate) is [*]
@ who is <star>
+ [*] what [*] about [*] (@candidate) [*]
@ who is <star>
+ [*] what [*] (@candidate) [*] (electorate|seat) [*]
View keybase.md

Keybase proof

I hereby claim:

  • I am drzax on github.
  • I am drzax (https://keybase.io/drzax) on keybase.
  • I have a public key ASAu0GD9qAR89fvoGxk9gVM0ei1B1Knd_1a62ynvZ7unygo

To claim this, I am signing this object:

@drzax
drzax / .block
Last active December 6, 2023 16:28
Narrative Charts
View .block
license: mit
scrolling: true
height: 300
@drzax
drzax / README.md
Last active March 3, 2016 22:43 — forked from colingourlay/esnextbin.md
esnextbin sketch
We couldn’t find that file to show.