Skip to content

Instantly share code, notes, and snippets.

View yerffejytnac's full-sized avatar

Jeffrey yerffejytnac

View GitHub Profile
@yerffejytnac
yerffejytnac / clean_install
Created January 13, 2014 06:11
Clean installation TODOs for Mavericks 10.9.1
Install command-line tools
xcode-select --install
Install homebrew
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
brew doctor
brew tap homebrew/dupes
@yerffejytnac
yerffejytnac / gist:27d69315ac1d70bf475a
Created June 7, 2014 15:39
Brew install of PostgreSQL and MongoDB on OS X 10.10 Yosemite (Workaround)

Fire up terminal: sudo vim /System/Library/CoreServices/SystemVersion.plist and enter your password...

At the bottom of SystemVersion.plist, change:

<key>ProductVersion</key> <string>10.10</string

to:

server master % g pull
Already up-to-date.
server master % make deps
go get
# server
./api.go:27: undefined: Asset
./api.go:134: undefined: Asset
make: *** [deps] Error 2
server master % make dev
rm -f bindata.go
@yerffejytnac
yerffejytnac / gist:5cd35bb6b91413000285
Created October 14, 2014 18:07
nginx config for ember-cli
server {
listen 80;
server_name domain.name.com;
charset utf-8;
client_max_body_size 128M;
client_body_temp_path /tmp/nginx 1 2;
root /path/to/app/current;
location / {
rewrite ^ /index.html break;
}
### Keybase proof
I hereby claim:
* I am cantyjeffrey on github.
* I am cantyjeffrey (https://keybase.io/cantyjeffrey) on keybase.
* I have a public key whose fingerprint is 99FF 1CF3 D084 CE48 205B DD93 2DDF A585 BFC0 3811
To claim this, I am signing this object:
@yerffejytnac
yerffejytnac / gist:d4fab04ba1978ee4736a
Created May 19, 2015 00:15
ember 2.0 cheat sheet

ember new **project**


bower install components/ember#canary components/ember-data#canary --save

config/environment.js:


@yerffejytnac
yerffejytnac / geolocation.js
Created July 1, 2015 14:56
Geolocation Service
import Ember from 'ember';
var geolocation;
if ('geolocation' in navigator) {
geolocation = navigator.geolocation;
}
export default Ember.Service.extend({
maximumAge: 30000,
@yerffejytnac
yerffejytnac / userChrome.css
Last active November 28, 2017 00:21
Firefox Dev Tools (v57+) Font Overrides/Styles
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document regexp("chrome://browser/content/devtools/**/.*"){
.devtools-monospace #root [role="treeitem"] {
font-family: 'Operator Mono SSm Lig', serif !important;
font-size: 11px !important;
line-height: 16px !important;
-moz-osx-font-smoothing: grayscale !important;
letter-spacing: initial !important;
}
}
@yerffejytnac
yerffejytnac / m3u8-to-mp4.md
Created December 8, 2017 19:59 — forked from tzmartin/m3u8-to-mp4.md
m3u8 stream to mp4 using ffmpeg

1. Copy m3u8 link

Alt text

2. Run command

echo "Enter m3u8 link:";read link;echo "Enter output filename:";read filename;ffmpeg -i "$link" -bsf:a aac_adtstoasc -vcodec copy -c copy -crf 50 $filename.mp4
let scroll = 0;
function scrollToEnd() {
setTimeout(function() {
if (scroll !== document.body.scrollHeight) {
scroll = document.body.scrollHeight;
window.scrollTo(0, document.body.scrollHeight);
scrollToEnd();
}
}, 3000);
}