Skip to content

Instantly share code, notes, and snippets.

@ishu3101
ishu3101 / ios-shortcuts
Created February 27, 2014 04:14
ios keyboard shortcuts location.
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.
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 June 27, 2014 08:34
Easily maintain and clean up your Ubuntu packages using apt-get.
#!/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
@ishu3101
ishu3101 / kde-service-menu-options.textile
Last active August 29, 2015 14:05
KDE Service Menu Options. Taken from http://oreilly.com/pub/h/3156
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 March 19, 2015 04:58
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
<?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 / mutate_install.sh
Last active August 29, 2015 14:19
Mutate is a simple launcher for linux inspired by Alfred found on the Mac. See https://github.com/qdore/Mutate for information
sudo apt-get install g++
sudo add-apt-repository ppa:mutate/ppa
sudo apt-get update
sudo apt-get install mutate
@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 / 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