- https://gitlab.com/qratorlabs/plag
- https://github.com/job/aggregate6
- https://github.com/flowchartsman/cidr-convert
- https://github.com/mhausenblas/cidrchk
- https://github.com/houqp/vpcstudio
- https://github.com/projectdiscovery/mapcidr
- https://github.com/FvDxxx/pfxaggr
- https://github.com/yl2chen/cidranger
- https://github.com/Kentik/patricia
- https://github.com/bgp/bgpq4
#!/bin/bash | |
## HOW TO RUN | |
# | |
# 1. Enter Recovery mode w. CMD+R | |
# 2. cd /Volumes/Macintosh\ HD | |
# 3. sh /Volumes/Macintosh\ HD/Users/disable.sh | |
## LOCATIONS | |
# |
# npm publish with goodies | |
# prerequisite: `npm install -g trash` | |
# `np` with an optional argument `patch`/`minor`/`major`/`<version>` | |
# defaults to `patch` | |
np() { | |
trash node_modules &>/dev/null; | |
git pull --rebase && | |
npm install && | |
npm test && | |
npm version ${1:-patch} && |
## ~/.mdpconf | |
port "6600" | |
music_directory "~/Music/" | |
playlist_directory "~/.mpd/playlists" | |
db_file "~/.mpd/mpd.db" | |
log_file "~/.mpd/mpd.log" | |
pid_file "~/.mpd/mpd.pid" | |
state_file "~/.mpd/state" | |
#bind_to_address "~/.mpd/mpd.sock" |
# Basically the nginx configuration I use at konklone.com. | |
# I check it using https://www.ssllabs.com/ssltest/analyze.html?d=konklone.com | |
# | |
# To provide feedback, please tweet at @konklone or email eric@konklone.com. | |
# Comments on gists don't notify the author. | |
# | |
# Thanks to WubTheCaptain (https://wubthecaptain.eu) for his help and ciphersuites. | |
# Thanks to Ilya Grigorik (https://www.igvita.com) for constant inspiration. | |
server { |
# Disable / Enable Dashboard | |
# Settings / Mission control / Dashboard (selector) - Off | |
# or | |
# completely disable: | |
defaults write com.apple.dashboard mcx-disabled -boolean YES; killall Dock | |
# enable again: | |
#defaults write com.apple.dashboard mcx-disabled -boolean NO; killall Dock | |
defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool false | |
defaults write NSGlobalDomain NSWindowResizeTime -float 0.001 |
#!/bin/bash | |
usage() { | |
cat << EOF | |
Usage: $0 [OPTION]... COMMAND | |
Execute the given command in a way that works safely with cron. This should | |
typically be used inside of a cron job definition like so: | |
* * * * * $(which "$0") [OPTION]... COMMAND | |
Arguments: |
-- Thank @sbengo to figure out foreign_keys constraints is defaults to false in sqlite | |
-- Enable to delete logs by cascading delete | |
PRAGMA foreign_keys = ON; | |
WITH n_build_ids_per_repo as ( | |
SELECT build_id | |
FROM ( | |
SELECT | |
build_id, | |
build_repo_id, |
-
Libuv has a default thread pool size of 4, and uses a queue to manage access to the thread pool - the upshot is that if you have 5 long-running DB queries all going at the same time, one of them (and any other asynchronous action that relies on the thread pool) will be waiting for those queries to finish before they even get started.
-
Note, however, that tuning UV_THREADPOOL_SIZE may make more sense for a standalone application like a CLI written in Node.js. If you are standing up a bunch of Node.js processes using the cluster module then I would be surprised if tuning UV_THREADPOOL_SIZE was particularly beneficial for you. But if your application resembles the web tooling benchmarks then tuning UV_THREADPOOL_SIZE may help with performance.
This entire guide is based on an old version of Homebrew/Node and no longer applies. It was only ever intended to fix a specific error message which has since been fixed. I've kept it here for historical purposes, but it should no longer be used. Homebrew maintainers have fixed things and the options mentioned don't exist and won't work.
I still believe it is better to manually install npm separately since having a generic package manager maintain another package manager is a bad idea, but the instructions below don't explain how to do that.
Installing node through Homebrew can cause problems with npm for globally installed packages. To fix it quickly, use the solution below. An explanation is also included at the end of this document.