Skip to content

Instantly share code, notes, and snippets.

Felipe Amaral felipemeamaral

  • São Paulo, Brazil
Block or report user

Report or block felipemeamaral

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
View README.md

Objective-C on Linux

Just run:

wget -O - https://gist.github.com/felipemeamaral/5e5999f83b808fd478c40e3c9e7b5454/raw/install.sh | bash -
View lossless-stream-rip-cheatsheet.md

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, since tagging is not always consistent and therefore it's an unreliable way to determine this 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, you can be quite certain

View libtorrent and rtorrent on mac.sh
#!/bin/bash
# Installs the XCode command line tools if you don't have them
xcode-select --install
# Installs brew if you don't have it
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# Makes your account the owner of /usr/local, which is preferred on single user Macs
sudo chown -R `whoami` /usr/local
# Installs all the dependencies for building libtorrent and rtorrent
brew install automake libtool boost curl lzlib libsigc++ openssl pkg-config xmlrpc-c
# Uninstall libtorrent-rasterbar if you already have it
@felipemeamaral
felipemeamaral / remux
Created Jul 11, 2017 — forked from xf1/remux
Remuxing with eac3to
View remux
Remuxing
Why Remux Blu-rays?
-You use MPC-HC (or similar DShow players) and standard filters for playback. You can also use better quality renderers like Haali, EVR and madVR.
-You get the ease of playback of a re-encode without the quality loss. A double click off the .mkv will start the movie - no annoying warnings, loading screens, previews and setup menus.
-You don't have to deal with horribly bloated, unstable and expensive PowerDVD or Arcsoft playback software.
-You don't have to mess with ISO creation, correct BD folder structure, UDF and SPTD drivers, and image mounting every time you want to watch a movie.
-You never have to worry about the region code setting of a disc.
-You never have to worry about HDCP or PAP content protection.
-You never have to worry about your software player downsampling your audio - get full bit-depth and frequency resolution, 24bit/96kHz or higher, not 16/48.
View MacOS Sierra Dev Setup
#!/Library/Frameworks/Python.framework/Versions/2.7/bin/python
# Frok from https://github.com/Aerolab/setup/blob/master/setup.py
# -*- coding: utf-8 -*-
import os
import json
import urllib2
name = ''
email = ''
@felipemeamaral
felipemeamaral / install.sh
Created Dec 18, 2016 — forked from killtheliterate/install.sh
neobundle for neovim
View install.sh
#!/bin/sh
# Standalone installer for Unixs
# Original version is created by shoma2da
# https://github.com/shoma2da/neobundle_installer
# Installation directory
BUNDLE_DIR=~/.nvim/bundle
INSTALL_DIR=$BUNDLE_DIR/neobundle.vim
if [ -e $INSTALL_DIR ]; then
@felipemeamaral
felipemeamaral / config.fish
Created Feb 12, 2016 — forked from ronaldsuwandi/config.fish
My personal fish shell config for OS X (better blue colour for directory in dark terminal). Supports git branch and virtualfish for virtualenv
View config.fish
# nice light cyan color instead of dark blue
set -Ux LSCOLORS gxfxcxdxbxegedabagacad
function ls --description 'List contents of directory'
command ls -lhFG $argv
end
function df --description 'Displays disk free space'
command df -H $argv
end
View .Xdefaults
urxvt.termName: rxvt
urxvt.loginShell: true
urxvt*urlLauncher: /usr/bin/chromium
urxvt*perl-lib: /usr/lib/urxvt/perl/
urxvt*perl-ext-common: default,matcher,searchable-scrollback
urxvt*font: xft:DejaVu Sans Mono:pixelsize=10
urxvt*boldFont: xft:DejaVu Sans Mono:pixelsize=10
urxvt.scrollBar: false
urxvt.saveLines: 65535
urxvt.secondaryScroll: true
You can’t perform that action at this time.