Skip to content

Instantly share code, notes, and snippets.

View mike623's full-sized avatar

404 Not Found mike623

View GitHub Profile
ffmpeg -i intro.mov -vf "boxblur=5:1" intro-blur.mov
@mike623
mike623 / iterm2.md
Created March 13, 2016 15:57
iterm2 cheatsheet

Tabs and Windows

Function Shortcut
Previous Tab + Left Arrow
Next Tab + Right Arrow
Go to Tab + Number
Go to Window + Option + Number
Go to Split Pane by Direction + Option + Arrow
Go to Split Pane by Order of Use + ] , + [
@mike623
mike623 / .eslintrc.yml
Created March 11, 2016 08:47 — forked from dferber90/.eslintrc.yml
Example setup of ESLint-plugin-Meteor with AirBnB's code style
# enable ES6
parserOptions:
ecmaVersion: 6
sourceType: "module"
ecmaFeatures:
jsx: true # enable React's JSX
# register plugins
plugins:
- meteor
@mike623
mike623 / orphancheck.sh
Created January 30, 2016 11:01 — forked from esaborit4code/orphancheck.sh
Bash script to find unused images within a project's folder. Based on Volomike's script at http://stackoverflow.com/a/8174681
#!/bin/bash
# Based on Volomike's script at http://stackoverflow.com/a/8174681
MYPATH=$1
ALL_IMAGES=$MYPATH/all_images
UNUSED_IMAGES=$MYPATH/unused_images
echo "" > $ALL_IMAGES
for format in jpg jpeg png gif; do
<template name="ForgotPassword">
<form action="/forgot" id="forgotPasswordForm" method="post">
<input id="forgotPasswordEmail" type="text" name="email" placeholder="Email Address">
<input class="btn-submit" type="submit" value="Send">
</form>
<!-- end #forgot-password-form -->
</template>
@mike623
mike623 / class.es6.js
Last active November 16, 2015 16:56 — forked from dferber90/class.es6.js
Class
// ES6
class Tweet {
constructor (doc) {
_.extend(this, doc);
}
}
Tweets = new Mongo.Collection('tweets', {
transform (doc) {
return new Tweet(doc);
@mike623
mike623 / meteor-get-real-ip
Created November 9, 2015 09:11 — forked from iDoMeteor/meteor-get-real-ip
Gets the DDP connections true IP address by analyzing HTTP forwarded count from the Meteor.connection object. Stripped from iDM Connection Log.
Meteor.methods({
// Get the connections *real* IP
getConnectionIP: function () {
// No need to make others wait
this.unblock();
// Locals
var conn = this.connection;
// meteor add iron:router
// https://github.com/EventedMind/iron-router/blob/devel/Guide.md#route-options
Router.route('/post/:_id', {
// The name of the route.
// Used to reference the route in path helpers and to find a default template
// for the route if none is provided in the "template" option. If no name is
// provided, the router guesses a name based on the path '/post/:_id'
name: 'post.show',