Skip to content

Instantly share code, notes, and snippets.

AJ ONeal solderjs

Block or report user

Report or block solderjs

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@solderjs
solderjs / install-libdvdcss-macos.md
Last active Jan 21, 2019
Installing libdvdcss on macOS Sierra
View install-libdvdcss-macos.md

libdvdcss.pkg will no longer install on OS X (now macOS).

Here's how to build and install libdvdcss.2.dylib so that you can use it with, for example, VLC and/or Handbrake.

The old way

wget https://download.videolan.org/libdvdcss/1.2.11/macosx/libdvdcss.2.dylib
@solderjs
solderjs / group-ward-members.js
Last active Feb 13, 2017
Count ward members by last names grouped
View group-ward-members.js
var names = [];
var namesMap = {};
var manualChecks = [];
var $members = $('.batchphoto').find('.photoDirectoryName');
var maxGroupSize = Math.floor($members.length / 4);
maxGroupSize *= 1.10;
var groups = [{ name:'', size: 0, members: [] }, { name: '', size: 0, members: [] }, { name: '', size: 0, members: [] }, { name: '', size: 0, members: [] }];
var groupIndex = 0;
'abcdefghijklmnopqrstuvwxyz'.split('').forEach(function (ch) {
@solderjs
solderjs / 00-netflix-export-my-list.js
Last active Dec 12, 2017
Exported My List from NetFlix
View 00-netflix-export-my-list.js
// Go to https://www.netflix.com/browse/my-list
// Run this script:
(function(list){document.querySelectorAll('.title_card[aria-label]').forEach(function(item){list+='\n'+item.getAttribute('aria-label');});copy(list);console.log(list);}(''));
@solderjs
solderjs / tangent.md
Last active Sep 28, 2016
node.js tls muxer tangent
View tangent.md

Re: https://github.com/nodejs/node/issues/8752

Until node has QUIC support and firewalls are widely updated to allow encrypted udp on 443, https is the only reliable way to punch through. Because of the custom headers, bare OpenVPN is very easily blocked and running encrypted udp traffic even on 53 will get dropped by many firewalls.

The kinds of people that are technically illiterate enough to be using something like this instead of OpenVPN are the kind of people that won't be technically literate enough to choose a buggy ssh client - they'll be using standard OpenSSH or putty - and they'll need to use a generated config file with the necessary openssl ProxyCommand.

Also, for the technically literate that use OpenVPN they would be using something like this because they're already operating in a harsh environment and it's a very easy config file change to turn of the encryption to reduce the overhead.

In both cases, they must be wrapped in something with SNI or otherwise there's no way to reliably m

@solderjs
solderjs / tcp-http-spy.js
Last active Sep 4, 2018
Raw TCP and TLS to HTTP and HTTPS in node.js
View tcp-http-spy.js
'use strict';
var net = require('net');
var http = require('http');
var http80 = http.createServer(function (req, res) {
res.end('Hello, World!');
});
var tcp80 = net.createServer(function (client) {
View tifu-sudo-npm.md

STOP USING SUDO WITH NPM!!!!

But if you do, here's how to fix it:

sudo chown -R $(whoami) ~/node*                # ~/node_modules
sudo chown -R $(whoami) ~/.node*               # .node-gyp
sudo chown -R $(whoami) ~/.npm*                # .npm .npmrc
sudo chown -R $(whoami) /usr/local/*/*node*    # node node_modules
sudo chown -R $(whoami) /usr/local/*/*npm*     # npm
View pine64-node-sqlcipher.md

node.js with sqlcipher on pine64

pine64-image-debianmate-310101bsp.img

cat /etc/issue
Debian GNU/Linux 8 \n \l

View tone.md

How to generate an answering machine tone with Audacity

Generally an answering machine tone is a 1000 Hz sine wave that lasts 1 second.

Generate => Tone => OK
Sine Waveform
View daplie commercial script.txt
(good artists copy, great artists steal)
This is not the future I was promised.
storage devices are dumb machines and they make us act like dumb people.
have you tried syncing to the computer to make room?
Yes! We tried to sync to the computer.
You can’t perform that action at this time.