Skip to content

Instantly share code, notes, and snippets.

@ishu3101
ishu3101 / ios-shortcuts
Created Feb 27, 2014
ios keyboard shortcuts location.
View ios-shortcuts
When you create keyboard shortcuts using Settings -> General -> Keyboard -> Shorcuts on your ios, they are saved in
var/mobile/Library/Keyboard.
They are synced between your ios and your MAC.
View homebrew-cask-commands
Available cask commands are:
- alfred: used to modify Alfred's scope to include the Caskroom
- info: displays information about the cask of the given name
- list: lists installed casks
- search: searches all known casks
- home: opens the homepage of the cask of the given name
- uninstall: uninstalls the cask of the given name
- audit: verifies installability of casks
- create: creates a cask of the given name and opens it in an editor
@ishu3101
ishu3101 / update.sh
Created Jun 27, 2014
Easily maintain and clean up your Ubuntu packages using apt-get.
View update.sh
#!/bin/sh
# Usage: update or update -y to skip all prompts.
sudo apt-get update
sudo apt-get $1 upgrade --show-upgraded
sudo apt-get $1 dist-upgrade
sudo apt-get $1 autoremove
sudo apt-get autoclean
View kde-service-menu-options.textile
Options Description
%f A single filename, even if you select multiple files. In general, you use this only when you intend to select a single file. In some cases, you can use this to select several files for use by a program that knows how to launch a separate instance for each filename.
%F Multiple selected files. Use this for programs that can act upon several files at once.
%u A single URL.
%U Multiple URLs.
%d The single directory that contains the selected file represented by %f.
%D A list of the same directory containing an entry for every selected file in that directory (%F).
%n A filename without a path.
%N Multiple filenames without paths.
%k A file represented as a URI.
@ishu3101
ishu3101 / backup.plist
Created Mar 19, 2015
The Mac Text Substitution that can be set in System Preferences > Language & Text > Text are stored in ~/Library/Preferences/.GlobalPreferences.plist. See http://apple.stackexchange.com/questions/57960/how-can-i-export-text-substitutions-from-lion-for-import-into-mountain-lion for more info
View backup.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<array>
<dict>
<key>on</key>
<integer>1</integer>
<key>replace</key>
<string>(c)</string>
<key>with</key>
@ishu3101
ishu3101 / albert_install.sh
Created Apr 26, 2015
Albert is a simple launcher for linux inspired by Alfred found on the Mac. See https://github.com/ManuelSchneid3r/albert for information
View albert_install.sh
sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install albert
@ishu3101
ishu3101 / mutate_install.sh
Last active Aug 29, 2015
Mutate is a simple launcher for linux inspired by Alfred found on the Mac. See https://github.com/qdore/Mutate for information
View mutate_install.sh
sudo apt-get install g++
sudo add-apt-repository ppa:mutate/ppa
sudo apt-get update
sudo apt-get install mutate
@ishu3101
ishu3101 / c#_dev_setup.ps1
Created May 17, 2015
Setup csharp (c#) development environment on Windows using Chocolatey.
View c#_dev_setup.ps1
# 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
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.
View bugmenot-bookmarklet.js
javascript:void(window.open("http://www.bugmenot.com/view/" +window.location.hostname))
@ishu3101
ishu3101 / atom_setup.sh
Last active Aug 29, 2015
Quickly Install Packages for the Atom Text Editor
View atom_setup.sh
# 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