Skip to content

Instantly share code, notes, and snippets.

View RupGautam's full-sized avatar

Rup Gautam RupGautam

View GitHub Profile
@RupGautam
RupGautam / makegif.sh
Last active April 10, 2016 04:41
Make gif from video file on OSX | makegif osx
#!/bin/sh
#Thank you @http://blog.pkh.me/p/21-high-quality-gif-with-ffmpeg.html
#TODO: - Decrease the output size, right now it is 8MB on 5 secs MP4 videos.
# - Use convert to decrease size??
palette="/tmp/palette.png"
filters="fps=10,scale=720:-1:flags=lanczos"
cask :v1 => 'airmail-beta' do
version :latest
sha256 :no_check
# hockeyapp.net is the official download host per the vendor homepage
url 'https://rink.hockeyapp.net/api/2/apps/84be85c3331ee1d222fd7f0b59e41b04?format=zip'
name 'Airmail - Beta'
homepage 'http://airmailapp.com/beta/'
license :gratis
defaults write com.divisiblebyzero.Spectacle MakeLarger -data 62706c6973743030d40102030405061819582476657273696f6e58246f626a65637473592461726368697665725424746f7012000186a0a40708101155246e756c6cd4090a0b0c0d0e0d0f596d6f64696669657273546e616d65576b6579436f64655624636c6173731000800280035a4d616b654c6172676572d2121314155a24636c6173736e616d655824636c6173736573585a4b486f744b6579a21617585a4b486f744b6579584e534f626a6563745f100f4e534b657965644172636869766572d11a1b54726f6f74800108111a232d32373c424b555a62696b6d6f7a7f8a939c9fa8b1c3c6cb0000000000000101000000000000001c000000000000000000000000000000cd
defaults write com.divisiblebyzero.Spectacle MakeSmaller -data 62706c6973743030d40102030405061819582476657273696f6e58246f626a65637473592461726368697665725424746f7012000186a0a40708101155246e756c6cd4090a0b0c0d0e0d0f596d6f64696669657273546e616d65576b6579436f64655624636c6173731000800280035b4d616b65536d616c6c6572d2121314155a24636c6173736e616d655824636c6173736573585a4b486f744b6579a21617585a4b486f744b6579584e534f626a6563745f100f4e534b
@RupGautam
RupGautam / mamp-command-line
Last active December 14, 2015 23:21
MAMP Server Command Line Tools
#MAMP Server Command Line Tools
Add these four lines to ```.bashrc``` or ```.zshrc```
```alias mamp-stop="sudo /Applications/MAMP/bin/startApache.sh"```
```alias mamp-start="sudo /Applications/MAMP/bin/stopApache.sh" ```
```alias mamp-mysql-start="sudo /Applications/MAMP/bin/startMysql.sh"```
@RupGautam
RupGautam / index.php
Last active December 17, 2015 04:38
Custom phpinfo page
<?php
// set the default timezone to use
date_default_timezone_set('America/Winnipeg');
// Utility functions
function prettyPrint(array $value)
{
echo "<pre>";
print_r($value);
echo "</pre>";
}
@RupGautam
RupGautam / Vagrantfile
Last active September 14, 2017 15:39
rtCamp EasyEngine Vagrant Auto Script -- This will auto install ubuntu/trusty64 + easyengine And setups up php site.
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure(2) do |config|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at
vagrantfile:
target: local
vm:
box: puphpet/debian75-x64
box_url: puphpet/debian75-x64
hostname: local.puphpet
memory: '512'
cpus: '1'
chosen_provider: virtualbox
network:
@RupGautam
RupGautam / brew.sh
Last active December 15, 2015 04:20
My brewing list | homebrew install apps single command
#!/usr/bin/env bash
# Install command-line tools using Homebrew.
# Ask for the administrator password upfront.
sudo -v
# Keep-alive: update existing `sudo` time stamp until the script has finished.
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
# Add `~/bin` to the `$PATH`
export PATH="$HOME/bin:$PATH";
export VAGRANT_HOME="/Volumes/Software/Vagrant"
# Load the shell dotfiles, and then some:
# * ~/.path can be used to extend `$PATH`.
# * ~/.extra can be used for other settings you don’t want to commit.
for file in ~/.{path,bash_prompt,exports,aliases,functions,extra}; do
[ -r "$file" ] && [ -f "$file" ] && source "$file";
done;
adobe-photoshop-cc
alfred
angry-ip-scanner
appcleaner
atom
betterzipql
bittorrent
broomstick
caffeine
calibre