Skip to content

Instantly share code, notes, and snippets.


Akinjide Bankole akinjide

View GitHub Profile
foowaa / gist:ab0bb1a21039a0ea24cffcf83a0d3ab1
Last active Mar 23, 2020 — forked from tayvano/gist:6e2d456a9897f55025e25035478a3a50
complete list of ffmpeg flags / commands
View gist:ab0bb1a21039a0ea24cffcf83a0d3ab1
ffmpeg [global_options] {[input_file_options] -i input_url} ... {[output_file_options] output_url} ...
Originall From: Posted 2015-05-29
This is the complete list that’s outputted by ffmpeg when running ffmpeg -h full.
usage: ffmpeg [options] [[infile options] -i infile]… {[outfile options] outfile}…
Getting help:
-h — print basic options
View image-queue.js
'use strict';
// Dependencies
const gcloud = require('google-cloud', {
projectId: 'sara-bigquery',
keyfileName: 'keyfile.json'
const vision =;
const fs = require('fs');
const async = require('async');
View react-lifecycle-parent-child.jsx
import React from "react";
import { render } from "react-dom";
const ParentComponent = React.createClass({
getDefaultProps: function() {
console.log("ParentComponent - getDefaultProps");
getInitialState: function() {
console.log("ParentComponent - getInitialState");
return { text: "" };
View .git-commit-template.txt
# Type(<scope>): <subject>
# <body>
# <footer>
# Type should be one of the following:
# * feat (new feature)
# * fix (bug fix)
# * docs (changes to documentation)
colinstein /
Last active May 13, 2021
Encrypt/Decrypt a File using your SSH Public/Private Key on Mac OS X

A Guide to Encrypting Files with Mac OS X

This guide will demonstrate the steps required to encrypt and decrypt files using OpenSSL on Mac OS X. The working assumption is that by demonstrating how to encrypt a file with your own public key, you'll also be able to encrypt a file you plan to send to somebody else using their private key, though you may wish to use this approach to keep archived data safe from prying eyes.

Too Long, Didn't Read

Assuming you've already done the setup described later in this document, that is the public key you want to use, that id_rsa is the private key the recipient will use, and secret.txt is the data you want to transmit…


$ openssl rand 192 -out key
$ openssl aes-256-cbc -in secret.txt -out secret.txt.enc -pass file:key
kmaida / dynamicPagRepeatAngular.html
Last active Dec 2, 2020
AngularJS - Dynamic pagination on ng-repeat with search/filtering. Use with ui.bootstrap
View dynamicPagRepeatAngular.html
<html lang="en" ng-app="myApp">
<meta charset="utf-8">
<title>Dynamic Pagination w/ Filtering</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="Kim Maida">
<!-- JS Libraries -->
fideloper /
Last active Jul 15, 2018
Setup Vim+Vundle+Solarized+Tmux in a Vagrant Ubuntu box. This goes with my article on Vim+Tmux here:
#!/usr/bin/env bash
# Bash script to automate Vim+Tmux install as written about here:
# Test if Git is installed.
# Installing Git is not the job of this script
git --version 2>&1 >/dev/null
netpoetica / Setting up Nginx on Your Local
Last active Apr 27, 2021
Setting up Nginx on Your Local System
View Setting up Nginx on Your Local

#Setting up Nginx on Your Local System ###by Keith Rosenberg

##Step 1 - Homebrew The first thing to do, if you're on a Mac, is to install homebrew from

The command to type into terminal to install homebrew is:

ruby -e "$(curl -fsSL"
View tmux-cheatsheet.markdown

tmux shortcuts & cheatsheet

start new:


start new with session name:

tmux new -s myname
View tmux_cheatsheet.markdown

tmux cheatsheet

As configured in my dotfiles.

start new:


start new with session name: