Skip to content

Instantly share code, notes, and snippets.


Generating Authy passwords on other authenticators

There is an increasing count of applications which use Authy for two-factor authentication. However many users who aren't using Authy, have their own authenticator setup up already and do not wish to use two applications for generating passwords.

Since I use 1Password for all of my password storing/generating needs, I was looking for a solution to use Authy passwords on that. I couldn't find any completely working solutions, however I stumbled upon a gist by Brian Hartvigsen. His post had a neat code with it to generate QR codes (beware, through Google) for you to use on your favorite authenticator.

His method is to extract the secret keys using Authy's Google Chrome app via Developer Tools. If this was not possible, I guess people would be reverse engineering the Android app or something like that. But when I tried that code, nothing appeared on the screen. My gues


Lossless stream rip cheatsheet

This is a short cheatsheet to help you determine whether a release from Amazon, Hulu, or Netflix contains the lossless/untouched (as in no further loss of quality compared to what the streaming services provide) video/audio or not. Most newer P2P releases are correctly tagged, but for older releases, it cannot be reliably determined based on the tags alone.

In most cases, non-lossless rips from these services are screen captures (which, when done by professional releasers, should be high quality and contain little to no glitches – see the history section for details), but in some cases they may be simply reencoded from the untouched stream, for example to crop black bars or reencode from a higher-quality stream to achieve better quality. Also, generally the audio is untouched even when the video is not, but that's not always the case. There is no easy way to differentiate these cases, so I'm only describing what to look for in regards to lossless video streams, and for those

View gist:a2ccb548af24c8eef04603360faad8cc
> $mtl_roster_json = Invoke-WebRequest -Uri ""
> $mtl_roster = ConvertFrom-Json -InputObject $mtl_roster_json
> $mtl_roster.teams.roster.roster
person jerseyNumber position
------ ------------ --------
@{id=8469466; fullName=Ales Hemsky; link=/api/v1/people/8469466} 83 @{code=R; name=Right Wing; type=Forward; abbreviation=RW}
@{id=8470642; fullName=Shea Weber; link=/api/v1/people/8470642} 6 @{code=D; name=Defenseman; type=Defenseman; abbreviation=D}
@{id=8469521; fullName=Tomas Plekanec; link=/api/v1/people/8469521} 14 @{code=C; name=Center; type=Forward; abbreviation=C}
@{id=8471679; fullName=Carey Price; link=/api/v1/people/8471679} 31 @{code=G; name=Goalie; type=Goalie; abbreviation=G}
zouhair / *
Created Mar 2, 2016 — forked from leoherzog/*
A Bash Script to Make RSS Feeds into Kindle Books
View *

Grab a feed and make a Kindle book out of it's latest entry

This script downloads an RSS feed, assembles it's latest entry into a nice HTML file, downloads all of the assets required, generates a Kindle .mobi book with Amazon's official tool, sends me a Pushbullet notification that it worked, and uploads the .mobi book to my Dropbox.

If you wanted, you could then have a tool like this upload it to your Kindle wirelessly.


  • Copy and (below) to your working directory that you'd like the script to live
  • chmod +x
View .Xresources
XTerm*termName: xterm-256color
xterm*geometry: 82x20
xterm*faceName: xft::pixelsize=10:antialias=false
xterm*font: -misc-tamsyn-medium-r-normal--10-87-100-100-c-60-*
xterm*dynamicColors: true
xterm*utf8: 2
xterm*eightBitInput: true
xterm*saveLines: 512
xterm*scrollKey: true
xterm*scrollTtyOutput: true