Skip to content

Instantly share code, notes, and snippets.

@ishu3101
ishu3101 / wpinstall.sh
Created October 31, 2013 04:36
Download the latest version of wordpress from the command line.
#!bin/bash -e
# Download the latest version of wordpress
wget http://wordpress.org/latest.tar.gz
# extract the downloaded file
tar xfz latest.tar.gz
# moves files out
mv wordpress/* .
sudo add-apt-repository ppa:elementary-os/daily
sudo add-apt-repository ppa:elementary-os/unstable-upstream
sudo add-apt-repository ppa:birdie-team/stable
sudo apt-get update
sudo apt-get install indicator-synapse
@ishu3101
ishu3101 / pinterest-findbyurl.js
Created January 27, 2014 23:39
A bookmarklet that takes the url of the current tab and finds all the pins on Pinterest using the current tabs url.
javascript:void(window.open("http://www.pinterest.com/pin/find/?url=" +window.location.href))
@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.
Here's a list of the most common folders in the iOS file system. Please note, if your device is still jailed you are NOT able to see these folders.
/Applications
This is where pre-installed native apps and jailbreak apps are installed.
/Library/Ringtones
This is where the pre-installed ringtones are stored. User-purchased ringtones are placed in /private/var/mobile/Media/Ringtones
/Library/Wallpaper
This is where Wallpapers and Lockscreens are stored.
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