Skip to content

Instantly share code, notes, and snippets.

View gyaresu's full-sized avatar

Gareth gyaresu

View GitHub Profile
@DanHerbert
DanHerbert / fix-homebrew-npm.md
Last active November 27, 2024 13:36
Instructions on how to fix npm if you've installed Node through Homebrew on Mac OS X or Linuxbrew

OBSOLETE

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.

Fixing npm On Mac OS X for Homebrew Users

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.

@machinaut
machinaut / fm_example.grc
Created August 12, 2014 21:15
FM Receiver gnuradio example for the HackRF One SDR
<?xml version='1.0' encoding='ASCII'?>
<flow_graph>
<timestamp>Tue Aug 12 14:13:51 2014</timestamp>
<block>
<key>options</key>
<param>
<key>id</key>
<value>fm_receiver</value>
</param>
<param>
@ericelliott
ericelliott / essential-javascript-links.md
Last active March 22, 2025 17:28
Essential JavaScript Links
@Zulko
Zulko / rapunzel_moviepy.py
Last active May 1, 2023 21:22
Tangled + MoviePy
"""
This creates the following GIF, where the text appears to be "embedded"
in the video and "disappears" behind rapunzel.
http://i.imgur.com/gxEHfLX.gif
"""
from moviepy.editor import *
import numpy as np
import skimage.morphology as skm
@Zulko
Zulko / Eugene_hey.py
Created February 9, 2015 20:23
Eugene saying hey!
# Result: http://i.imgur.com/thrh1TU.gif
from moviepy.editor import *
# We start with a looping gif, and we will add some text
clip = VideoFileClip("eugene.gif").speedx(0.7) # slow down a little
txt = (TextClip("Hey", fontsize=78, font='Impact-Normal',
color='yellow', stroke_color='black',
stroke_width=3, kerning=1.5)
@epixoip
epixoip / 8x980_updated.md
Last active October 25, 2017 03:16
** UPDATED 4/16 ** 8x GTX 980 cudaHashcat Benchmark

8x GTX 980 cudaHashcat Benchmark

Product: Sagitta Brutalis 980 (PN S2480-GTX-980)

Software: cudaHashcat 1.36b25, ForceWare 346.35

Accelerator: 8x Nvidia GTX 980 reference design, +250 clock offset

Highlights

@kennwhite
kennwhite / vpn_psk_bingo.md
Last active May 16, 2025 20:51
Most VPN Services are Terrible

Most VPN Services are Terrible

Short version: I strongly do not recommend using any of these providers. You are, of course, free to use whatever you like. My TL;DR advice: Roll your own and use Algo or Streisand. For messaging & voice, use Signal. For increased anonymity, use Tor for desktop (though recognize that doing so may actually put you at greater risk), and Onion Browser for mobile.

This mini-rant came on the heels of an interesting twitter discussion: https://twitter.com/kennwhite/status/591074055018582016

{
"plugins": [
"react"
],
"ecmaFeatures": {
"jsx": true
},
// I want to use babel-eslint for parsing!
"parser": "babel-eslint",
"env": {
@gyaresu
gyaresu / gist:1848acc320e4c441d995
Last active August 29, 2015 14:21
Nodeschool Vancouver 2015-07-25

Dear NodeSchoolers,

Hi!

I'm { Gareth: https://twitter.com/gyaresu }

I'll be one of the mentors helping out on International NodeBots day and I must say, I'm REALLY EXCITED!

Teaching is the best way to learn, and I love hanging out with people who are brave enough to learn new things. So thanks!

@gyaresu
gyaresu / gist:8ec65881ef162bf879ec
Created May 23, 2015 22:23
How to catch a stream error (using through2)
var tr = require('through2')
function write(buffer, encoding, next) {
try {
this.push(buffer.toUpperCase()) //buffer needs .toString()
} catch (e) {
this.emit('error', e)
}
next()
}