Skip to content

Instantly share code, notes, and snippets.

View RupGautam's full-sized avatar

Rup Gautam RupGautam

View GitHub Profile
@RupGautam
RupGautam / icon-gen.sh
Last active November 9, 2015 00:14
Generates required xcode icons for development.
#!/bin/bash
# Auto generates required ios icons including splash images for development.
#______________________________________________________________________________#
# Copyright (C) 2014 Wenva <lvyexuwenfa100@126.com>
#______________________________________________________________________________#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
ack
aircrack-ng
ant
apr
apr-util
archey
autoconf
automake
bash
bash-completion2
adobe-photoshop-cc
alfred
angry-ip-scanner
appcleaner
atom
betterzipql
bittorrent
broomstick
caffeine
calibre
# 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;
@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 &
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 / 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
@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 / 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"```
defaults write com.divisiblebyzero.Spectacle MakeLarger -data 62706c6973743030d40102030405061819582476657273696f6e58246f626a65637473592461726368697665725424746f7012000186a0a40708101155246e756c6cd4090a0b0c0d0e0d0f596d6f64696669657273546e616d65576b6579436f64655624636c6173731000800280035a4d616b654c6172676572d2121314155a24636c6173736e616d655824636c6173736573585a4b486f744b6579a21617585a4b486f744b6579584e534f626a6563745f100f4e534b657965644172636869766572d11a1b54726f6f74800108111a232d32373c424b555a62696b6d6f7a7f8a939c9fa8b1c3c6cb0000000000000101000000000000001c000000000000000000000000000000cd
defaults write com.divisiblebyzero.Spectacle MakeSmaller -data 62706c6973743030d40102030405061819582476657273696f6e58246f626a65637473592461726368697665725424746f7012000186a0a40708101155246e756c6cd4090a0b0c0d0e0d0f596d6f64696669657273546e616d65576b6579436f64655624636c6173731000800280035b4d616b65536d616c6c6572d2121314155a24636c6173736e616d655824636c6173736573585a4b486f744b6579a21617585a4b486f744b6579584e534f626a6563745f100f4e534b