This file contains hidden or 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
// ==UserScript== | |
// @name Fake News Blocker | |
// @namespace http://tampermonkey.net/ | |
// @version 2024-04-04 | |
// @description try to take over the world! | |
// @author You | |
// @match https://currentstatus.io/ | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=currentstatus.io | |
// @grant none | |
// ==/UserScript== |
This file contains hidden or 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 python | |
# Ported to Python from http://www.vim.org/scripts/script.php?script_id=1349 | |
print("Color indexes should be drawn in bold text of the same color.") | |
print() | |
colored = [0] + [0x5f + 40 * n for n in range(0, 5)] | |
colored_palette = [ | |
"%02x/%02x/%02x" % (r, g, b) | |
for r in colored |
This file contains hidden or 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
/* | |
I've wrapped Makoto Matsumoto and Takuji Nishimura's code in a namespace | |
so it's better encapsulated. Now you can have multiple random number generators | |
and they won't stomp all over eachother's state. | |
If you want to use this as a substitute for Math.random(), use the random() | |
method like so: | |
var m = new MersenneTwister(); |
This file contains hidden or 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
# This version works with CF WAF (using zone rulesets) and obsoletes previous | |
# versions. This works will all CF account types. This action depends on curl | |
# and jp and will add/remove IPs from the $known_hostile_ips list. Creating the | |
# WAF rules need only be done once per zone. Creating the list need only be done | |
# once per account. | |
# | |
# Author: Bernard Dickens III (Xunnamius) | |
# | |
# Inspired by work from: Mike Rushton | |
# https://github.com/fail2ban/fail2ban/blob/master/config/action.d/cloudflare.conf |
This file contains hidden or 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
x = require('stream-json') | |
chain = require('stream-chain').chain | |
callbacks = []; | |
writable = new stream.Writable({ | |
objectMode: true, | |
write(c, _e, cb) { | |
console.log('_write'); | |
callbacks.push([c, cb]); |
This file contains hidden or 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
/* eslint-disable no-console */ | |
import { setTimeout as delay } from 'node:timers/promises'; | |
import { Readable, Writable } from 'node:stream'; | |
import { createWriteStream, renameSync } from 'node:fs'; | |
import { writeFile } from 'node:fs/promises'; | |
import { randomBytes } from 'node:crypto'; | |
import { default as StreamFork } from 'stream-fork'; | |
import { default as StreamChain } from 'stream-chain'; | |
import { default as StreamJson } from 'stream-json'; | |
import { default as StreamJsonDisassembler } from 'stream-json/Disassembler.js'; |
NewerOlder