Skip to content

Instantly share code, notes, and snippets.

@ishu3101
ishu3101 / albert_install.sh
Created April 26, 2015 09:06
Albert is a simple launcher for linux inspired by Alfred found on the Mac. See https://github.com/ManuelSchneid3r/albert for information
sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install albert
@ishu3101
ishu3101 / dev_setup.ps1
Created May 4, 2015 07:51
Setup Windows Development Environment using scoop (A command-line installer for Windows). See http://scoop.sh/ for more information.
# utils
scoop install 7zip curl sudo git openssh coreutils grep sed less wget vim
# install programming languages to all users
scoop install python27 python ruby ruby19 go nodejs php --global
# make these available to system processes
sudo scoop install git ruby postgres --global
# just for me
@ishu3101
ishu3101 / c#_dev_setup.ps1
Created May 17, 2015 05:05
Setup csharp (c#) development environment on Windows using Chocolatey.
# write and execute C# with a simple text editor.
choco install scriptcs
# interactive interpreter for C#
choco install cshell
@ishu3101
ishu3101 / bugmenot-bookmarklet.js
Created May 21, 2015 06:00
BugMeNot Bookmarklet - Takes the URL of the current tab and finds any shared login using bugmenot for that site and opens in a new tab.
javascript:void(window.open("http://www.bugmenot.com/view/" +window.location.hostname))
@ishu3101
ishu3101 / atom_setup.sh
Last active August 29, 2015 14:21
Quickly Install Packages for the Atom Text Editor
# Preview Anything
apm install preview-plus
# Beautify your code
apm install atom-beautify
# easy access and switching between projects in Atom like sublime text
apm install project-manager
# search various sites in your default browser from atom
@ishu3101
ishu3101 / mac_software.sh
Created May 30, 2015 01:37
Quickly install Mac Software using Homebrew
#!/bin/sh
# install the xcode Command Line Tools
xcode-select --install
# install homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# install homebrew-cask
brew tap phinze/homebrew-cask
@ishu3101
ishu3101 / os_settings.sh
Last active August 29, 2015 14:22
Change Preference/Settings in Mac using the terminal
# always show tabs in terminal
defaults write com.Apple.Terminal ShowTabBar 1
# enable quick look of folders
defaults write com.apple.finder QLEnableXRayFolders -boolean YES
# allow quitting finder via ⌘ + Q; doing so will also hide desktop icons
defaults write com.apple.finder QuitMenuItem -bool YES; killall Finder
# show hidden files
@ishu3101
ishu3101 / software_setup.ps1
Last active March 15, 2016 02:52
Install Software on Windows using pbox - Windows Package Manager written in java. See http://pbox.me/ for more information.
# Install Software on Windows using pbox - Windows Package Manager written in java. See http://pbox.me/ for more information.
# http://codeforces.com/blog/entry/18274
# browsers
pbox install firefox
pbox install chrome
# text editor
pbox install notepadplusplus
pbox install sublimetext2
@ishu3101
ishu3101 / web_searches.csv
Last active July 11, 2021 03:32
Web Searches
google https://www.google.com/search?q={query}
google lucky https://www.google.co.nz/search?q={query}&btnI
google image https://www.google.com/search?q={query}&tbm=isch
duckduckgo https://duckduckgo.com/?q={query}
bing https://www.bing.com/search?q={query}
yahoo http://www.search.yahoo.com/search?p={query}
wikipedia http://en.wikipedia.org/wiki/{query}
youtube http://www.youtube.com/results?search_query={query}
facebook http://www.facebook.com/search/?q={query}
twitter https://twitter.com/search?q={query}
@ishu3101
ishu3101 / read_arguments.py
Last active September 9, 2015 00:06
Read Command Line arguments using arg parse in Python
#! /usr/bin/python
import argparse
parser = argparse.ArgumentParser(description="This is a test.")
parser.add_argument("-e", "--echo",
help="echo the string you use here", required = True)
parser.add_argument("-u", "--uppercase",
help="Echo data to uppercase", action="store_true")
parser.add_argument("-v", "--version", action='version', version='%(prog)s 1.0')
args = parser.parse_args()