Skip to content

Instantly share code, notes, and snippets.

View abhishekdev's full-sized avatar
🏗️
Building UX with JS & ❤️

Abhishek Dev abhishekdev

🏗️
Building UX with JS & ❤️
View GitHub Profile
@abhishekdev
abhishekdev / atom_package_reintsall.bat
Last active July 5, 2016 13:59
Atom packages for muapp development
## Run using GNU bash
sh .\atom_package_reintsall.sh
@abhishekdev
abhishekdev / reset_Launchpad_OSX_10.10.sh
Last active December 26, 2015 18:49
Rebuild the launchpad database. Typically used when application icons do not show up OR just to revert to the default.
#!/bin/bash
defaults write com.apple.dock ResetLaunchPad -bool true; killall Dock
@abhishekdev
abhishekdev / jsUnderPressureSolutions.js
Last active December 24, 2015 21:39
Solutions to questions at http://toys.usvsth3m.com/javascript-under-pressure/. I can JavaScript under pressure in 4 min 55 secs
/**
* Solutions to questions at {@link http://toys.usvsth3m.com/javascript-under-pressure/ }
*/
// Ans 1
function doubleInteger(i){
return i*2;
}
@abhishekdev
abhishekdev / ModifiedSVNFiles.sh
Created June 28, 2012 09:44
Log changed SVN files during a time period
#!/bin/bash
## To get the list of files modified during a certain periodin SVN
## original syntax: svn diff <url> --summarize -r {2012-03-24}:{2012-06-22} > ~/Documents/log.txt
## e.g. ./ThisFilesName <url> {date1}:{date2}
echo "Getting modified files during" $2 "to" $3 "in" $1 "..."
svn diff $1 --summarize -r {$2}:{$3} > log_$2_$3.txt
@abhishekdev
abhishekdev / Hide-Unhide Hidden Files.scpt
Created March 14, 2012 17:19
Toggle Show/Hide hidden Files on Mac OS X
tell application "Finder" to quit
try
do shell script "defaults read com.apple.finder AppleShowAllFiles"
set OnOff to result
on error
set OnOff to "0"
end try
if OnOff = "0" then
set OnOffCommand to "defaults write com.apple.finder AppleShowAllFiles 1"
@abhishekdev
abhishekdev / com.edb.launchd.postgresql-9.1.plist
Created March 2, 2012 19:56
Disable/Enable PostgreSQL Autostart on Mac OS X Lion
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Disabled</key>
<false/>
<key>Label</key>
<string>com.edb.launchd.postgresql-9.1</string>
<key>ProgramArguments</key>