Skip to content

Instantly share code, notes, and snippets.

View MitMaro's full-sized avatar
🦀
Rewritten in Rust

Tim Oram MitMaro

🦀
Rewritten in Rust
View GitHub Profile
var _ = require('lodash')
_.each(
_.uniqBy(_.flatMap(
_.merge(_.groupBy(_.keys(_), _.head), _.groupBy(_.keys(_), _.last)),
_.rearg(_.over(_.identity, _.toUpper), _.toInteger(_.stubTrue()))
)),
_.flow(
_.over(_.stubObject, _.identity, _.constant),
_.spread(_.set),
@daffl
daffl / app.js
Last active January 9, 2017 16:27
Feathers default hooks
const feathers = require('feathers');
const hooks = require('feathers-hooks');
const app = feathers().configure(hooks());
// Add a service mixin
app.mixins.push(function(service) {
service.before(function() {
console.log('Before all default hook is running');
});
@jult
jult / blockpeers.sh
Last active March 5, 2024 07:33
blocking p2p peer snoopers and evil corp (for Tixati IP filter and such)
#!/bin/sh
# This script runs every other night at 04:56 CET on a webserver I maintain
# Results are always at: https://jult.net/block.txt ( or https://jult.net/block.txt.gz )
# And much smaller, stripped of BS; https://jult.net/bloc.txt
# For use in Tixati IP filter: https://jult.net/bloc.txt.gz !!!
# And finally a txt file with just the bold IP-ranges: https://jult.net/bl.txt (or https://jult.net/bl.txt.gz )
# Download open block-lists, unpack, filter:
curl -s https://www.iblocklist.com/lists.php | grep -A 2 Bluetack | xargs wget -qO - --limit-rate=500k | gunzip -f | egrep -v '^#' > /tmp/xbp
@XVilka
XVilka / TrueColour.md
Last active July 9, 2024 23:28
True Colour (16 million colours) support in various terminal applications and terminals

THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.

PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!

@johntyree
johntyree / getBlockLists.sh
Last active June 4, 2024 12:30
Make one large blocklist from the bluetack lists on iblocklist.com
#!/usr/bin/env sh
# Download lists, unpack and filter, write to stdout
curl -s https://www.iblocklist.com/lists.php \
| sed -n "s/.*value='\(http:.*=bt_.*\)'.*/\1/p" \
| xargs wget -O - \
| gunzip \
| egrep -v '^#'
@kogakure
kogakure / .gitignore
Last active December 17, 2023 08:21
Git: .gitignore file for LaTeX projects
*.acn
*.acr
*.alg
*.aux
*.bak
*.bbl
*.bcf
*.blg
*.brf
*.bst