├── .gitignore
├── README.markdown
├── bin
├── calculate_hash
├── convert_codepage_all
├── diffd
├── du1
├── e
├── es
├── es2
├── gateway
├── gateway_reboot
├── ge
├── gesrc
├── getport
├── git-open
├── git-undo
├── git-up
├── git-wtf
├── http_headers
├── iTunesFeedExtractor
├── lyrics
├── pytobin
├── rex
├── serve
├── soundmate_reboot
├── svn-early_history_of_file
├── svn-latest_history_of_file
├── telnet_
├── treelive
├── wine-extracticon
└── youtube-dl-to-audio
├── commands.txt
├── etc
└── git
│ ├── .gitattributes
│ └── .gitignore_global
├── osx
├── Library
│ ├── Applets
│ │ ├── Chrome session as markdown links to clipboard.app
│ │ │ └── Contents
│ │ │ │ ├── Info.plist
│ │ │ │ ├── MacOS
│ │ │ │ └── applet
│ │ │ │ ├── PkgInfo
│ │ │ │ └── Resources
│ │ │ │ ├── Scripts
│ │ │ │ └── main.scpt
│ │ │ │ ├── applet.icns
│ │ │ │ ├── applet.rsrc
│ │ │ │ └── description.rtfd
│ │ │ │ └── TXT.rtf
│ │ ├── CoreAudio kill all restart.app
│ │ │ └── Contents
│ │ │ │ ├── Info.plist
│ │ │ │ ├── MacOS
│ │ │ │ └── applet
│ │ │ │ ├── PkgInfo
│ │ │ │ └── Resources
│ │ │ │ ├── Scripts
│ │ │ │ └── main.scpt
│ │ │ │ ├── applet.icns
│ │ │ │ ├── applet.rsrc
│ │ │ │ └── description.rtfd
│ │ │ │ └── TXT.rtf
│ │ ├── Firefox Profile.app
│ │ │ └── Contents
│ │ │ │ ├── Info.plist
│ │ │ │ ├── MacOS
│ │ │ │ └── launcher.sh
│ │ │ │ ├── PkgInfo
│ │ │ │ └── Resources
│ │ │ │ └── firefox.icns
│ │ ├── Google Chrome Profile.app
│ │ │ └── Contents
│ │ │ │ ├── Info.plist
│ │ │ │ ├── MacOS
│ │ │ │ └── launcher.sh
│ │ │ │ ├── PkgInfo
│ │ │ │ └── Resources
│ │ │ │ └── app.icns
│ │ ├── Safari session as markdown links to clipboard.app
│ │ │ └── Contents
│ │ │ │ ├── Info.plist
│ │ │ │ ├── MacOS
│ │ │ │ └── applet
│ │ │ │ ├── PkgInfo
│ │ │ │ └── Resources
│ │ │ │ ├── Scripts
│ │ │ │ └── main.scpt
│ │ │ │ ├── applet.icns
│ │ │ │ ├── applet.rsrc
│ │ │ │ └── description.rtfd
│ │ │ │ └── TXT.rtf
│ │ ├── StartScreenCapture.app
│ │ │ └── Contents
│ │ │ │ ├── Info.plist
│ │ │ │ ├── MacOS
│ │ │ │ └── Application Stub
│ │ │ │ ├── Resources
│ │ │ │ ├── AutomatorApplet.icns
│ │ │ │ ├── English.lproj
│ │ │ │ │ └── ApplicationStub.nib
│ │ │ │ └── ru.lproj
│ │ │ │ │ └── ApplicationStub.nib
│ │ │ │ └── document.wflow
│ │ ├── StopScreenCapture.app
│ │ │ └── Contents
│ │ │ │ ├── Info.plist
│ │ │ │ ├── MacOS
│ │ │ │ └── Application Stub
│ │ │ │ ├── Resources
│ │ │ │ ├── AutomatorApplet.icns
│ │ │ │ ├── English.lproj
│ │ │ │ │ └── ApplicationStub.nib
│ │ │ │ └── ru.lproj
│ │ │ │ │ └── ApplicationStub.nib
│ │ │ │ └── document.wflow
│ │ └── Yandex Profile.app
│ │ │ └── Contents
│ │ │ ├── Info.plist
│ │ │ ├── MacOS
│ │ │ └── launcher.sh
│ │ │ ├── PkgInfo
│ │ │ └── Resources
│ │ │ └── app.icns
│ ├── Droplets
│ │ ├── Eject Disks.app
│ │ │ ├── Contents
│ │ │ │ ├── Info.plist
│ │ │ │ ├── MacOS
│ │ │ │ │ └── applet
│ │ │ │ ├── PkgInfo
│ │ │ │ └── Resources
│ │ │ │ │ ├── Scripts
│ │ │ │ │ └── main.scpt
│ │ │ │ │ ├── applet.icns
│ │ │ │ │ ├── applet.rsrc
│ │ │ │ │ └── description.rtfd
│ │ │ │ │ └── TXT.rtf
│ │ │ └── Icon
│ │ ├── Eject Disks.applescript
│ │ ├── Finder Window Here.app
│ │ │ └── Contents
│ │ │ │ ├── Info.plist
│ │ │ │ ├── MacOS
│ │ │ │ └── applet
│ │ │ │ ├── PkgInfo
│ │ │ │ └── Resources
│ │ │ │ ├── Scripts
│ │ │ │ └── main.scpt
│ │ │ │ ├── applet.icns
│ │ │ │ ├── applet.rsrc
│ │ │ │ └── description.rtfd
│ │ │ │ └── TXT.rtf
│ │ ├── Finder Window Here.scpt
│ │ ├── Finder to ForkLift.app
│ │ │ ├── Contents
│ │ │ │ ├── Info.plist
│ │ │ │ ├── MacOS
│ │ │ │ │ └── applet
│ │ │ │ ├── PkgInfo
│ │ │ │ └── Resources
│ │ │ │ │ ├── Scripts
│ │ │ │ │ └── main.scpt
│ │ │ │ │ ├── applet.icns
│ │ │ │ │ ├── applet.rsrc
│ │ │ │ │ └── description.rtfd
│ │ │ │ │ └── TXT.rtf
│ │ │ └── Icon
│ │ ├── Finder to ForkLift.applescript
│ │ ├── Finder to SourceTree.app
│ │ │ ├── Contents
│ │ │ │ ├── Info.plist
│ │ │ │ ├── MacOS
│ │ │ │ │ └── applet
│ │ │ │ ├── PkgInfo
│ │ │ │ └── Resources
│ │ │ │ │ ├── Scripts
│ │ │ │ │ └── main.scpt
│ │ │ │ │ ├── applet.icns
│ │ │ │ │ ├── applet.rsrc
│ │ │ │ │ └── description.rtfd
│ │ │ │ │ └── TXT.rtf
│ │ │ └── Icon
│ │ ├── Finder to SourceTree.scpt
│ │ ├── Finder to iTerm.app
│ │ │ └── Contents
│ │ │ │ ├── Info.plist
│ │ │ │ ├── MacOS
│ │ │ │ └── cd to
│ │ │ │ ├── PkgInfo
│ │ │ │ ├── Plugins
│ │ │ │ └── iterm.bundle
│ │ │ │ │ └── Contents
│ │ │ │ │ ├── Info.plist
│ │ │ │ │ ├── MacOS
│ │ │ │ │ └── iterm
│ │ │ │ │ ├── Resources
│ │ │ │ │ └── English.lproj
│ │ │ │ │ │ └── InfoPlist.strings
│ │ │ │ │ └── _CodeSignature
│ │ │ │ │ └── CodeResources
│ │ │ │ ├── Resources
│ │ │ │ ├── CD2PluginProtocolV1.h
│ │ │ │ ├── English.lproj
│ │ │ │ │ └── InfoPlist.strings
│ │ │ │ ├── Finder.h
│ │ │ │ ├── LICENSE.md
│ │ │ │ └── lion.icns
│ │ │ │ └── _CodeSignature
│ │ │ │ └── CodeResources
│ │ ├── NewFile.app
│ │ │ ├── Contents
│ │ │ │ ├── Info.plist
│ │ │ │ ├── MacOS
│ │ │ │ │ └── droplet
│ │ │ │ ├── PkgInfo
│ │ │ │ └── Resources
│ │ │ │ │ ├── Scripts
│ │ │ │ │ └── main.scpt
│ │ │ │ │ ├── description.rtfd
│ │ │ │ │ └── TXT.rtf
│ │ │ │ │ ├── droplet.icns
│ │ │ │ │ └── droplet.rsrc
│ │ │ └── Icon
│ │ ├── OpenInSublimeText.app
│ │ │ ├── Contents
│ │ │ │ ├── Info.plist
│ │ │ │ ├── MacOS
│ │ │ │ │ └── droplet
│ │ │ │ ├── PkgInfo
│ │ │ │ └── Resources
│ │ │ │ │ ├── Scripts
│ │ │ │ │ └── main.scpt
│ │ │ │ │ ├── description.rtfd
│ │ │ │ │ └── TXT.rtf
│ │ │ │ │ ├── droplet.icns
│ │ │ │ │ └── droplet.rsrc
│ │ │ ├── README.rst
│ │ │ └── version.txt
│ │ ├── PathFinder to SourceTree.app
│ │ │ ├── Contents
│ │ │ │ ├── Info.plist
│ │ │ │ ├── MacOS
│ │ │ │ │ └── applet
│ │ │ │ ├── PkgInfo
│ │ │ │ └── Resources
│ │ │ │ │ ├── Scripts
│ │ │ │ │ └── main.scpt
│ │ │ │ │ ├── applet.icns
│ │ │ │ │ ├── applet.rsrc
│ │ │ │ │ └── description.rtfd
│ │ │ │ │ └── TXT.rtf
│ │ │ └── Icon
│ │ ├── PathFinder to SourceTree.scpt
│ │ ├── README.md
│ │ ├── README
│ │ │ └── Command_Drag_to_toolbar.gif
│ │ ├── htop Terminal.app
│ │ │ ├── Contents
│ │ │ │ ├── Info.plist
│ │ │ │ ├── MacOS
│ │ │ │ │ └── applet
│ │ │ │ ├── PkgInfo
│ │ │ │ └── Resources
│ │ │ │ │ ├── Scripts
│ │ │ │ │ └── main.scpt
│ │ │ │ │ ├── applet.icns
│ │ │ │ │ ├── applet.rsrc
│ │ │ │ │ └── description.rtfd
│ │ │ │ │ └── TXT.rtf
│ │ │ └── Icon
│ │ ├── htop Terminal.scpt
│ │ ├── htop iTerm.app
│ │ │ ├── Contents
│ │ │ │ ├── Info.plist
│ │ │ │ ├── MacOS
│ │ │ │ │ └── applet
│ │ │ │ ├── PkgInfo
│ │ │ │ └── Resources
│ │ │ │ │ ├── Scripts
│ │ │ │ │ └── main.scpt
│ │ │ │ │ ├── applet.icns
│ │ │ │ │ ├── applet.rsrc
│ │ │ │ │ └── description.rtfd
│ │ │ │ │ └── TXT.rtf
│ │ │ └── Icon
│ │ ├── htop iTerm.scpt
│ │ └── newFile.scpt
│ └── Scripts
│ │ ├── Chrome session as markdown links to clipboard.scpt
│ │ ├── Copy Keyboard Shortcut Symbols to Clipboard.scpt
│ │ ├── Copy Other Keyboard Shortcut Symbols to Clipboard.scpt
│ │ ├── CoreAudio kill all restart.scpt
│ │ └── Safari session as markdown links to clipboard.scpt
├── bin
│ ├── DNScache_reset
│ ├── GoogleChromeProfile
│ ├── alpha
│ ├── bid
│ ├── binf
│ ├── binst
│ ├── brew-cask-cleanup.rb
│ ├── cdf
│ ├── chrome_session_tabs_links_to_clipboard
│ ├── cinf
│ ├── cinst
│ ├── class-dump_to
│ ├── cleanup
│ ├── clone
│ ├── code
│ ├── f
│ ├── faster_open.sh
│ ├── fname
│ ├── fp
│ ├── hi
│ ├── ipy
│ ├── kill_SystemUIServer
│ ├── kill_appleeventsd
│ ├── launchservices_rebuild
│ ├── ls_appstore_apps.sh
│ ├── lsc
│ ├── lsextsize
│ ├── lst
│ ├── lt
│ ├── man
│ ├── manp
│ ├── mcd
│ ├── path
│ ├── pbpastehtml
│ ├── ping-gateway
│ ├── proxy
│ ├── psgrep
│ ├── quicklook_reload_plugins
│ ├── qwd
│ ├── rebuild_launchservices
│ ├── remove_lines_from
│ ├── safari_session_tabs_links_to_clipboard
│ ├── show_assembly_info
│ ├── spark-ping
│ ├── spotlight_disable_and_erase_at_mount_point
│ ├── spotlight_disable_daemon
│ ├── spotlight_disable_indexing
│ ├── spotlight_enable_daemon
│ ├── spotlight_enable_indexing
│ ├── spotlight_rebuild
│ ├── whichls
│ ├── wififix
│ ├── xc
│ ├── xrun
│ └── yandex_session_tabs_links_to_clipboard
├── configure
│ ├── README.markdown
│ ├── brew_casks
│ │ ├── popcorn-time.rb
│ │ ├── soundflower.rb
│ │ └── soundflowerbed.rb
│ ├── brew_formulas
│ │ └── cycript.rb
│ ├── configure_python
│ ├── configure_system_python
│ ├── disablebonjour
│ ├── el_capitan
│ │ ├── fix_privacy
│ │ ├── link_hidden_utilities
│ │ ├── set_3rd_party_defaults
│ │ ├── set_osx_defaults
│ │ └── set_plain_text_editor
│ ├── hotkeys.sh
│ ├── install_alcatraz_xcode_plugin_manager
│ ├── install_android_tools
│ ├── install_cocoapods
│ ├── install_gnu_radio
│ ├── install_homebrew
│ ├── install_homebrew_casks
│ ├── install_homebrew_core_tools
│ ├── install_hopper_disassembler_scripts
│ ├── install_ntfs_driver
│ ├── install_powerline_fonts
│ ├── install_vagrant_plugins
│ ├── link_arduino_libs
│ ├── link_dotfiles
│ ├── login_items_configure
│ ├── mavericks
│ │ ├── link_hidden_utilities
│ │ └── osx_set_defaults.sh
│ ├── node_configure
│ ├── node_nvm_install
│ ├── osx_settings
│ │ ├── README.markdown
│ │ ├── config
│ │ │ ├── Alfred.conf
│ │ │ ├── Bartender.conf
│ │ │ ├── Dash.conf
│ │ │ ├── KeePassX.conf
│ │ │ ├── LimeChat.conf
│ │ │ ├── Pictary.conf
│ │ │ ├── PopClip.conf
│ │ │ ├── Terminal.conf
│ │ │ ├── iStatMenus.conf
│ │ │ └── iTerm2.conf
│ │ ├── config_disabled
│ │ │ ├── Adium.conf
│ │ │ ├── AntiRSI.conf
│ │ │ ├── Choosy.conf
│ │ │ ├── Clipboard_Center.conf
│ │ │ ├── FTL.conf
│ │ │ ├── Flux.conf
│ │ │ ├── MercuryMover.conf
│ │ │ ├── Minecraft.conf
│ │ │ ├── Moom.conf
│ │ │ ├── Reeder.conf
│ │ │ ├── SSH Proxy.conf
│ │ │ ├── Safari.conf
│ │ │ ├── Slack.conf
│ │ │ ├── Sleipnir.conf
│ │ │ ├── SomaFM.conf
│ │ │ ├── Spotify.conf
│ │ │ ├── Stickies.conf
│ │ │ ├── TextMate.conf
│ │ │ ├── Textual_IRC.conf
│ │ │ ├── Things.conf
│ │ │ ├── Time_Out.conf
│ │ │ ├── Timings.conf
│ │ │ ├── mindfulmynah.conf
│ │ │ ├── nvALT.conf
│ │ │ ├── snowtape.conf
│ │ │ └── xScope.conf
│ │ └── settings
│ ├── ruby_configure
│ ├── services.sh
│ ├── set_capslock_to_do_nothing
│ ├── sublime_text_configure
│ └── yosemite
│ │ ├── link_hidden_utilities
│ │ ├── osx_set_defaults.sh
│ │ ├── set_default_file_manager
│ │ └── set_plain_text_editor
└── etc
│ ├── .bash_profile
│ └── .bashrc
└── windows
├── GetIP.cmd
├── Return Desktop Path
├── findDesktop.bat
└── findDesktop.vbs
├── Set default keyboard layout to English at preload.cmd
├── Set default keyboard layout to English.cmd
├── autorun_disable.reg
└── bin
└── svn-history_of_file.cmd
/.gitignore:
--------------------------------------------------------------------------------
1 | osx/etc/Firefox
2 | osx/etc/GoogleChrome
--------------------------------------------------------------------------------
/README.markdown:
--------------------------------------------------------------------------------
1 | ### Mac OS X
2 | - [New install scripts](osx/configure/)
3 | - [Finder Droplets](osx/Library/Droplets/)
4 | - [Bash functions](osx/etc/.bash_profile/)
5 |
--------------------------------------------------------------------------------
/bin/calculate_hash:
--------------------------------------------------------------------------------
1 | #! /usr/bin/env python
2 | import hashlib, hmac, os, stat, sys
3 | ## Return the hash of the contents of the specified file, as a hex string
4 | def file_hash(name):
5 | f = open(name)
6 | h = hashlib.sha256()
7 | while True:
8 | buf = f.read(16384)
9 | if len(buf) == 0: break
10 | h.update(buf)
11 | f.close()
12 | return h.hexdigest()
13 | ## Traverse the specified path and update the hash with a description of its
14 | ## name and contents
15 | def traverse(h, path):
16 | rs = os.lstat(path)
17 | quoted_name = repr(path)
18 | if stat.S_ISDIR(rs.st_mode):
19 | h.update('dir ' + quoted_name + '\n')
20 | for entry in sorted(os.listdir(path)):
21 | traverse(h, os.path.join(path, entry))
22 | elif stat.S_ISREG(rs.st_mode):
23 | h.update('reg ' + quoted_name + ' ')
24 | h.update(str(rs.st_size) + ' ')
25 | h.update(file_hash(path) + '\n')
26 | else: pass # silently symlinks and other special files
27 | h = hashlib.sha256()
28 | for root in sys.argv[1:]: traverse(h, root)
29 | h.update('end\n')
30 | print h.hexdigest()
--------------------------------------------------------------------------------
/bin/convert_codepage_all:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | # http://superuser.com/questions/27060/batch-convert-files-for-encoding
4 | # http://stackoverflow.com/questions/9310571/how-to-change-encoding-in-many-files?lq=1
5 | # http://stackoverflow.com/questions/4544669/batch-convert-latin-1-files-to-utf-8-using-iconv
6 | find . -type f -exec bash -c 'iconv -f windows-1251 -t utf-8 "{}" > _/"{}"' \;
--------------------------------------------------------------------------------
/bin/diffd:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | diff -rq "$@"
--------------------------------------------------------------------------------
/bin/du1:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # disk usage with human sizes and minimal depth
4 | du -h --max-depth=1 $1
--------------------------------------------------------------------------------
/bin/e:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | #
3 | # Quick shortcut to an editor.
4 | #
5 | # This means that as I travel back and forth between editors, hey, I don't have
6 | # to re-learn any arcane commands. Neat.
7 | #
8 | # USAGE:
9 | #
10 | # $ e
11 | # # => opens the current directory in your editor
12 | #
13 | # $ e .
14 | # $ e /usr/local
15 | # # => opens the specified directory in your editor
16 |
17 | if [[ $# == 0 ]]; then
18 | exec $EDITOR .
19 | else
20 | exec $EDITOR "$1"
21 | fi
22 |
--------------------------------------------------------------------------------
/bin/es:
--------------------------------------------------------------------------------
1 | #!/usr/bin/perl
2 | #
3 | # explainshell.com command line utility
4 | #
5 |
6 | use warnings;
7 | use strict;
8 | use Encode;
9 | use Term::ANSIColor;
10 |
11 | binmode STDOUT, ":utf8";
12 |
13 | if(!@ARGV || $ARGV[0] eq "--help"){
14 | print "exp - explainshell.com command line utility\n";
15 | print "usage: exp [flags] [command]\n";
16 | print " --help display help message\n";
17 | print " --nocolor disable color output\n";
18 | exit(0);
19 | }
20 |
21 |
22 | my $color = 1;
23 | if($ARGV[0] eq "--nocolor"){
24 | $ARGV[0] = "";
25 | $color = 0;
26 | }
27 |
28 | my $cmd = join(" ",@ARGV);
29 | $cmd =~ s/(.)/"%".unpack("H*", $1)/eg;
30 | $cmd = decode("UTF-8", $cmd);
31 |
32 | my $content;
33 |
34 | open(my $output, "-|:encoding(UTF-8)", "curl -s http://explainshell.com/explain?cmd=".$cmd)
35 | or die "can't get data from http://explainshell.com $!";
36 | {
37 | local $/;
38 | $content = <$output>;
39 | }
40 | close($output);
41 |
42 | sub striptags { $_[0] =~ s/<[^>]*>//g; $_[0]; }
43 |
44 | sub parsetag {
45 | my ($t,$a) = (@_);
46 | if($content =~ /<$t[^>]*$a[^>]*>/i){
47 | my $tag = $&;
48 | my $vi = $+[0];
49 | my $ve = index($content,"$t>", $vi);
50 | my $tagvalue = substr $content, $vi, $ve-$vi;
51 | return ($tag, $tagvalue, $vi);
52 | }
53 | return ();
54 | }
55 |
56 | my $i = -1;
57 | my @t;
58 | my @d;
59 | do {
60 | $i++;
61 | @t = parsetag("span","help-$i");
62 | @d = parsetag("pre","help-$i");
63 | if(@t){
64 | my $title = striptags $t[1] if @t;
65 | my $desc = striptags $d[1] if @d;
66 | if($color){
67 | print "\n", $title, color("bright_blue"), " ---[", color("reset")
68 | , " $desc ", color("bright_blue"), "]", color("reset"), "\n\n";
69 | }else{
70 | print "\n$title ---[ $desc ]\n\n";
71 | }
72 | }
73 | } while(@t);
--------------------------------------------------------------------------------
/bin/es2:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # a dirty command line wrapper using w3m to browse explainshell.com pages
4 |
5 | # browse the page
6 | w3m "http://explainshell.com/explain?cmd="`echo $@ | tr ' ' '+'}`
--------------------------------------------------------------------------------
/bin/gateway:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | # Script to reboot router
4 |
5 | # Put following in .bashrc or somewhere safer
6 | # export GATEWAY_USER='admin'
7 | # export GATEWAY_PASSWORD='admin'
8 |
9 | telnet_ 192.168.1.1 $GATEWAY_USER $GATEWAY_PASSWORD
10 |
--------------------------------------------------------------------------------
/bin/gateway_reboot:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | # Script to reboot router
4 |
5 | # Put following in .bashrc or somewhere safer
6 | # export GATEWAY_USER='admin'
7 | # export GATEWAY_PASSWORD='admin'
8 |
9 | telnet_ 192.168.1.1 $GATEWAY_USER $GATEWAY_PASSWORD
10 | reboot now
11 |
--------------------------------------------------------------------------------
/bin/ge:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | #
3 | # Quick shortcut to an graphical editor.
4 | #
5 | # This means that as I travel back and forth between editors, hey, I don't have
6 | # to re-learn any arcane commands. Neat.
7 | #
8 | # USAGE:
9 | #
10 | # $ ge
11 | # # => opens the current directory in your editor
12 | #
13 | # $ ge .
14 | # $ ge /usr/local
15 | # # => opens the specified directory in your editor
16 |
17 | if [[ $# == 0 ]]; then
18 | exec $GEDITOR .
19 | else
20 | exec $GEDITOR "$1"
21 | fi
22 |
--------------------------------------------------------------------------------
/bin/gesrc:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # open script in graphical editor
4 | # Currently not work for paths
5 | ge $(realpath $(which $1))
6 |
7 |
8 | # if [[ ! -f $1 ]]; then # path don't exist, not a path ?
9 | # PATH=$(which $1)
10 | # if [[ condition ]]; then
11 | # #statements
12 | # fi
13 | # elif [[ -L $FILE ]]; then
14 | # printf '%s is a broken symlink!\n' "$1"
15 | # else
16 | # printf '%s does not exist!\n' "$1"
17 | # fi
18 | # else
19 | # ge $(which $1)
20 | # fi
21 |
22 | # if [ ! -f "$1" ]; then
23 | # echo "File $FILE does not exists"
24 | # else
25 |
26 | # fi
27 |
--------------------------------------------------------------------------------
/bin/getport:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env python2
2 |
3 | # find an unused unprivileged TCP port
4 |
5 | #port=32768; while netstat -atn | grep -q :$port; do port=$(expr $port + 1); done; echo $port
6 |
7 | #lowerPort=32768
8 | #
9 | #while :; do
10 | # for (( port = lowerPort ; port <= upperPort ; port++ )); do
11 | # nc -l -p "$port" 2>/dev/null && break 2
12 | # done
13 | #done
14 | #
15 | #echo $port
16 |
17 | import socket
18 |
19 | s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
20 | s.bind(('', 0))
21 | addr = s.getsockname()
22 | print addr[1]
23 | s.close()
--------------------------------------------------------------------------------
/bin/git-open:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # Opens the github page for a repo/branch in your browser.
4 | # https://github.com/paulirish/git-open/
5 | #
6 | # git open
7 | # git open [remote] [branch]
8 |
9 |
10 | # are we in a git repo?
11 | git rev-parse --is-inside-work-tree &>/dev/null
12 |
13 | if [[ $? != 0 ]]
14 | then
15 | echo "Not a git repository."
16 | exit 1
17 | fi
18 |
19 |
20 | # assume origin if not provided
21 | # fallback to upstream if neither is present.
22 | remote="origin"
23 | if [ ! -z "$1" ]
24 | then
25 | remote="$1"
26 | fi
27 |
28 | remote_url="remote.${remote}.url"
29 |
30 | giturl=$(git config --get $remote_url)
31 | if [ -z "$giturl" ]
32 | then
33 | echo "$remote_url not set."
34 | exit 1
35 | fi
36 |
37 | # get current branch
38 | if [ -z "$2" ]
39 | then
40 | branch=`git symbolic-ref -q --short HEAD`
41 | else
42 | branch="$2"
43 | fi
44 |
45 | # URL normalization
46 | # Github
47 | if grep -q github <<<$giturl; then
48 | giturl=${giturl/git\@github\.com\:/https://github.com/}
49 | providerUrlDifference=tree
50 | # bitbucket
51 | elif grep -q bitbucket <<<$giturl; then
52 | giturl=${giturl/git\@bitbucket\.org\:/https://bitbucket.org/}
53 | providerUrlDifference=branch
54 | # Atlassian Stash
55 | elif grep -q "/scm/" <<<$giturl; then
56 | re='(.*)/scm/(.*)/(.*)\.git'
57 | if [[ $giturl =~ $re ]]
58 | then
59 | giturl=${BASH_REMATCH[1]}/projects/${BASH_REMATCH[2]}/repos/${BASH_REMATCH[3]}
60 | providerUrlDifference=browse
61 | branch="?at=refs%2Fheads%2F${branch}"
62 | fi
63 | # Gitlab
64 | else
65 | # custom gitlab
66 | gitlab_domain=$(git config --get gitopen.gitlab.domain)
67 | if [ ! -z "$gitlab_domain" ]; then
68 | if grep -q $gitlab_domain <<<$giturl; then
69 | giturl=${giturl/git\@${gitlab_domain}:/https://${gitlab_domain}/}
70 | providerUrlDifference=tree
71 | fi
72 | # hosted gitlab
73 | elif grep -q gitlab <<<$giturl; then
74 | giturl=${giturl/git\@gitlab\.com\:/https://gitlab.com/}
75 | providerUrlDifference=tree
76 | fi
77 | fi
78 | giturl=${giturl%\.git}
79 |
80 | if [ ! -z "$branch" ]
81 | then
82 | giturl="${giturl}/${providerUrlDifference}/${branch}"
83 | fi
84 |
85 | # simplify URL for master
86 | giturl=${giturl/tree\/master/}
87 |
88 | # get current open browser command
89 | case $( uname -s ) in
90 | Darwin) open=open;;
91 | MINGW*) open=start;;
92 | CYGWIN*) open=cygstart;;
93 | *) open=xdg-open;;
94 | esac
95 |
96 | # open it in a browser
97 | $open $giturl &> /dev/null
98 | exit 0
99 |
--------------------------------------------------------------------------------
/bin/git-undo:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | #
3 | # Undo your last commit, but don't throw away your changes
4 |
5 | git reset --soft HEAD^
6 |
--------------------------------------------------------------------------------
/bin/git-up:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | #
3 | # Usage: git-up
4 | # git-reup
5 | #
6 | # Like git-pull but show a short and sexy log of changes
7 | # immediately after merging (git-up) or rebasing (git-reup).
8 | #
9 | # Inspired by Kyle Neath's `git up' alias:
10 | # http://gist.github.com/249223
11 | #
12 | # Stolen from Ryan Tomayko
13 | # http://github.com/rtomayko/dotfiles/blob/rtomayko/bin/git-up
14 |
15 | set -e
16 |
17 | PULL_ARGS="$@"
18 |
19 | # when invoked as git-reup, run as `git pull --rebase'
20 | test "$(basename $0)" = "git-reup" &&
21 | PULL_ARGS="--rebase $PULL_ARGS"
22 |
23 | git pull $PULL_ARGS
24 |
25 | # show diffstat of all changes if we're pulling with --rebase. not
26 | # sure why git-pull only does this when merging.
27 | test "$(basename $0)" = "git-reup" && {
28 | echo "Diff:"
29 | git --no-pager diff --color --stat HEAD@{1}.. |
30 | sed 's/^/ /'
31 | }
32 |
33 | # show an abbreviated commit log of stuff that was just merged.
34 | echo "Log:"
35 | git log --color --pretty=oneline --abbrev-commit HEAD@{1}.. |
36 | sed 's/^/ /'
37 |
--------------------------------------------------------------------------------
/bin/http_headers:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | #
3 | # https://github.com/rtomayko/dotfiles/blob/rtomayko/bin/headers
4 |
5 | curl -sv "$@" 2>&1 >/dev/null |
6 | grep -v "^\*" |
7 | grep -v "^}" |
8 | cut -c3-
--------------------------------------------------------------------------------
/bin/iTunesFeedExtractor:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | iTunesLink=$1
3 | curl -A 'iTunes/10.1 (Windows; U; Microsoft Windows XP Home Edition Service Pack 2 (Build 2600)) DPI/96' -i "$iTunesLink" | grep feed-url | head -1 | awk -F"=" '{print $12}'
--------------------------------------------------------------------------------
/bin/lyrics:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | #
3 | # lyrics.sh
4 | #
5 | # A fine piece of work by @febuiles
6 | # https://gist.github.com/1549979
7 |
8 | #artist=`osascript -e'tell application "iTunes"' -e'get artist of current track' -e'end tell'`
9 | #title=`osascript -e'tell application "iTunes"' -e'get name of current track' -e'end tell'`
10 |
11 | song=`curl -G --data-urlencode "artist=$1" \
12 | --data-urlencode "title=$2" -s http://makeitpersonal.co/lyrics`
13 |
14 | echo -e "$artist - $title\n$song"
--------------------------------------------------------------------------------
/bin/pytobin:
--------------------------------------------------------------------------------
1 | #!/usr/bin/python
2 | # quick script to build a binary from python
3 | # Written by: Dave Kennedy (ReL1K)
4 | import subprocess
5 | print """
6 | quick script to build a binary from python
7 | Written by: Dave Kennedy (ReL1K) @ TrustedSec
8 | """
9 | build = raw_input("Enter the name of the python script to build into an exe: ")
10 | subprocess.Popen("python Configure.py", shell=True).wait()
11 | subprocess.Popen("python Makespec.py --onefile %s" % (build), shell=True).wait()
12 | buildname = build.replace(".py", "")
13 | subprocess.Popen("Build.py %s/%s.spec" % (buildname,buildname), shell=True).wait()
14 | print "Executable can be found under %s/dist/%s.exe" % (buildname,buildname)
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/bin/rex:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env perl
2 |
3 | # http://search.cpan.org/dist/YAPE-Regex-Explain/Explain.pm#EXAMPLES
4 |
5 | use YAPE::Regex;
6 | use YAPE::Regex::Explain;
7 |
8 | print YAPE::Regex::Explain->new(qr/\Q[abc]\E\d+/)->explain();
--------------------------------------------------------------------------------
/bin/serve:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | PORT=$(getport)
4 |
5 | open "http://localhost:$PORT"
6 | python2 -m SimpleHTTPServer $PORT $0
7 |
--------------------------------------------------------------------------------
/bin/soundmate_reboot:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | # Script to reboot Soundmate M1 AirPlay Server
4 |
5 | telnet_ 192.168.1.132 root ifconfig
6 | reboot now
--------------------------------------------------------------------------------
/bin/svn-early_history_of_file:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # history_of_file
4 | #
5 | # Outputs the full history of a given file as a sequence of
6 | # logentry/diff pairs. The first revision of the file is emitted as
7 | # full text since there's not previous version to compare it to.
8 |
9 | function history_of_file() {
10 | url=$1 # current url of file
11 | svn log -q $url | grep -E -e "^r[[:digit:]]+" -o | cut -c2- | sort -n | {
12 |
13 | # first revision as full text
14 | echo
15 | read r
16 | svn log -r$r $url@HEAD
17 | svn cat -r$r $url@HEAD
18 | echo
19 |
20 | # remaining revisions as differences to previous revision
21 | while read r
22 | do
23 | echo
24 | svn log -r$r $url@HEAD
25 | svn diff -c$r $url@HEAD
26 | echo
27 | done
28 | }
29 | }
30 |
31 | history_of_file $1
--------------------------------------------------------------------------------
/bin/svn-latest_history_of_file:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # history_of_file
4 | #
5 | # http://stackoverflow.com/questions/282802/how-can-i-view-all-historical-changes-to-a-file-in-svn
6 | # Outputs the full history of a given file as a sequence of
7 | # logentry/diff pairs. The first revision of the file is emitted as
8 | # full text since there's not previous version to compare it to.
9 | #
10 | # Made to work in reverse order
11 |
12 | function history_of_file() {
13 | url=$1 # current url of file
14 | svn log -q $url | grep -E -e "^r[[:digit:]]+" -o | cut -c2- | sort -nr | {
15 | while read r
16 | do
17 | echo
18 | svn log -r$r $url@HEAD
19 | svn diff -c$r $url@HEAD
20 | echo
21 | done
22 | }
23 | }
24 |
25 | history_of_file $1
--------------------------------------------------------------------------------
/bin/telnet_:
--------------------------------------------------------------------------------
1 | #!/usr/bin/expect
2 |
3 | # http://stackoverflow.com/questions/7013137/automating-telnet-session-using-bash-scripts
4 |
5 | set timeout 20
6 | set hostName [lindex $argv 0]
7 | set userName [lindex $argv 1]
8 | set password [lindex $argv 2]
9 |
10 | spawn telnet $hostName
11 |
12 | expect -re ".*login"
13 | send "$userName\r"
14 | expect "Password:"
15 | send "$password\r";
16 | interact
--------------------------------------------------------------------------------
/bin/treelive:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | while :
3 | do
4 | clear
5 | tree
6 | sleep 1
7 | done
8 |
--------------------------------------------------------------------------------
/bin/wine-extracticon:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | # wine-extracticon
3 |
4 | echo Usage : wine-extracticon myapp.exe
5 |
6 | MYFILE=$(readlink -f "$1")
7 | shift
8 | for i in $@; do MYFILE="$MYFILE $i"; done
9 | MYBASENAME=$(basename "$( readlink -f "$MYFILE")")
10 |
11 | echo "Extracting icon(s)..."
12 | wrestool -x -t 14 "$MYFILE" > "/tmp/$MYBASENAME.ico"
13 |
14 | echo Converting icon to PNG...
15 | convert -alpha on "/tmp/$MYBASENAME.ico" "/tmp/$MYBASENAME.png"
16 |
17 | # the script will assume the best icon is the bigger one
18 | echo Copy "$(ls -S -1 "/tmp/$MYBASENAME"*".png" | tac | tail -n 1)" to "$MYFILE.icon.png" ...
19 | cp "$(ls -S -1 "/tmp/$MYBASENAME"*".png" | tac | tail -n 1)" "$MYFILE.icon.png"
20 |
21 | echo "Done."
--------------------------------------------------------------------------------
/bin/youtube-dl-to-audio:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | youtube-dl -x --audio-format best --no-check-certificate $1
3 |
--------------------------------------------------------------------------------
/commands.txt:
--------------------------------------------------------------------------------
1 | tmux
2 |
3 | ranger # visual file manager
4 | treelive #
5 | lt # ls last 10 modified files
6 | ll # better ls -l
7 | fname # find file with name
8 | mcd # mkdir && cd
9 |
10 |
11 | du1 # size of
12 | ncdu # disk usage
13 | dfc # display file system space usage using graphs and colors
14 |
15 | pstree # show processes
16 | fk # kill process
17 | fp # find and list processes
18 | psgrep # find process
19 |
20 | mach # displays the basic information about the system
21 |
22 | trash #?
23 | mediainfo #?
24 |
25 | z #?
26 | hi
27 |
28 | cdf # open the Finder directory in the terminal
29 | f # open in Finder
30 |
31 | xc # XCode
32 | alpha # ImageAlpha
33 |
34 | manp # open man page in Preview.app
35 |
36 | als # alias last and save
37 |
38 | calculate_hash #
39 | es # Explainshell.com
40 | es2
41 |
42 | diffd #
43 |
44 | gencmake #
45 | http_headers
46 | python_packages_list
47 |
48 | mitmproxy # a man-in-the-middle proxy. Intercept, modify, replay and save HTTP/S traffic
49 |
50 | # Git
51 | git-wtf #
52 |
53 | # SVN
54 | svn-early_history_of_file #
55 | svn-latest_history_of_file #
56 |
--------------------------------------------------------------------------------
/etc/git/.gitattributes:
--------------------------------------------------------------------------------
1 | # Automatically normalize line endings for all text-based files
2 | * text=auto
--------------------------------------------------------------------------------
/etc/git/.gitignore_global:
--------------------------------------------------------------------------------
1 | # Compiled Python files
2 | *.pyc
3 |
4 | # Other VCS
5 | .svn
6 |
7 | # Windows
8 | ## Windows image file caches
9 | Thumbs.db
10 | ehthumbs.db
11 |
12 | ## Folder config file
13 | Desktop.ini
14 |
15 | ## Recycle Bin used on file shares
16 | $RECYCLE.BIN/
17 |
18 | ## Windows Installer files
19 | *.cab
20 | *.msi
21 | *.msm
22 | *.msp
23 |
24 |
25 | ## Visual Studio
26 | *.obj
27 | *.exe
28 | *.pdb
29 | *.user
30 | *.aps
31 | *.pch
32 | *.vspscc
33 | *_i.c
34 | *_p.c
35 | *.ncb
36 | *.suo
37 | *.tlb
38 | *.tlh
39 | *.bak
40 | *.cache
41 | *.ilk
42 | *.log
43 | *.dll
44 | *.lib
45 | *.sbr
46 |
47 |
48 | # OS X
49 | .DS_Store
50 |
51 | ## Files that might appear on external disks
52 | .Spotlight-V100
53 | .Trashes
54 |
55 | # Xcode
56 | #
57 | build/
58 | *.pbxuser
59 | !default.pbxuser
60 | *.mode1v3
61 | !default.mode1v3
62 | *.mode2v3
63 | !default.mode2v3
64 | *.perspectivev3
65 | !default.perspectivev3
66 | xcuserdata
67 | *.xccheckout
68 | *.moved-aside
69 | DerivedData
70 | *.hmap
71 | *.ipa
72 | *.xcuserstate
73 |
74 |
75 |
76 | # Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode
77 |
78 | ## Directory-based project format
79 | .idea/
80 | # if you remove the above rule, at least ignore user-specific stuff:
81 | # .idea/workspace.xml
82 | # .idea/tasks.xml
83 | # and these sensitive or high-churn files:
84 | # .idea/dataSources.ids
85 | # .idea/dataSources.xml
86 | # .idea/sqlDataSources.xml
87 | # .idea/dynamic.xml
88 |
89 | ## File-based project format
90 | *.ipr
91 | *.iws
92 | *.iml
93 |
94 | ## Additional for IntelliJ
95 | out/
96 |
97 | ## generated by mpeltonen/sbt-idea plugin
98 | .idea_modules/
99 |
100 |
101 | # Python
102 |
103 | # Byte-compiled / optimized / DLL files
104 | __pycache__/
105 | *.py[cod]
106 |
107 | # C extensions
108 | *.so
109 |
110 | # Distribution / packaging
111 | .Python
112 | env/
113 | build/
114 | develop-eggs/
115 | dist/
116 | downloads/
117 | eggs/
118 | lib/
119 | lib64/
120 | parts/
121 | sdist/
122 | var/
123 | *.egg-info/
124 | .installed.cfg
125 | *.egg
126 |
127 | # PyInstaller
128 | # Usually these files are written by a python script from a template
129 | # before PyInstaller builds the exe, so as to inject date/other infos into it.
130 | *.manifest
131 | *.spec
132 |
133 | # Installer logs
134 | pip-log.txt
135 | pip-delete-this-directory.txt
136 |
137 | # Unit test / coverage reports
138 | htmlcov/
139 | .tox/
140 | .coverage
141 | .cache
142 | nosetests.xml
143 | coverage.xml
144 |
145 | # Translations
146 | *.mo
147 | *.pot
148 |
149 | # Django stuff:
150 | *.log
151 |
152 | # Sphinx documentation
153 | docs/_build/
154 |
155 | # PyBuilder
156 | target/
--------------------------------------------------------------------------------
/osx/Library/Applets/Chrome session as markdown links to clipboard.app/Contents/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleAllowMixedLocalizations
6 |
7 | CFBundleDevelopmentRegion
8 | English
9 | CFBundleExecutable
10 | applet
11 | CFBundleIconFile
12 | applet
13 | CFBundleIdentifier
14 | com.apple.ScriptEditor.id.Chrome-session-as-markdown-links-to-clipboard
15 | CFBundleInfoDictionaryVersion
16 | 6.0
17 | CFBundleName
18 | Chrome session as markdown links to clipboard
19 | CFBundlePackageType
20 | APPL
21 | CFBundleShortVersionString
22 | 1.0
23 | CFBundleSignature
24 | aplt
25 | LSMinimumSystemVersionByArchitecture
26 |
27 | x86_64
28 | 10.6
29 |
30 | LSRequiresCarbon
31 |
32 | WindowState
33 |
34 | bundleDividerCollapsed
35 |
36 | bundlePositionOfDivider
37 | 0.0
38 | dividerCollapsed
39 |
40 | eventLogLevel
41 | -1
42 | name
43 | ScriptWindowState
44 | positionOfDivider
45 | 461
46 | savedFrame
47 | 48 32 739 745 0 0 1280 777
48 | selectedTab
49 | log
50 |
51 |
52 |
53 |
--------------------------------------------------------------------------------
/osx/Library/Applets/Chrome session as markdown links to clipboard.app/Contents/MacOS/applet:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diimdeep/dotfiles/1893a156f9e694de5ae7d7081de2f2c2f4bb9e76/osx/Library/Applets/Chrome session as markdown links to clipboard.app/Contents/MacOS/applet
--------------------------------------------------------------------------------
/osx/Library/Applets/Chrome session as markdown links to clipboard.app/Contents/PkgInfo:
--------------------------------------------------------------------------------
1 | APPLaplt
--------------------------------------------------------------------------------
/osx/Library/Applets/Chrome session as markdown links to clipboard.app/Contents/Resources/Scripts/main.scpt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diimdeep/dotfiles/1893a156f9e694de5ae7d7081de2f2c2f4bb9e76/osx/Library/Applets/Chrome session as markdown links to clipboard.app/Contents/Resources/Scripts/main.scpt
--------------------------------------------------------------------------------
/osx/Library/Applets/Chrome session as markdown links to clipboard.app/Contents/Resources/applet.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diimdeep/dotfiles/1893a156f9e694de5ae7d7081de2f2c2f4bb9e76/osx/Library/Applets/Chrome session as markdown links to clipboard.app/Contents/Resources/applet.icns
--------------------------------------------------------------------------------
/osx/Library/Applets/Chrome session as markdown links to clipboard.app/Contents/Resources/applet.rsrc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diimdeep/dotfiles/1893a156f9e694de5ae7d7081de2f2c2f4bb9e76/osx/Library/Applets/Chrome session as markdown links to clipboard.app/Contents/Resources/applet.rsrc
--------------------------------------------------------------------------------
/osx/Library/Applets/Chrome session as markdown links to clipboard.app/Contents/Resources/description.rtfd/TXT.rtf:
--------------------------------------------------------------------------------
1 | {\rtf1\ansi\ansicpg1252\cocoartf1348\cocoasubrtf170
2 | {\fonttbl}
3 | {\colortbl;\red255\green255\blue255;}
4 | }
--------------------------------------------------------------------------------
/osx/Library/Applets/CoreAudio kill all restart.app/Contents/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleAllowMixedLocalizations
6 |
7 | CFBundleDevelopmentRegion
8 | English
9 | CFBundleExecutable
10 | applet
11 | CFBundleIconFile
12 | applet
13 | CFBundleIdentifier
14 | com.apple.ScriptEditor.id.KillCoreAudio
15 | CFBundleInfoDictionaryVersion
16 | 6.0
17 | CFBundleName
18 | KillCoreAudio
19 | CFBundlePackageType
20 | APPL
21 | CFBundleShortVersionString
22 | 1.0
23 | CFBundleSignature
24 | aplt
25 | LSMinimumSystemVersionByArchitecture
26 |
27 | x86_64
28 | 10.6
29 |
30 | LSRequiresCarbon
31 |
32 | WindowState
33 |
34 | bundleDividerCollapsed
35 |
36 | bundlePositionOfDivider
37 | 0.0
38 | dividerCollapsed
39 |
40 | eventLogLevel
41 | 2
42 | name
43 | ScriptWindowState
44 | positionOfDivider
45 | 421
46 | savedFrame
47 | 203 105 700 672 0 0 1280 777
48 | selectedTab
49 | result
50 |
51 |
52 |
53 |
--------------------------------------------------------------------------------
/osx/Library/Applets/CoreAudio kill all restart.app/Contents/MacOS/applet:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diimdeep/dotfiles/1893a156f9e694de5ae7d7081de2f2c2f4bb9e76/osx/Library/Applets/CoreAudio kill all restart.app/Contents/MacOS/applet
--------------------------------------------------------------------------------
/osx/Library/Applets/CoreAudio kill all restart.app/Contents/PkgInfo:
--------------------------------------------------------------------------------
1 | APPLaplt
--------------------------------------------------------------------------------
/osx/Library/Applets/CoreAudio kill all restart.app/Contents/Resources/Scripts/main.scpt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diimdeep/dotfiles/1893a156f9e694de5ae7d7081de2f2c2f4bb9e76/osx/Library/Applets/CoreAudio kill all restart.app/Contents/Resources/Scripts/main.scpt
--------------------------------------------------------------------------------
/osx/Library/Applets/CoreAudio kill all restart.app/Contents/Resources/applet.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diimdeep/dotfiles/1893a156f9e694de5ae7d7081de2f2c2f4bb9e76/osx/Library/Applets/CoreAudio kill all restart.app/Contents/Resources/applet.icns
--------------------------------------------------------------------------------
/osx/Library/Applets/CoreAudio kill all restart.app/Contents/Resources/applet.rsrc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diimdeep/dotfiles/1893a156f9e694de5ae7d7081de2f2c2f4bb9e76/osx/Library/Applets/CoreAudio kill all restart.app/Contents/Resources/applet.rsrc
--------------------------------------------------------------------------------
/osx/Library/Applets/CoreAudio kill all restart.app/Contents/Resources/description.rtfd/TXT.rtf:
--------------------------------------------------------------------------------
1 | {\rtf1\ansi\ansicpg1252\cocoartf1344\cocoasubrtf720
2 | {\fonttbl}
3 | {\colortbl;\red255\green255\blue255;}
4 | }
--------------------------------------------------------------------------------
/osx/Library/Applets/Firefox Profile.app/Contents/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | English
7 | CFBundleDocumentTypes
8 |
9 |
10 | CFBundleTypeExtensions
11 |
12 | html
13 | htm
14 | shtml
15 | xht
16 | xhtml
17 |
18 | CFBundleTypeIconFile
19 | document.icns
20 | CFBundleTypeName
21 | HTML Document
22 | CFBundleTypeOSTypes
23 |
24 | HTML
25 |
26 | CFBundleTypeRole
27 | Viewer
28 |
29 |
30 | CFBundleTypeExtensions
31 |
32 | svg
33 |
34 | CFBundleTypeIconFile
35 | document.icns
36 | CFBundleTypeMIMETypes
37 |
38 | image/svg+xml
39 |
40 | CFBundleTypeName
41 | SVG document
42 | CFBundleTypeOSTypes
43 |
44 | TEXT
45 |
46 | CFBundleTypeRole
47 | Viewer
48 | NSDocumentClass
49 | BrowserDocument
50 |
51 |
52 | CFBundleTypeExtensions
53 |
54 | text
55 | txt
56 | js
57 | log
58 | css
59 | xul
60 | rdf
61 |
62 | CFBundleTypeIconFile
63 | document.icns
64 | CFBundleTypeName
65 | Text Document
66 | CFBundleTypeOSTypes
67 |
68 | TEXT
69 | utxt
70 |
71 | CFBundleTypeRole
72 | Viewer
73 |
74 |
75 | CFBundleTypeExtensions
76 |
77 | jpeg
78 | jpg
79 | png
80 | gif
81 |
82 | CFBundleTypeIconFile
83 | fileBookmark.icns
84 | CFBundleTypeName
85 | document.icns
86 | CFBundleTypeOSTypes
87 |
88 | GIFf
89 | JPEG
90 | PNGf
91 |
92 | CFBundleTypeRole
93 | Viewer
94 |
95 |
96 | CFBundleTypeExtensions
97 |
98 | oga
99 | ogg
100 |
101 | CFBundleTypeIconFile
102 | document.icns
103 | CFBundleTypeMIMETypes
104 |
105 | audio/ogg
106 |
107 | CFBundleTypeName
108 | HTML5 Audio (Ogg)
109 | CFBundleTypeRole
110 | Viewer
111 |
112 |
113 | CFBundleTypeExtensions
114 |
115 | ogv
116 |
117 | CFBundleTypeIconFile
118 | document.icns
119 | CFBundleTypeMIMETypes
120 |
121 | video/ogg
122 |
123 | CFBundleTypeName
124 | HTML5 Video (Ogg)
125 | CFBundleTypeRole
126 | Viewer
127 |
128 |
129 | CFBundleTypeExtensions
130 |
131 | webm
132 |
133 | CFBundleTypeIconFile
134 | document.icns
135 | CFBundleTypeMIMETypes
136 |
137 | video/webm
138 |
139 | CFBundleTypeName
140 | HTML5 Video (WebM)
141 | CFBundleTypeRole
142 | Viewer
143 |
144 |
145 | CFBundleExecutable
146 | launcher.sh
147 | CFBundleGetInfoString
148 | Firefox 35.0.1
149 | CFBundleIconFile
150 | firefox.icns
151 | CFBundleIdentifier
152 | org.mozilla.firefox
153 | CFBundleInfoDictionaryVersion
154 | 6.0
155 | CFBundleName
156 | Firefox
157 | CFBundlePackageType
158 | APPL
159 | CFBundleSignature
160 | MOZB
161 | CFBundleURLTypes
162 |
163 |
164 | CFBundleURLIconFile
165 | document.icns
166 | CFBundleURLName
167 | http URL
168 | CFBundleURLSchemes
169 |
170 | http
171 |
172 |
173 |
174 | CFBundleURLIconFile
175 | document.icns
176 | CFBundleURLName
177 | https URL
178 | CFBundleURLSchemes
179 |
180 | https
181 |
182 |
183 |
184 | CFBundleURLName
185 | ftp URL
186 | CFBundleURLSchemes
187 |
188 | ftp
189 |
190 |
191 |
192 | CFBundleURLName
193 | file URL
194 | CFBundleURLSchemes
195 |
196 | file
197 |
198 |
199 |
200 | NSAppleScriptEnabled
201 |
202 | LSApplicationCategoryType
203 | public.app-category.productivity
204 | LSMinimumSystemVersion
205 | 10.6
206 | LSMinimumSystemVersionByArchitecture
207 |
208 | i386
209 | 10.6.0
210 | x86_64
211 | 10.6.0
212 |
213 | NSSupportsAutomaticGraphicsSwitching
214 |
215 | NSPrincipalClass
216 | GeckoNSApplication
217 | NSDisablePersistence
218 |
219 |
220 |
221 |
--------------------------------------------------------------------------------
/osx/Library/Applets/Firefox Profile.app/Contents/MacOS/launcher.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | open -a Firefox --args -profile "/Users/wolf/.dotfiles/osx/etc/Firefox/"
--------------------------------------------------------------------------------
/osx/Library/Applets/Firefox Profile.app/Contents/PkgInfo:
--------------------------------------------------------------------------------
1 | APPLrimZ
--------------------------------------------------------------------------------
/osx/Library/Applets/Firefox Profile.app/Contents/Resources/firefox.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diimdeep/dotfiles/1893a156f9e694de5ae7d7081de2f2c2f4bb9e76/osx/Library/Applets/Firefox Profile.app/Contents/Resources/firefox.icns
--------------------------------------------------------------------------------
/osx/Library/Applets/Google Chrome Profile.app/Contents/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | BuildMachineOSBuild
6 | 12F45
7 | CFBundleDisplayName
8 | Google Chrome Profile
9 | CFBundleExecutable
10 | launcher.sh
11 | CFBundleIconFile
12 | app.icns
13 | CFBundleIdentifier
14 | com.google.ChromeProfile
15 | CFBundleInfoDictionaryVersion
16 | 6.0
17 | CFBundleName
18 | ChromeProfile
19 | CFBundlePackageType
20 | APPL
21 | CFBundleSignature
22 | rimZ
23 |
24 |
25 |
--------------------------------------------------------------------------------
/osx/Library/Applets/Google Chrome Profile.app/Contents/MacOS/launcher.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | open -a "Google Chrome" --args --user-data-dir="/Users/wolf/.dotfiles/osx/etc/GoogleChrome"
3 |
4 | # Wrapper script that starts independent instance of Google Chrome for Mac
5 |
6 | # To use: copy Google Chrome.app to a new location. Copy this script into
7 | # the Contents/MacOS directory of the copied app. Edit the copied app's
8 | # Contents/Info.plist and change CFBundleExecutable to "wrapper.sh",
9 | # and pick a unique CFBundleIdentifier.
10 |
11 | # Instance data will be stored here. You can copy your existing data
12 | # to this location if you want to preserve your existing user profile(s).
13 | # You can also change this if you want to store the data somewhere else.
14 | #INSTANCE_DIR="/Users/wolf/.dotfiles/osx/etc/GoogleChrome"
15 |
16 | # Find the Google Chrome binary:
17 | #CHOME_BIN="$(dirname "$0")/Google Chrome"
18 |
19 | # Start Chrome
20 | #exec "$CHOME_BIN" --user-data-dir="$INSTANCE_DIR"
21 |
22 | #exec "$(dirname "$0")/Google Chrome" --user-data-dir="/Users/wolf/.dotfiles/osx/etc/GoogleChrome"
--------------------------------------------------------------------------------
/osx/Library/Applets/Google Chrome Profile.app/Contents/PkgInfo:
--------------------------------------------------------------------------------
1 | APPLrimZ
--------------------------------------------------------------------------------
/osx/Library/Applets/Google Chrome Profile.app/Contents/Resources/app.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diimdeep/dotfiles/1893a156f9e694de5ae7d7081de2f2c2f4bb9e76/osx/Library/Applets/Google Chrome Profile.app/Contents/Resources/app.icns
--------------------------------------------------------------------------------
/osx/Library/Applets/Safari session as markdown links to clipboard.app/Contents/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleAllowMixedLocalizations
6 |
7 | CFBundleDevelopmentRegion
8 | English
9 | CFBundleExecutable
10 | applet
11 | CFBundleIconFile
12 | applet
13 | CFBundleIdentifier
14 | com.apple.ScriptEditor.id.Safari-session-as-markdown-links-to-clipboard
15 | CFBundleInfoDictionaryVersion
16 | 6.0
17 | CFBundleName
18 | Safari session as markdown links to clipboard
19 | CFBundlePackageType
20 | APPL
21 | CFBundleShortVersionString
22 | 1.0
23 | CFBundleSignature
24 | aplt
25 | LSMinimumSystemVersionByArchitecture
26 |
27 | x86_64
28 | 10.6
29 |
30 | LSRequiresCarbon
31 |
32 | WindowState
33 |
34 | bundleDividerCollapsed
35 |
36 | bundlePositionOfDivider
37 | 0.0
38 | dividerCollapsed
39 |
40 | eventLogLevel
41 | 2
42 | name
43 | ScriptWindowState
44 | positionOfDivider
45 | 421
46 | savedFrame
47 | 41 68 700 672 0 0 1280 777
48 | selectedTab
49 | description
50 |
51 |
52 |
53 |
--------------------------------------------------------------------------------
/osx/Library/Applets/Safari session as markdown links to clipboard.app/Contents/MacOS/applet:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diimdeep/dotfiles/1893a156f9e694de5ae7d7081de2f2c2f4bb9e76/osx/Library/Applets/Safari session as markdown links to clipboard.app/Contents/MacOS/applet
--------------------------------------------------------------------------------
/osx/Library/Applets/Safari session as markdown links to clipboard.app/Contents/PkgInfo:
--------------------------------------------------------------------------------
1 | APPLaplt
--------------------------------------------------------------------------------
/osx/Library/Applets/Safari session as markdown links to clipboard.app/Contents/Resources/Scripts/main.scpt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diimdeep/dotfiles/1893a156f9e694de5ae7d7081de2f2c2f4bb9e76/osx/Library/Applets/Safari session as markdown links to clipboard.app/Contents/Resources/Scripts/main.scpt
--------------------------------------------------------------------------------
/osx/Library/Applets/Safari session as markdown links to clipboard.app/Contents/Resources/applet.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diimdeep/dotfiles/1893a156f9e694de5ae7d7081de2f2c2f4bb9e76/osx/Library/Applets/Safari session as markdown links to clipboard.app/Contents/Resources/applet.icns
--------------------------------------------------------------------------------
/osx/Library/Applets/Safari session as markdown links to clipboard.app/Contents/Resources/applet.rsrc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diimdeep/dotfiles/1893a156f9e694de5ae7d7081de2f2c2f4bb9e76/osx/Library/Applets/Safari session as markdown links to clipboard.app/Contents/Resources/applet.rsrc
--------------------------------------------------------------------------------
/osx/Library/Applets/Safari session as markdown links to clipboard.app/Contents/Resources/description.rtfd/TXT.rtf:
--------------------------------------------------------------------------------
1 | {\rtf1\ansi\ansicpg1252\cocoartf1404\cocoasubrtf460
2 | {\fonttbl}
3 | {\colortbl;\red255\green255\blue255;}
4 | }
--------------------------------------------------------------------------------
/osx/Library/Applets/StartScreenCapture.app/Contents/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AMIsApplet
6 |
7 | AMStayOpen
8 |
9 | BuildMachineOSBuild
10 | 12E39
11 | CFBundleDevelopmentRegion
12 | English
13 | CFBundleDocumentTypes
14 |
15 |
16 | CFBundleTypeExtensions
17 |
18 | *
19 |
20 | CFBundleTypeName
21 | Automator workflow file
22 | CFBundleTypeOSTypes
23 |
24 | ****
25 |
26 | CFBundleTypeRole
27 | Viewer
28 |
29 |
30 | CFBundleExecutable
31 | Application Stub
32 | CFBundleIconFile
33 | AutomatorApplet
34 | CFBundleIdentifier
35 | com.apple.automator.StartScreenCapture
36 | CFBundleInfoDictionaryVersion
37 | 6.0
38 | CFBundleName
39 | StartScreenCapture
40 | CFBundlePackageType
41 | APPL
42 | CFBundleShortVersionString
43 | 1.1.1
44 | CFBundleSignature
45 | ????
46 | CFBundleURLTypes
47 |
48 | CFBundleVersion
49 | 346
50 | DTCompiler
51 | com.apple.compilers.llvm.clang.1_0
52 | DTPlatformBuild
53 | 4F250
54 | DTPlatformVersion
55 | GM
56 | DTSDKBuild
57 | 12E39
58 | DTSDKName
59 |
60 | DTXcode
61 | 0440
62 | DTXcodeBuild
63 | 4F250
64 | LSMinimumSystemVersion
65 | 10.5
66 | LSMinimumSystemVersionByArchitecture
67 |
68 | x86_64
69 | 10.6
70 |
71 | LSUIElement
72 |
73 | NSAppleScriptEnabled
74 | YES
75 | NSMainNibFile
76 | ApplicationStub
77 | NSPrincipalClass
78 | NSApplication
79 | NSServices
80 |
81 | UTExportedTypeDeclarations
82 |
83 | UTImportedTypeDeclarations
84 |
85 |
86 |
87 |
--------------------------------------------------------------------------------
/osx/Library/Applets/StartScreenCapture.app/Contents/MacOS/Application Stub:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diimdeep/dotfiles/1893a156f9e694de5ae7d7081de2f2c2f4bb9e76/osx/Library/Applets/StartScreenCapture.app/Contents/MacOS/Application Stub
--------------------------------------------------------------------------------
/osx/Library/Applets/StartScreenCapture.app/Contents/Resources/AutomatorApplet.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diimdeep/dotfiles/1893a156f9e694de5ae7d7081de2f2c2f4bb9e76/osx/Library/Applets/StartScreenCapture.app/Contents/Resources/AutomatorApplet.icns
--------------------------------------------------------------------------------
/osx/Library/Applets/StartScreenCapture.app/Contents/Resources/English.lproj/ApplicationStub.nib:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diimdeep/dotfiles/1893a156f9e694de5ae7d7081de2f2c2f4bb9e76/osx/Library/Applets/StartScreenCapture.app/Contents/Resources/English.lproj/ApplicationStub.nib
--------------------------------------------------------------------------------
/osx/Library/Applets/StartScreenCapture.app/Contents/Resources/ru.lproj/ApplicationStub.nib:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diimdeep/dotfiles/1893a156f9e694de5ae7d7081de2f2c2f4bb9e76/osx/Library/Applets/StartScreenCapture.app/Contents/Resources/ru.lproj/ApplicationStub.nib
--------------------------------------------------------------------------------
/osx/Library/Applets/StopScreenCapture.app/Contents/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AMIsApplet
6 |
7 | AMStayOpen
8 |
9 | BuildMachineOSBuild
10 | 12E39
11 | CFBundleDevelopmentRegion
12 | English
13 | CFBundleDocumentTypes
14 |
15 |
16 | CFBundleTypeExtensions
17 |
18 | *
19 |
20 | CFBundleTypeName
21 | Automator workflow file
22 | CFBundleTypeOSTypes
23 |
24 | ****
25 |
26 | CFBundleTypeRole
27 | Viewer
28 |
29 |
30 | CFBundleExecutable
31 | Application Stub
32 | CFBundleIconFile
33 | AutomatorApplet
34 | CFBundleIdentifier
35 | com.apple.automator.StopScreenCapture
36 | CFBundleInfoDictionaryVersion
37 | 6.0
38 | CFBundleName
39 | StopScreenCapture
40 | CFBundlePackageType
41 | APPL
42 | CFBundleShortVersionString
43 | 1.1.1
44 | CFBundleSignature
45 | ????
46 | CFBundleURLTypes
47 |
48 | CFBundleVersion
49 | 346
50 | DTCompiler
51 | com.apple.compilers.llvm.clang.1_0
52 | DTPlatformBuild
53 | 4F250
54 | DTPlatformVersion
55 | GM
56 | DTSDKBuild
57 | 12E39
58 | DTSDKName
59 |
60 | DTXcode
61 | 0440
62 | DTXcodeBuild
63 | 4F250
64 | LSMinimumSystemVersion
65 | 10.5
66 | LSMinimumSystemVersionByArchitecture
67 |
68 | x86_64
69 | 10.6
70 |
71 | LSUIElement
72 |
73 | NSAppleScriptEnabled
74 | YES
75 | NSMainNibFile
76 | ApplicationStub
77 | NSPrincipalClass
78 | NSApplication
79 | NSServices
80 |
81 | UTExportedTypeDeclarations
82 |
83 | UTImportedTypeDeclarations
84 |
85 |
86 |
87 |
--------------------------------------------------------------------------------
/osx/Library/Applets/StopScreenCapture.app/Contents/MacOS/Application Stub:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diimdeep/dotfiles/1893a156f9e694de5ae7d7081de2f2c2f4bb9e76/osx/Library/Applets/StopScreenCapture.app/Contents/MacOS/Application Stub
--------------------------------------------------------------------------------
/osx/Library/Applets/StopScreenCapture.app/Contents/Resources/AutomatorApplet.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diimdeep/dotfiles/1893a156f9e694de5ae7d7081de2f2c2f4bb9e76/osx/Library/Applets/StopScreenCapture.app/Contents/Resources/AutomatorApplet.icns
--------------------------------------------------------------------------------
/osx/Library/Applets/StopScreenCapture.app/Contents/Resources/English.lproj/ApplicationStub.nib:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diimdeep/dotfiles/1893a156f9e694de5ae7d7081de2f2c2f4bb9e76/osx/Library/Applets/StopScreenCapture.app/Contents/Resources/English.lproj/ApplicationStub.nib
--------------------------------------------------------------------------------
/osx/Library/Applets/StopScreenCapture.app/Contents/Resources/ru.lproj/ApplicationStub.nib:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diimdeep/dotfiles/1893a156f9e694de5ae7d7081de2f2c2f4bb9e76/osx/Library/Applets/StopScreenCapture.app/Contents/Resources/ru.lproj/ApplicationStub.nib
--------------------------------------------------------------------------------
/osx/Library/Applets/StopScreenCapture.app/Contents/document.wflow:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AMApplicationBuild
6 | 346
7 | AMApplicationVersion
8 | 2.3
9 | AMDocumentVersion
10 | 2
11 | actions
12 |
13 |
14 | action
15 |
16 | AMActionVersion
17 | 7.7.1
18 | AMApplication
19 |
20 | QuickTime Player
21 |
22 | AMParameterProperties
23 |
24 | shouldClose
25 |
26 |
27 | AMProvides
28 |
29 | Container
30 | List
31 | Types
32 |
33 | com.apple.applescript.alias-object.movie
34 |
35 |
36 | AMRequiredResources
37 |
38 | ActionBundlePath
39 | /System/Library/Automator/Stop Capture.action
40 | ActionName
41 | Stop Capture
42 | ActionParameters
43 |
44 | shouldClose
45 |
46 |
47 | BundleIdentifier
48 | com.apple.StopCapture
49 | CFBundleVersion
50 | 7.7.1
51 | CanShowSelectedItemsWhenRun
52 |
53 | CanShowWhenRun
54 |
55 | Category
56 |
57 | AMCategoryMovies
58 |
59 | Class Name
60 | AMAppleScriptAction
61 | Keywords
62 |
63 | QuickTime
64 | Movie
65 | Capture
66 | Stop
67 |
68 | OutputUUID
69 | 33CF4111-8C08-4079-A9E1-06A61C9F54D2
70 | UUID
71 | 011F1A58-A253-47B1-B057-6F404DC116E2
72 | UnlocalizedApplications
73 |
74 | QuickTime Player
75 |
76 | arguments
77 |
78 | 0
79 |
80 | default value
81 |
82 | name
83 | shouldClose
84 | required
85 | 0
86 | type
87 | 0
88 | uuid
89 | 0
90 |
91 |
92 | conversionLabel
93 | 0
94 | isViewVisible
95 |
96 | location
97 | 505.000000:554.000000
98 | nibPath
99 | /System/Library/Automator/Stop Capture.action/Contents/Resources/English.lproj/main.nib
100 |
101 | isViewVisible
102 |
103 |
104 |
105 | connectors
106 |
107 | workflowMetaData
108 |
109 | workflowTypeIdentifier
110 | com.apple.Automator.application
111 |
112 |
113 |
114 |
--------------------------------------------------------------------------------
/osx/Library/Applets/Yandex Profile.app/Contents/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | BuildMachineOSBuild
6 | 12F45
7 | CFBundleDisplayName
8 | Yandex Profile
9 | CFBundleExecutable
10 | launcher.sh
11 | CFBundleIconFile
12 | app.icns
13 | CFBundleIdentifier
14 | com.yandex.YandexProfile
15 | CFBundleInfoDictionaryVersion
16 | 6.0
17 | CFBundleName
18 | YandexProfile
19 | CFBundlePackageType
20 | APPL
21 | CFBundleSignature
22 | rimZ
23 |
24 |
25 |
--------------------------------------------------------------------------------
/osx/Library/Applets/Yandex Profile.app/Contents/MacOS/launcher.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | open -a "Yandex" --args --user-data-dir="/Users/wolf/.dotfiles/osx/etc/YandexBrowser"
3 |
4 | # Wrapper script that starts independent instance of Google Chrome for Mac
5 |
6 | # To use: copy Google Chrome.app to a new location. Copy this script into
7 | # the Contents/MacOS directory of the copied app. Edit the copied app's
8 | # Contents/Info.plist and change CFBundleExecutable to "wrapper.sh",
9 | # and pick a unique CFBundleIdentifier.
10 |
11 | # Instance data will be stored here. You can copy your existing data
12 | # to this location if you want to preserve your existing user profile(s).
13 | # You can also change this if you want to store the data somewhere else.
14 | #INSTANCE_DIR="/Users/wolf/.dotfiles/osx/etc/GoogleChrome"
15 |
16 | # Find the Google Chrome binary:
17 | #CHOME_BIN="$(dirname "$0")/Google Chrome"
18 |
19 | # Start Chrome
20 | #exec "$CHOME_BIN" --user-data-dir="$INSTANCE_DIR"
21 |
22 | #exec "$(dirname "$0")/Google Chrome" --user-data-dir="/Users/wolf/.dotfiles/osx/etc/GoogleChrome"
--------------------------------------------------------------------------------
/osx/Library/Applets/Yandex Profile.app/Contents/PkgInfo:
--------------------------------------------------------------------------------
1 | APPLrimZ
--------------------------------------------------------------------------------
/osx/Library/Applets/Yandex Profile.app/Contents/Resources/app.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diimdeep/dotfiles/1893a156f9e694de5ae7d7081de2f2c2f4bb9e76/osx/Library/Applets/Yandex Profile.app/Contents/Resources/app.icns
--------------------------------------------------------------------------------
/osx/Library/Droplets/Eject Disks.app/Contents/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleAllowMixedLocalizations
6 |
7 | CFBundleDevelopmentRegion
8 | English
9 | CFBundleExecutable
10 | applet
11 | CFBundleIconFile
12 | applet
13 | CFBundleIdentifier
14 | com.apple.ScriptEditor.id.Eject-Disks
15 | CFBundleInfoDictionaryVersion
16 | 6.0
17 | CFBundleName
18 | Eject Disks
19 | CFBundlePackageType
20 | APPL
21 | CFBundleShortVersionString
22 | 1.0
23 | CFBundleSignature
24 | aplt
25 | LSMinimumSystemVersionByArchitecture
26 |
27 | x86_64
28 | 10.6
29 |
30 | LSRequiresCarbon
31 |
32 | WindowState
33 |
34 | bundleDividerCollapsed
35 |
36 | bundlePositionOfDivider
37 | 0.0
38 | dividerCollapsed
39 |
40 | eventLogLevel
41 | 2
42 | name
43 | ScriptWindowState
44 | positionOfDivider
45 | 421
46 | savedFrame
47 | 50 32 700 672 0 0 1280 777
48 | selectedTab
49 | description
50 |
51 |
52 |
53 |
--------------------------------------------------------------------------------
/osx/Library/Droplets/Eject Disks.app/Contents/MacOS/applet:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diimdeep/dotfiles/1893a156f9e694de5ae7d7081de2f2c2f4bb9e76/osx/Library/Droplets/Eject Disks.app/Contents/MacOS/applet
--------------------------------------------------------------------------------
/osx/Library/Droplets/Eject Disks.app/Contents/PkgInfo:
--------------------------------------------------------------------------------
1 | APPLaplt
--------------------------------------------------------------------------------
/osx/Library/Droplets/Eject Disks.app/Contents/Resources/Scripts/main.scpt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diimdeep/dotfiles/1893a156f9e694de5ae7d7081de2f2c2f4bb9e76/osx/Library/Droplets/Eject Disks.app/Contents/Resources/Scripts/main.scpt
--------------------------------------------------------------------------------
/osx/Library/Droplets/Eject Disks.app/Contents/Resources/applet.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diimdeep/dotfiles/1893a156f9e694de5ae7d7081de2f2c2f4bb9e76/osx/Library/Droplets/Eject Disks.app/Contents/Resources/applet.icns
--------------------------------------------------------------------------------
/osx/Library/Droplets/Eject Disks.app/Contents/Resources/applet.rsrc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diimdeep/dotfiles/1893a156f9e694de5ae7d7081de2f2c2f4bb9e76/osx/Library/Droplets/Eject Disks.app/Contents/Resources/applet.rsrc
--------------------------------------------------------------------------------
/osx/Library/Droplets/Eject Disks.app/Contents/Resources/description.rtfd/TXT.rtf:
--------------------------------------------------------------------------------
1 | {\rtf1\ansi\ansicpg1252\cocoartf1344\cocoasubrtf720
2 | {\fonttbl}
3 | {\colortbl;\red255\green255\blue255;}
4 | }
--------------------------------------------------------------------------------
/osx/Library/Droplets/Eject Disks.app/Icon
:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diimdeep/dotfiles/1893a156f9e694de5ae7d7081de2f2c2f4bb9e76/osx/Library/Droplets/Eject Disks.app/Icon
--------------------------------------------------------------------------------
/osx/Library/Droplets/Eject Disks.applescript:
--------------------------------------------------------------------------------
1 | -- Eject all local disks
2 |
3 | tell application "Finder"
4 | eject (every disk)
5 | end tell
--------------------------------------------------------------------------------
/osx/Library/Droplets/Finder Window Here.app/Contents/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleAllowMixedLocalizations
6 |
7 | CFBundleDevelopmentRegion
8 | English
9 | CFBundleExecutable
10 | applet
11 | CFBundleIconFile
12 | applet
13 | CFBundleIdentifier
14 | com.apple.ScriptEditor.id.New-Finder-Window-Here
15 | CFBundleInfoDictionaryVersion
16 | 6.0
17 | CFBundleName
18 | New Finder Window Here
19 | CFBundlePackageType
20 | APPL
21 | CFBundleShortVersionString
22 | 1.0
23 | CFBundleSignature
24 | aplt
25 | LSMinimumSystemVersionByArchitecture
26 |
27 | x86_64
28 | 10.6
29 |
30 | LSRequiresCarbon
31 |
32 | WindowState
33 |
34 | bundleDividerCollapsed
35 |
36 | bundlePositionOfDivider
37 | 0.0
38 | dividerCollapsed
39 |
40 | eventLogLevel
41 | 2
42 | name
43 | ScriptWindowState
44 | positionOfDivider
45 | 421
46 | savedFrame
47 | 50 32 700 672 0 0 1280 777
48 | selectedTab
49 | description
50 |
51 |
52 |
53 |
--------------------------------------------------------------------------------
/osx/Library/Droplets/Finder Window Here.app/Contents/MacOS/applet:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diimdeep/dotfiles/1893a156f9e694de5ae7d7081de2f2c2f4bb9e76/osx/Library/Droplets/Finder Window Here.app/Contents/MacOS/applet
--------------------------------------------------------------------------------
/osx/Library/Droplets/Finder Window Here.app/Contents/PkgInfo:
--------------------------------------------------------------------------------
1 | APPLaplt
--------------------------------------------------------------------------------
/osx/Library/Droplets/Finder Window Here.app/Contents/Resources/Scripts/main.scpt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diimdeep/dotfiles/1893a156f9e694de5ae7d7081de2f2c2f4bb9e76/osx/Library/Droplets/Finder Window Here.app/Contents/Resources/Scripts/main.scpt
--------------------------------------------------------------------------------
/osx/Library/Droplets/Finder Window Here.app/Contents/Resources/applet.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diimdeep/dotfiles/1893a156f9e694de5ae7d7081de2f2c2f4bb9e76/osx/Library/Droplets/Finder Window Here.app/Contents/Resources/applet.icns
--------------------------------------------------------------------------------
/osx/Library/Droplets/Finder Window Here.app/Contents/Resources/applet.rsrc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diimdeep/dotfiles/1893a156f9e694de5ae7d7081de2f2c2f4bb9e76/osx/Library/Droplets/Finder Window Here.app/Contents/Resources/applet.rsrc
--------------------------------------------------------------------------------
/osx/Library/Droplets/Finder Window Here.app/Contents/Resources/description.rtfd/TXT.rtf:
--------------------------------------------------------------------------------
1 | {\rtf1\ansi\ansicpg1252\cocoartf1344\cocoasubrtf720
2 | {\fonttbl}
3 | {\colortbl;\red255\green255\blue255;}
4 | }
--------------------------------------------------------------------------------
/osx/Library/Droplets/Finder Window Here.scpt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diimdeep/dotfiles/1893a156f9e694de5ae7d7081de2f2c2f4bb9e76/osx/Library/Droplets/Finder Window Here.scpt
--------------------------------------------------------------------------------
/osx/Library/Droplets/Finder to ForkLift.app/Contents/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleAllowMixedLocalizations
6 |
7 | CFBundleDevelopmentRegion
8 | English
9 | CFBundleExecutable
10 | applet
11 | CFBundleIconFile
12 | applet
13 | CFBundleIdentifier
14 | com.apple.ScriptEditor.id.Finder-to-ForkLift
15 | CFBundleInfoDictionaryVersion
16 | 6.0
17 | CFBundleName
18 | Finder to ForkLift
19 | CFBundlePackageType
20 | APPL
21 | CFBundleShortVersionString
22 | 1.0
23 | CFBundleSignature
24 | aplt
25 | LSMinimumSystemVersionByArchitecture
26 |
27 | x86_64
28 | 10.6
29 |
30 | LSRequiresCarbon
31 |
32 | WindowState
33 |
34 | bundleDividerCollapsed
35 |
36 | bundlePositionOfDivider
37 | 0.0
38 | dividerCollapsed
39 |
40 | eventLogLevel
41 | 2
42 | name
43 | ScriptWindowState
44 | positionOfDivider
45 | 421
46 | savedFrame
47 | 79 105 700 672 0 0 1280 777
48 | selectedTab
49 | description
50 |
51 |
52 |
53 |
--------------------------------------------------------------------------------
/osx/Library/Droplets/Finder to ForkLift.app/Contents/MacOS/applet:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diimdeep/dotfiles/1893a156f9e694de5ae7d7081de2f2c2f4bb9e76/osx/Library/Droplets/Finder to ForkLift.app/Contents/MacOS/applet
--------------------------------------------------------------------------------
/osx/Library/Droplets/Finder to ForkLift.app/Contents/PkgInfo:
--------------------------------------------------------------------------------
1 | APPLaplt
--------------------------------------------------------------------------------
/osx/Library/Droplets/Finder to ForkLift.app/Contents/Resources/Scripts/main.scpt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diimdeep/dotfiles/1893a156f9e694de5ae7d7081de2f2c2f4bb9e76/osx/Library/Droplets/Finder to ForkLift.app/Contents/Resources/Scripts/main.scpt
--------------------------------------------------------------------------------
/osx/Library/Droplets/Finder to ForkLift.app/Contents/Resources/applet.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diimdeep/dotfiles/1893a156f9e694de5ae7d7081de2f2c2f4bb9e76/osx/Library/Droplets/Finder to ForkLift.app/Contents/Resources/applet.icns
--------------------------------------------------------------------------------
/osx/Library/Droplets/Finder to ForkLift.app/Contents/Resources/applet.rsrc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diimdeep/dotfiles/1893a156f9e694de5ae7d7081de2f2c2f4bb9e76/osx/Library/Droplets/Finder to ForkLift.app/Contents/Resources/applet.rsrc
--------------------------------------------------------------------------------
/osx/Library/Droplets/Finder to ForkLift.app/Contents/Resources/description.rtfd/TXT.rtf:
--------------------------------------------------------------------------------
1 | {\rtf1\ansi\ansicpg1252\cocoartf1347\cocoasubrtf570
2 | {\fonttbl}
3 | {\colortbl;\red255\green255\blue255;}
4 | }
--------------------------------------------------------------------------------
/osx/Library/Droplets/Finder to ForkLift.app/Icon
:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diimdeep/dotfiles/1893a156f9e694de5ae7d7081de2f2c2f4bb9e76/osx/Library/Droplets/Finder to ForkLift.app/Icon
--------------------------------------------------------------------------------
/osx/Library/Droplets/Finder to ForkLift.applescript:
--------------------------------------------------------------------------------
1 | on isRunning(appName)
2 | tell application "System Events" to (name of processes) contains appName
3 | end isRunning
4 |
5 | on openInFL(absPath)
6 | if application "ForkLift" is not running then
7 | activate application "ForkLift"
8 | delay 1
9 | end if
10 |
11 | tell application "System Events"
12 | keystroke "g" using {command down, shift down}
13 | keystroke absPath
14 | keystroke return
15 | end tell
16 | end openInFL
17 |
18 | on run
19 | tell application "Finder"
20 | try
21 | set theFolder to (folder of the front window as alias)
22 | on error
23 | set theFolder to (path to desktop folder as alias)
24 | end try
25 | end tell
26 | openInFL(theFolder)
27 | end run
28 |
--------------------------------------------------------------------------------
/osx/Library/Droplets/Finder to SourceTree.app/Contents/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleAllowMixedLocalizations
6 |
7 | CFBundleDevelopmentRegion
8 | English
9 | CFBundleExecutable
10 | applet
11 | CFBundleIconFile
12 | applet
13 | CFBundleIdentifier
14 | com.apple.ScriptEditor.id.pwd-to-SourceTree2
15 | CFBundleInfoDictionaryVersion
16 | 6.0
17 | CFBundleName
18 | pwd to SourceTree2
19 | CFBundlePackageType
20 | APPL
21 | CFBundleShortVersionString
22 | 1.0
23 | CFBundleSignature
24 | aplt
25 | LSMinimumSystemVersionByArchitecture
26 |
27 | x86_64
28 | 10.6
29 |
30 | LSRequiresCarbon
31 |
32 | WindowState
33 |
34 | bundleDividerCollapsed
35 |
36 | bundlePositionOfDivider
37 | 0.0
38 | dividerCollapsed
39 |
40 | eventLogLevel
41 | 2
42 | name
43 | ScriptWindowState
44 | positionOfDivider
45 | 467
46 | savedFrame
47 | 38 32 1242 745 0 0 1280 777
48 | selectedTab
49 | description
50 |
51 |
52 |
53 |
--------------------------------------------------------------------------------
/osx/Library/Droplets/Finder to SourceTree.app/Contents/MacOS/applet:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diimdeep/dotfiles/1893a156f9e694de5ae7d7081de2f2c2f4bb9e76/osx/Library/Droplets/Finder to SourceTree.app/Contents/MacOS/applet
--------------------------------------------------------------------------------
/osx/Library/Droplets/Finder to SourceTree.app/Contents/PkgInfo:
--------------------------------------------------------------------------------
1 | APPLaplt
--------------------------------------------------------------------------------
/osx/Library/Droplets/Finder to SourceTree.app/Contents/Resources/Scripts/main.scpt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diimdeep/dotfiles/1893a156f9e694de5ae7d7081de2f2c2f4bb9e76/osx/Library/Droplets/Finder to SourceTree.app/Contents/Resources/Scripts/main.scpt
--------------------------------------------------------------------------------
/osx/Library/Droplets/Finder to SourceTree.app/Contents/Resources/applet.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diimdeep/dotfiles/1893a156f9e694de5ae7d7081de2f2c2f4bb9e76/osx/Library/Droplets/Finder to SourceTree.app/Contents/Resources/applet.icns
--------------------------------------------------------------------------------
/osx/Library/Droplets/Finder to SourceTree.app/Contents/Resources/applet.rsrc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diimdeep/dotfiles/1893a156f9e694de5ae7d7081de2f2c2f4bb9e76/osx/Library/Droplets/Finder to SourceTree.app/Contents/Resources/applet.rsrc
--------------------------------------------------------------------------------
/osx/Library/Droplets/Finder to SourceTree.app/Contents/Resources/description.rtfd/TXT.rtf:
--------------------------------------------------------------------------------
1 | {\rtf1\ansi\ansicpg1252\cocoartf1344\cocoasubrtf720
2 | {\fonttbl}
3 | {\colortbl;\red255\green255\blue255;}
4 | }
--------------------------------------------------------------------------------
/osx/Library/Droplets/Finder to SourceTree.app/Icon
:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diimdeep/dotfiles/1893a156f9e694de5ae7d7081de2f2c2f4bb9e76/osx/Library/Droplets/Finder to SourceTree.app/Icon
--------------------------------------------------------------------------------
/osx/Library/Droplets/Finder to SourceTree.scpt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diimdeep/dotfiles/1893a156f9e694de5ae7d7081de2f2c2f4bb9e76/osx/Library/Droplets/Finder to SourceTree.scpt
--------------------------------------------------------------------------------
/osx/Library/Droplets/Finder to iTerm.app/Contents/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | BuildMachineOSBuild
6 | 13A2093
7 | CFBundleDevelopmentRegion
8 | English
9 | CFBundleExecutable
10 | cd to
11 | CFBundleIconFile
12 | lion.icns
13 | CFBundleIdentifier
14 | name.tuley.jay.cdto
15 | CFBundleInfoDictionaryVersion
16 | 6.0
17 | CFBundleName
18 | cd to
19 | CFBundlePackageType
20 | APPL
21 | CFBundleShortVersionString
22 | 2.6
23 | CFBundleSignature
24 | ????
25 | CFBundleVersion
26 | 6
27 | DTCompiler
28 | com.apple.compilers.llvm.clang.1_0
29 | DTPlatformBuild
30 | 5A3005
31 | DTPlatformVersion
32 | GM
33 | DTSDKBuild
34 | 13A595
35 | DTSDKName
36 | macosx10.9
37 | DTXcode
38 | 0502
39 | DTXcodeBuild
40 | 5A3005
41 | LSApplicationCategoryType
42 | public.app-category.utilities
43 | LSMinimumSystemVersion
44 | 10.7
45 | LSUIElement
46 | 1
47 | NSMainNibFile
48 | MainMenu
49 | NSPrincipalClass
50 | NSApplication
51 |
52 |
53 |
--------------------------------------------------------------------------------
/osx/Library/Droplets/Finder to iTerm.app/Contents/MacOS/cd to:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diimdeep/dotfiles/1893a156f9e694de5ae7d7081de2f2c2f4bb9e76/osx/Library/Droplets/Finder to iTerm.app/Contents/MacOS/cd to
--------------------------------------------------------------------------------
/osx/Library/Droplets/Finder to iTerm.app/Contents/PkgInfo:
--------------------------------------------------------------------------------
1 | APPL????
--------------------------------------------------------------------------------
/osx/Library/Droplets/Finder to iTerm.app/Contents/Plugins/iterm.bundle/Contents/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | BuildMachineOSBuild
6 | 13A2093
7 | CFBundleDevelopmentRegion
8 | English
9 | CFBundleExecutable
10 | iterm
11 | CFBundleIdentifier
12 | indy.jt.cdto.plugin.iterm
13 | CFBundleInfoDictionaryVersion
14 | 6.0
15 | CFBundleName
16 | iterm
17 | CFBundlePackageType
18 | BNDL
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1.1
23 | DTCompiler
24 | com.apple.compilers.llvm.clang.1_0
25 | DTPlatformBuild
26 | 5A3005
27 | DTPlatformVersion
28 | GM
29 | DTSDKBuild
30 | 13A595
31 | DTSDKName
32 | macosx10.9
33 | DTXcode
34 | 0502
35 | DTXcodeBuild
36 | 5A3005
37 | NSPrincipalClass
38 | CD2ITerm
39 |
40 |
41 |
--------------------------------------------------------------------------------
/osx/Library/Droplets/Finder to iTerm.app/Contents/Plugins/iterm.bundle/Contents/MacOS/iterm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diimdeep/dotfiles/1893a156f9e694de5ae7d7081de2f2c2f4bb9e76/osx/Library/Droplets/Finder to iTerm.app/Contents/Plugins/iterm.bundle/Contents/MacOS/iterm
--------------------------------------------------------------------------------
/osx/Library/Droplets/Finder to iTerm.app/Contents/Plugins/iterm.bundle/Contents/Resources/English.lproj/InfoPlist.strings:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diimdeep/dotfiles/1893a156f9e694de5ae7d7081de2f2c2f4bb9e76/osx/Library/Droplets/Finder to iTerm.app/Contents/Plugins/iterm.bundle/Contents/Resources/English.lproj/InfoPlist.strings
--------------------------------------------------------------------------------
/osx/Library/Droplets/Finder to iTerm.app/Contents/Plugins/iterm.bundle/Contents/_CodeSignature/CodeResources:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | files
6 |
7 | Resources/English.lproj/InfoPlist.strings
8 |
9 | hash
10 |
11 | XPE7q8aQQqhr6TD67Ub29p2PyZs=
12 |
13 | optional
14 |
15 |
16 |
17 | files2
18 |
19 | Resources/English.lproj/InfoPlist.strings
20 |
21 | hash
22 |
23 | XPE7q8aQQqhr6TD67Ub29p2PyZs=
24 |
25 | optional
26 |
27 |
28 |
29 | rules
30 |
31 | ^Resources/
32 |
33 | ^Resources/.*\.lproj/
34 |
35 | optional
36 |
37 | weight
38 | 1000
39 |
40 | ^Resources/.*\.lproj/locversion.plist$
41 |
42 | omit
43 |
44 | weight
45 | 1100
46 |
47 | ^version.plist$
48 |
49 |
50 | rules2
51 |
52 | .*\.dSYM($|/)
53 |
54 | weight
55 | 11
56 |
57 | ^(.*/)?\.DS_Store$
58 |
59 | omit
60 |
61 | weight
62 | 2000
63 |
64 | ^(Frameworks|SharedFrameworks|PlugIns|Plug-ins|XPCServices|Helpers|MacOS|Library/(Automator|Spotlight|LoginItems))/
65 |
66 | nested
67 |
68 | weight
69 | 10
70 |
71 | ^.*
72 |
73 | ^Info\.plist$
74 |
75 | omit
76 |
77 | weight
78 | 20
79 |
80 | ^PkgInfo$
81 |
82 | omit
83 |
84 | weight
85 | 20
86 |
87 | ^Resources/
88 |
89 | weight
90 | 20
91 |
92 | ^Resources/.*\.lproj/
93 |
94 | optional
95 |
96 | weight
97 | 1000
98 |
99 | ^Resources/.*\.lproj/locversion.plist$
100 |
101 | omit
102 |
103 | weight
104 | 1100
105 |
106 | ^[^/]+$
107 |
108 | nested
109 |
110 | weight
111 | 10
112 |
113 | ^embedded\.provisionprofile$
114 |
115 | weight
116 | 20
117 |
118 | ^version\.plist$
119 |
120 | weight
121 | 20
122 |
123 |
124 |
125 |
126 |
--------------------------------------------------------------------------------
/osx/Library/Droplets/Finder to iTerm.app/Contents/Resources/CD2PluginProtocolV1.h:
--------------------------------------------------------------------------------
1 | /*
2 | * CD2PluginProtocolV1.h
3 | * cd to ...
4 | *
5 | * Created by James Tuley on 2/18/07.
6 | * Copyright 2007 Jay Tuley. All rights reserved.
7 | *
8 | */
9 | #import
10 |
11 | @protocol CD2PluginProtocolV1
12 |
13 | -(BOOL)openTermWindowForPath:(NSString*)aPath;
14 |
15 | @end
--------------------------------------------------------------------------------
/osx/Library/Droplets/Finder to iTerm.app/Contents/Resources/English.lproj/InfoPlist.strings:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diimdeep/dotfiles/1893a156f9e694de5ae7d7081de2f2c2f4bb9e76/osx/Library/Droplets/Finder to iTerm.app/Contents/Resources/English.lproj/InfoPlist.strings
--------------------------------------------------------------------------------
/osx/Library/Droplets/Finder to iTerm.app/Contents/Resources/LICENSE.md:
--------------------------------------------------------------------------------
1 | cd to ...
2 | Copyright (C) 2007-2013 Jay Tuley
3 |
4 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
5 |
6 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
7 |
8 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
9 |
--------------------------------------------------------------------------------
/osx/Library/Droplets/Finder to iTerm.app/Contents/Resources/lion.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diimdeep/dotfiles/1893a156f9e694de5ae7d7081de2f2c2f4bb9e76/osx/Library/Droplets/Finder to iTerm.app/Contents/Resources/lion.icns
--------------------------------------------------------------------------------
/osx/Library/Droplets/Finder to iTerm.app/Contents/_CodeSignature/CodeResources:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | files
6 |
7 | Resources/CD2PluginProtocolV1.h
8 |
9 | +psmenKlbtug/S7S5gbJWvu0IVw=
10 |
11 | Resources/English.lproj/InfoPlist.strings
12 |
13 | hash
14 |
15 | VBU8+bW9yuEHjLTKOAiB3RXaEuQ=
16 |
17 | optional
18 |
19 |
20 | Resources/Finder.h
21 |
22 | J5FhyrMiHEUDTvK8ARBrF5M3tSs=
23 |
24 | Resources/LICENSE.md
25 |
26 | cjhstx7w1jnX1JyTir7HDn6yi+A=
27 |
28 | Resources/lion.icns
29 |
30 | UB7RhwXQtpG+eKtPXwLjrBpBCmk=
31 |
32 |
33 | files2
34 |
35 | Plugins/iterm.bundle/Contents/Info.plist
36 |
37 | MhYmBDcPB/0XLTGDbztGh4VZz3w=
38 |
39 | Plugins/iterm.bundle/Contents/MacOS/iterm
40 |
41 | j9gyclBq8v0v6Rm+zWzKVh7ke4s=
42 |
43 | Plugins/iterm.bundle/Contents/Resources/English.lproj/InfoPlist.strings
44 |
45 | XPE7q8aQQqhr6TD67Ub29p2PyZs=
46 |
47 | Plugins/iterm.bundle/Contents/_CodeSignature/CodeResources
48 |
49 | fXBJdu0+geushFuxytC+85P1tsU=
50 |
51 | Resources/CD2PluginProtocolV1.h
52 |
53 | +psmenKlbtug/S7S5gbJWvu0IVw=
54 |
55 | Resources/English.lproj/InfoPlist.strings
56 |
57 | hash
58 |
59 | VBU8+bW9yuEHjLTKOAiB3RXaEuQ=
60 |
61 | optional
62 |
63 |
64 | Resources/Finder.h
65 |
66 | J5FhyrMiHEUDTvK8ARBrF5M3tSs=
67 |
68 | Resources/LICENSE.md
69 |
70 | cjhstx7w1jnX1JyTir7HDn6yi+A=
71 |
72 | Resources/lion.icns
73 |
74 | UB7RhwXQtpG+eKtPXwLjrBpBCmk=
75 |
76 |
77 | rules
78 |
79 | ^Resources/
80 |
81 | ^Resources/.*\.lproj/
82 |
83 | optional
84 |
85 | weight
86 | 1000
87 |
88 | ^Resources/.*\.lproj/locversion.plist$
89 |
90 | omit
91 |
92 | weight
93 | 1100
94 |
95 | ^version.plist$
96 |
97 |
98 | rules2
99 |
100 | .*\.dSYM($|/)
101 |
102 | weight
103 | 11
104 |
105 | ^(.*/)?\.DS_Store$
106 |
107 | omit
108 |
109 | weight
110 | 2000
111 |
112 | ^(Frameworks|SharedFrameworks|PlugIns|Plug-ins|XPCServices|Helpers|MacOS|Library/(Automator|Spotlight|LoginItems))/
113 |
114 | nested
115 |
116 | weight
117 | 10
118 |
119 | ^.*
120 |
121 | ^Info\.plist$
122 |
123 | omit
124 |
125 | weight
126 | 20
127 |
128 | ^PkgInfo$
129 |
130 | omit
131 |
132 | weight
133 | 20
134 |
135 | ^Resources/
136 |
137 | weight
138 | 20
139 |
140 | ^Resources/.*\.lproj/
141 |
142 | optional
143 |
144 | weight
145 | 1000
146 |
147 | ^Resources/.*\.lproj/locversion.plist$
148 |
149 | omit
150 |
151 | weight
152 | 1100
153 |
154 | ^[^/]+$
155 |
156 | nested
157 |
158 | weight
159 | 10
160 |
161 | ^embedded\.provisionprofile$
162 |
163 | weight
164 | 20
165 |
166 | ^version\.plist$
167 |
168 | weight
169 | 20
170 |
171 |
172 |
173 |
174 |
--------------------------------------------------------------------------------
/osx/Library/Droplets/NewFile.app/Contents/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleAllowMixedLocalizations
6 |
7 | CFBundleDevelopmentRegion
8 | English
9 | CFBundleDocumentTypes
10 |
11 |
12 | CFBundleTypeExtensions
13 |
14 | *
15 |
16 | CFBundleTypeOSTypes
17 |
18 | ****
19 |
20 | CFBundleTypeRole
21 | Viewer
22 |
23 |
24 | CFBundleExecutable
25 | droplet
26 | CFBundleIconFile
27 | droplet
28 | CFBundleInfoDictionaryVersion
29 | 6.0
30 | CFBundleName
31 | OpenInTextMate
32 | CFBundlePackageType
33 | APPL
34 | CFBundleSignature
35 | dplt
36 | LSRequiresCarbon
37 |
38 | NSUIElement
39 | 1
40 | WindowState
41 |
42 | name
43 | ScriptWindowState
44 | positionOfDivider
45 | 274
46 | savedFrame
47 | 999 403 439 476 0 0 1680 1028
48 | selectedTabView
49 | result
50 |
51 |
52 |
53 |
--------------------------------------------------------------------------------
/osx/Library/Droplets/NewFile.app/Contents/MacOS/droplet:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diimdeep/dotfiles/1893a156f9e694de5ae7d7081de2f2c2f4bb9e76/osx/Library/Droplets/NewFile.app/Contents/MacOS/droplet
--------------------------------------------------------------------------------
/osx/Library/Droplets/NewFile.app/Contents/PkgInfo:
--------------------------------------------------------------------------------
1 | APPLdplt
--------------------------------------------------------------------------------
/osx/Library/Droplets/NewFile.app/Contents/Resources/Scripts/main.scpt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diimdeep/dotfiles/1893a156f9e694de5ae7d7081de2f2c2f4bb9e76/osx/Library/Droplets/NewFile.app/Contents/Resources/Scripts/main.scpt
--------------------------------------------------------------------------------
/osx/Library/Droplets/NewFile.app/Contents/Resources/description.rtfd/TXT.rtf:
--------------------------------------------------------------------------------
1 | {\rtf1\ansi\ansicpg1252\cocoartf949
2 | {\fonttbl}
3 | {\colortbl;\red255\green255\blue255;}
4 | }
--------------------------------------------------------------------------------
/osx/Library/Droplets/NewFile.app/Contents/Resources/droplet.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diimdeep/dotfiles/1893a156f9e694de5ae7d7081de2f2c2f4bb9e76/osx/Library/Droplets/NewFile.app/Contents/Resources/droplet.icns
--------------------------------------------------------------------------------
/osx/Library/Droplets/NewFile.app/Contents/Resources/droplet.rsrc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diimdeep/dotfiles/1893a156f9e694de5ae7d7081de2f2c2f4bb9e76/osx/Library/Droplets/NewFile.app/Contents/Resources/droplet.rsrc
--------------------------------------------------------------------------------
/osx/Library/Droplets/NewFile.app/Icon
:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diimdeep/dotfiles/1893a156f9e694de5ae7d7081de2f2c2f4bb9e76/osx/Library/Droplets/NewFile.app/Icon
--------------------------------------------------------------------------------
/osx/Library/Droplets/OpenInSublimeText.app/Contents/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleAllowMixedLocalizations
6 |
7 | CFBundleDevelopmentRegion
8 | English
9 | CFBundleDocumentTypes
10 |
11 |
12 | CFBundleTypeExtensions
13 |
14 | *
15 |
16 | CFBundleTypeOSTypes
17 |
18 | ****
19 |
20 | CFBundleTypeRole
21 | Viewer
22 |
23 |
24 | CFBundleExecutable
25 | droplet
26 | CFBundleIconFile
27 | droplet
28 | CFBundleInfoDictionaryVersion
29 | 6.0
30 | CFBundleName
31 | OpenInSublimeText
32 | CFBundlePackageType
33 | APPL
34 | CFBundleSignature
35 | dplt
36 | LSRequiresCarbon
37 |
38 | NSUIElement
39 | 1
40 | WindowState
41 |
42 | name
43 | ScriptWindowState
44 | positionOfDivider
45 | 274
46 | savedFrame
47 | 999 403 439 476 0 0 1680 1028
48 | selectedTabView
49 | result
50 |
51 |
52 |
53 |
--------------------------------------------------------------------------------
/osx/Library/Droplets/OpenInSublimeText.app/Contents/MacOS/droplet:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diimdeep/dotfiles/1893a156f9e694de5ae7d7081de2f2c2f4bb9e76/osx/Library/Droplets/OpenInSublimeText.app/Contents/MacOS/droplet
--------------------------------------------------------------------------------
/osx/Library/Droplets/OpenInSublimeText.app/Contents/PkgInfo:
--------------------------------------------------------------------------------
1 | APPLdplt
--------------------------------------------------------------------------------
/osx/Library/Droplets/OpenInSublimeText.app/Contents/Resources/Scripts/main.scpt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diimdeep/dotfiles/1893a156f9e694de5ae7d7081de2f2c2f4bb9e76/osx/Library/Droplets/OpenInSublimeText.app/Contents/Resources/Scripts/main.scpt
--------------------------------------------------------------------------------
/osx/Library/Droplets/OpenInSublimeText.app/Contents/Resources/description.rtfd/TXT.rtf:
--------------------------------------------------------------------------------
1 | {\rtf1\ansi\ansicpg1252\cocoartf949
2 | {\fonttbl}
3 | {\colortbl;\red255\green255\blue255;}
4 | }
--------------------------------------------------------------------------------
/osx/Library/Droplets/OpenInSublimeText.app/Contents/Resources/droplet.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diimdeep/dotfiles/1893a156f9e694de5ae7d7081de2f2c2f4bb9e76/osx/Library/Droplets/OpenInSublimeText.app/Contents/Resources/droplet.icns
--------------------------------------------------------------------------------
/osx/Library/Droplets/OpenInSublimeText.app/Contents/Resources/droplet.rsrc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diimdeep/dotfiles/1893a156f9e694de5ae7d7081de2f2c2f4bb9e76/osx/Library/Droplets/OpenInSublimeText.app/Contents/Resources/droplet.rsrc
--------------------------------------------------------------------------------
/osx/Library/Droplets/OpenInSublimeText.app/README.rst:
--------------------------------------------------------------------------------
1 | OpenInSublimeText.app Notes
2 | ===========================
3 |
4 | About OpenInSublimeText
5 | -----------------------
6 |
7 | OpenInSublimeText is a complete rip from Henrik Nyh's
8 | `Open in Textmate `_
9 | gadget:
10 |
11 |
12 | Thanks to Henrik for putting that handy little gadget together!
13 |
14 | I wanted the same functionality in the OS X Finder for Sublime Text 2
15 | and lightly hacked Nyh's stuff to point at Sublime Text. Then, hacked
16 | a little icon together to make it all nice.
17 |
18 |
19 | Installing the OpenInSublimeText gadget
20 | ---------------------------------------
21 | Here's how I'd do it:
22 |
23 | #. Make a ``scripts`` folder in your Applications folder
24 | #. Download a copy (or git clone) of OpenInSublimeText.app
25 | and drop it in that scripts folder.
26 | Example (from the Terminal)::
27 |
28 | mkdir /Applications/scripts
29 | cd /Applications/scripts
30 | git clone https://github.com/itd/OpenInSublimeText.git OpenInSublimeText.app
31 |
32 | #. Drop the ``OpenInSublimeText`` onto a Finder window toolbar.
33 |
34 | Visually motivated? Watch a video at http://www.youtube.com/watch?v=1mkDYW2nsCc
35 |
36 | Well, that's about it. You're ready to go!
37 |
38 | If you have questions you can send me a note.
39 |
40 |
41 | Credits
42 | -------
43 |
44 | Original goodness by `Henrik Nyh `_ Thanks, dude!
45 |
46 | Mere hacks by `Kurt Bendl `_ *"Being dragged about on the coattails of giants."*
47 |
48 | Sublime Text 2
49 | ++++++++++++++
50 |
51 | If you are looking for a configurable text editor
52 | for OS X, give `Sublime Text 2 `_ a go.
53 | It's totally awesome!
54 |
55 |
--------------------------------------------------------------------------------
/osx/Library/Droplets/OpenInSublimeText.app/version.txt:
--------------------------------------------------------------------------------
1 | 0.2
--------------------------------------------------------------------------------
/osx/Library/Droplets/PathFinder to SourceTree.app/Contents/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleAllowMixedLocalizations
6 |
7 | CFBundleDevelopmentRegion
8 | English
9 | CFBundleExecutable
10 | applet
11 | CFBundleIconFile
12 | applet
13 | CFBundleIdentifier
14 | com.apple.ScriptEditor.id.PathFinder-to-SourceTree
15 | CFBundleInfoDictionaryVersion
16 | 6.0
17 | CFBundleName
18 | PathFinder to SourceTree
19 | CFBundlePackageType
20 | APPL
21 | CFBundleShortVersionString
22 | 1.0
23 | CFBundleSignature
24 | aplt
25 | LSMinimumSystemVersionByArchitecture
26 |
27 | x86_64
28 | 10.6
29 |
30 | LSRequiresCarbon
31 |
32 | WindowState
33 |
34 | bundleDividerCollapsed
35 |
36 | bundlePositionOfDivider
37 | 0.0
38 | dividerCollapsed
39 |
40 | eventLogLevel
41 | 2
42 | name
43 | ScriptWindowState
44 | positionOfDivider
45 | 467
46 | savedFrame
47 | 38 32 1242 745 0 0 1280 777
48 | selectedTab
49 | description
50 |
51 |
52 |
53 |
--------------------------------------------------------------------------------
/osx/Library/Droplets/PathFinder to SourceTree.app/Contents/MacOS/applet:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diimdeep/dotfiles/1893a156f9e694de5ae7d7081de2f2c2f4bb9e76/osx/Library/Droplets/PathFinder to SourceTree.app/Contents/MacOS/applet
--------------------------------------------------------------------------------
/osx/Library/Droplets/PathFinder to SourceTree.app/Contents/PkgInfo:
--------------------------------------------------------------------------------
1 | APPLaplt
--------------------------------------------------------------------------------
/osx/Library/Droplets/PathFinder to SourceTree.app/Contents/Resources/Scripts/main.scpt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diimdeep/dotfiles/1893a156f9e694de5ae7d7081de2f2c2f4bb9e76/osx/Library/Droplets/PathFinder to SourceTree.app/Contents/Resources/Scripts/main.scpt
--------------------------------------------------------------------------------
/osx/Library/Droplets/PathFinder to SourceTree.app/Contents/Resources/applet.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diimdeep/dotfiles/1893a156f9e694de5ae7d7081de2f2c2f4bb9e76/osx/Library/Droplets/PathFinder to SourceTree.app/Contents/Resources/applet.icns
--------------------------------------------------------------------------------
/osx/Library/Droplets/PathFinder to SourceTree.app/Contents/Resources/applet.rsrc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diimdeep/dotfiles/1893a156f9e694de5ae7d7081de2f2c2f4bb9e76/osx/Library/Droplets/PathFinder to SourceTree.app/Contents/Resources/applet.rsrc
--------------------------------------------------------------------------------
/osx/Library/Droplets/PathFinder to SourceTree.app/Contents/Resources/description.rtfd/TXT.rtf:
--------------------------------------------------------------------------------
1 | {\rtf1\ansi\ansicpg1252\cocoartf1344\cocoasubrtf720
2 | {\fonttbl}
3 | {\colortbl;\red255\green255\blue255;}
4 | }
--------------------------------------------------------------------------------
/osx/Library/Droplets/PathFinder to SourceTree.app/Icon
:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diimdeep/dotfiles/1893a156f9e694de5ae7d7081de2f2c2f4bb9e76/osx/Library/Droplets/PathFinder to SourceTree.app/Icon
--------------------------------------------------------------------------------
/osx/Library/Droplets/PathFinder to SourceTree.scpt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diimdeep/dotfiles/1893a156f9e694de5ae7d7081de2f2c2f4bb9e76/osx/Library/Droplets/PathFinder to SourceTree.scpt
--------------------------------------------------------------------------------
/osx/Library/Droplets/README.md:
--------------------------------------------------------------------------------
1 | `Cmd + Drag` to Finder toolbar
2 | 
--------------------------------------------------------------------------------
/osx/Library/Droplets/README/Command_Drag_to_toolbar.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diimdeep/dotfiles/1893a156f9e694de5ae7d7081de2f2c2f4bb9e76/osx/Library/Droplets/README/Command_Drag_to_toolbar.gif
--------------------------------------------------------------------------------
/osx/Library/Droplets/htop Terminal.app/Contents/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleAllowMixedLocalizations
6 |
7 | CFBundleDevelopmentRegion
8 | English
9 | CFBundleExecutable
10 | applet
11 | CFBundleIconFile
12 | applet
13 | CFBundleIdentifier
14 | com.apple.ScriptEditor.id.htop-term
15 | CFBundleInfoDictionaryVersion
16 | 6.0
17 | CFBundleName
18 | htop term
19 | CFBundlePackageType
20 | APPL
21 | CFBundleShortVersionString
22 | 1.0
23 | CFBundleSignature
24 | aplt
25 | LSMinimumSystemVersionByArchitecture
26 |
27 | x86_64
28 | 10.6
29 |
30 | LSRequiresCarbon
31 |
32 | WindowState
33 |
34 | dividerCollapsed
35 |
36 | eventLogLevel
37 | 2
38 | name
39 | ScriptWindowState
40 | positionOfDivider
41 | 361.5
42 | savedFrame
43 | 580 56 687 722 0 0 1280 778
44 | selectedTabView
45 | event log
46 |
47 |
48 |
49 |
--------------------------------------------------------------------------------
/osx/Library/Droplets/htop Terminal.app/Contents/MacOS/applet:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diimdeep/dotfiles/1893a156f9e694de5ae7d7081de2f2c2f4bb9e76/osx/Library/Droplets/htop Terminal.app/Contents/MacOS/applet
--------------------------------------------------------------------------------
/osx/Library/Droplets/htop Terminal.app/Contents/PkgInfo:
--------------------------------------------------------------------------------
1 | APPLaplt
--------------------------------------------------------------------------------
/osx/Library/Droplets/htop Terminal.app/Contents/Resources/Scripts/main.scpt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diimdeep/dotfiles/1893a156f9e694de5ae7d7081de2f2c2f4bb9e76/osx/Library/Droplets/htop Terminal.app/Contents/Resources/Scripts/main.scpt
--------------------------------------------------------------------------------
/osx/Library/Droplets/htop Terminal.app/Contents/Resources/applet.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diimdeep/dotfiles/1893a156f9e694de5ae7d7081de2f2c2f4bb9e76/osx/Library/Droplets/htop Terminal.app/Contents/Resources/applet.icns
--------------------------------------------------------------------------------
/osx/Library/Droplets/htop Terminal.app/Contents/Resources/applet.rsrc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diimdeep/dotfiles/1893a156f9e694de5ae7d7081de2f2c2f4bb9e76/osx/Library/Droplets/htop Terminal.app/Contents/Resources/applet.rsrc
--------------------------------------------------------------------------------
/osx/Library/Droplets/htop Terminal.app/Contents/Resources/description.rtfd/TXT.rtf:
--------------------------------------------------------------------------------
1 | {\rtf1\ansi\ansicpg1252\cocoartf1265\cocoasubrtf210
2 | {\fonttbl}
3 | {\colortbl;\red255\green255\blue255;}
4 | }
--------------------------------------------------------------------------------
/osx/Library/Droplets/htop Terminal.app/Icon
:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diimdeep/dotfiles/1893a156f9e694de5ae7d7081de2f2c2f4bb9e76/osx/Library/Droplets/htop Terminal.app/Icon
--------------------------------------------------------------------------------
/osx/Library/Droplets/htop Terminal.scpt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diimdeep/dotfiles/1893a156f9e694de5ae7d7081de2f2c2f4bb9e76/osx/Library/Droplets/htop Terminal.scpt
--------------------------------------------------------------------------------
/osx/Library/Droplets/htop iTerm.app/Contents/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleAllowMixedLocalizations
6 |
7 | CFBundleDevelopmentRegion
8 | English
9 | CFBundleExecutable
10 | applet
11 | CFBundleIconFile
12 | applet
13 | CFBundleIdentifier
14 | com.apple.ScriptEditor.id.htop-iterm
15 | CFBundleInfoDictionaryVersion
16 | 6.0
17 | CFBundleName
18 | htop iterm
19 | CFBundlePackageType
20 | APPL
21 | CFBundleShortVersionString
22 | 1.0
23 | CFBundleSignature
24 | aplt
25 | LSMinimumSystemVersionByArchitecture
26 |
27 | x86_64
28 | 10.6
29 |
30 | LSRequiresCarbon
31 |
32 | WindowState
33 |
34 | dividerCollapsed
35 |
36 | eventLogLevel
37 | 2
38 | name
39 | ScriptWindowState
40 | positionOfDivider
41 | 413
42 | savedFrame
43 | 52 56 739 722 0 0 1280 778
44 | selectedTabView
45 | event log
46 |
47 |
48 |
49 |
--------------------------------------------------------------------------------
/osx/Library/Droplets/htop iTerm.app/Contents/MacOS/applet:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diimdeep/dotfiles/1893a156f9e694de5ae7d7081de2f2c2f4bb9e76/osx/Library/Droplets/htop iTerm.app/Contents/MacOS/applet
--------------------------------------------------------------------------------
/osx/Library/Droplets/htop iTerm.app/Contents/PkgInfo:
--------------------------------------------------------------------------------
1 | APPLaplt
--------------------------------------------------------------------------------
/osx/Library/Droplets/htop iTerm.app/Contents/Resources/Scripts/main.scpt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diimdeep/dotfiles/1893a156f9e694de5ae7d7081de2f2c2f4bb9e76/osx/Library/Droplets/htop iTerm.app/Contents/Resources/Scripts/main.scpt
--------------------------------------------------------------------------------
/osx/Library/Droplets/htop iTerm.app/Contents/Resources/applet.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diimdeep/dotfiles/1893a156f9e694de5ae7d7081de2f2c2f4bb9e76/osx/Library/Droplets/htop iTerm.app/Contents/Resources/applet.icns
--------------------------------------------------------------------------------
/osx/Library/Droplets/htop iTerm.app/Contents/Resources/applet.rsrc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diimdeep/dotfiles/1893a156f9e694de5ae7d7081de2f2c2f4bb9e76/osx/Library/Droplets/htop iTerm.app/Contents/Resources/applet.rsrc
--------------------------------------------------------------------------------
/osx/Library/Droplets/htop iTerm.app/Contents/Resources/description.rtfd/TXT.rtf:
--------------------------------------------------------------------------------
1 | {\rtf1\ansi\ansicpg1252\cocoartf1265\cocoasubrtf210
2 | {\fonttbl}
3 | {\colortbl;\red255\green255\blue255;}
4 | }
--------------------------------------------------------------------------------
/osx/Library/Droplets/htop iTerm.app/Icon
:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diimdeep/dotfiles/1893a156f9e694de5ae7d7081de2f2c2f4bb9e76/osx/Library/Droplets/htop iTerm.app/Icon
--------------------------------------------------------------------------------
/osx/Library/Droplets/htop iTerm.scpt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diimdeep/dotfiles/1893a156f9e694de5ae7d7081de2f2c2f4bb9e76/osx/Library/Droplets/htop iTerm.scpt
--------------------------------------------------------------------------------
/osx/Library/Droplets/newFile.scpt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diimdeep/dotfiles/1893a156f9e694de5ae7d7081de2f2c2f4bb9e76/osx/Library/Droplets/newFile.scpt
--------------------------------------------------------------------------------
/osx/Library/Scripts/Chrome session as markdown links to clipboard.scpt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diimdeep/dotfiles/1893a156f9e694de5ae7d7081de2f2c2f4bb9e76/osx/Library/Scripts/Chrome session as markdown links to clipboard.scpt
--------------------------------------------------------------------------------
/osx/Library/Scripts/Copy Keyboard Shortcut Symbols to Clipboard.scpt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diimdeep/dotfiles/1893a156f9e694de5ae7d7081de2f2c2f4bb9e76/osx/Library/Scripts/Copy Keyboard Shortcut Symbols to Clipboard.scpt
--------------------------------------------------------------------------------
/osx/Library/Scripts/Copy Other Keyboard Shortcut Symbols to Clipboard.scpt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diimdeep/dotfiles/1893a156f9e694de5ae7d7081de2f2c2f4bb9e76/osx/Library/Scripts/Copy Other Keyboard Shortcut Symbols to Clipboard.scpt
--------------------------------------------------------------------------------
/osx/Library/Scripts/CoreAudio kill all restart.scpt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diimdeep/dotfiles/1893a156f9e694de5ae7d7081de2f2c2f4bb9e76/osx/Library/Scripts/CoreAudio kill all restart.scpt
--------------------------------------------------------------------------------
/osx/Library/Scripts/Safari session as markdown links to clipboard.scpt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diimdeep/dotfiles/1893a156f9e694de5ae7d7081de2f2c2f4bb9e76/osx/Library/Scripts/Safari session as markdown links to clipboard.scpt
--------------------------------------------------------------------------------
/osx/bin/DNScache_reset:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | # reset the DNS cache
4 | sudo killall -HUP mDNSResponder
--------------------------------------------------------------------------------
/osx/bin/GoogleChromeProfile:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | open -a "Google Chrome" --args --user-data-dir="${CHROMEPROFILEPATH}"
--------------------------------------------------------------------------------
/osx/bin/alpha:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | open -a ImageAlpha $@
--------------------------------------------------------------------------------
/osx/bin/bid:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | # source: http://brettterpstra.com/2012/07/31/overthinking-it-fast-bundle-id-retrieval-for-mac-apps/
4 |
5 | # combine all args as regex
6 | # (and remove ".app" from the end if it exists due to autocomplete)
7 | shortname=$(echo "${@%%.app}"|sed 's/ /.*/g')
8 | # if the file is a full match in apps folder, roll with it
9 | if [ -d "/Applications/$shortname.app" ]; then
10 | location="/Applications/$shortname.app"
11 | else # otherwise, start searching
12 | location=$(mdfind -onlyin /Applications -onlyin ~/Applications -onlyin /Developer/Applications -onlyin /opt/homebrew-cask/Caskroom 'kMDItemKind==Application'|awk -F '/' -v re="$shortname" 'tolower($NF) ~ re {print $0}'|head -n1)
13 | fi
14 | # No results? Die.
15 | [[ -z $location || $location = "" ]] && echo "$1 not found, I quit" && exit
16 | # Otherwise, find the bundleid using spotlight metadata
17 | bundleid=$(mdls -name kMDItemCFBundleIdentifier -r "$location")
18 | # return the result or an error message
19 | [[ -z $bundleid || $bundleid = "" ]] && echo "Error getting bundle ID for \"$@\"" || echo "$location: $bundleid"
20 |
--------------------------------------------------------------------------------
/osx/bin/binf:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | brew info "$@"
--------------------------------------------------------------------------------
/osx/bin/binst:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | brew install "$@"
--------------------------------------------------------------------------------
/osx/bin/brew-cask-cleanup.rb:
--------------------------------------------------------------------------------
1 | #!/System/Library/Frameworks/Ruby.framework/Versions/Current/usr/bin/ruby -W0
2 |
3 | # Requirements:
4 | # brew install trash
5 |
6 | casks_path = '/opt/homebrew-cask/Caskroom'
7 |
8 | class Version < Array
9 | def initialize s
10 | super(s.split('.').map { |e| e.to_i })
11 | end
12 | def < x
13 | (self <=> x) < 0
14 | end
15 | def > x
16 | (self <=> x) > 0
17 | end
18 | def == x
19 | (self <=> x) == 0
20 | end
21 | end
22 |
23 | if `brew list | grep trash`.empty?
24 | puts 'Please make "brew install trash" before'
25 | exit!
26 | end
27 |
28 | Dir[File.join(casks_path, '*')].each do |cask_path|
29 | versions = Dir[File.join(cask_path,'*')].map{|i| File.basename(i)}
30 |
31 | next if versions.include?('latest')
32 | next if versions.size == 1
33 |
34 | versions.sort! do |b, a|
35 | a, b = Version.new(a), Version.new(b)
36 | if a == b
37 | 0
38 | elsif a < b
39 | -1
40 | else
41 | 1
42 | end
43 | end
44 |
45 | versions.shift
46 | versions.each do |version|
47 | path = File.join(cask_path, version)
48 | puts 'Putting to trash: ' + path
49 | puts `trash #{path}`
50 | end
51 | end
--------------------------------------------------------------------------------
/osx/bin/cdf:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # open the Finder directory in the terminal
3 | # source http://apple.stackexchange.com/questions/12161/os-x-terminal-must-have-utilities
4 |
5 | TARGET_DIR=`osascript -e 'tell application "Finder" to if (count of Finder windows) > 0 then get POSIX path of (target of front Finder window as text)'`
6 | if [ "$TARGET_DIR" != "" ]; then
7 | cd "$TARGET_DIR"
8 | pwd
9 | else
10 | echo 'No Finder window found' >&2
11 | fi
12 |
--------------------------------------------------------------------------------
/osx/bin/chrome_session_tabs_links_to_clipboard:
--------------------------------------------------------------------------------
1 | #!/usr/bin/osascript
2 |
3 | property _template : "[%name](<%url>)"
4 |
5 | --search and replace function for template
6 | on snr(tofind, toreplace, TheString)
7 | set ditd to text item delimiters
8 | set text item delimiters to tofind
9 | set textItems to text items of TheString
10 | set text item delimiters to toreplace
11 | if (class of TheString is string) then
12 | set res to textItems as string
13 | else -- if (class of TheString is Unicode text) then
14 | set res to textItems as Unicode text
15 | end if
16 | set text item delimiters to ditd
17 | return res
18 | end snr
19 |
20 | set prettyDate to do shell script "date '+%A, %B %d, %Y at %l:%M %p'"
21 | set theTitle to "Bookmarks " & prettyDate
22 | set urlList to ""
23 |
24 | try
25 |
26 | tell application "Google Chrome"
27 | -- count the windows
28 | set winCount to count of windows
29 | -- loop through the windows
30 | repeat with i from 1 to winCount
31 | set tabCount to count of tabs in window i
32 | --set tabList to tabs of window i
33 | --repeat with aTab in tabList
34 | repeat with j from 1 to tabCount
35 | set aTab to tab j of window i
36 | set aLink to _template
37 | set aLink to my snr("%name", title of aTab, aLink)
38 | set aLink to my snr("%url", URL of aTab, aLink)
39 | set urlList to urlList & aLink & return
40 | end repeat
41 | set urlList to urlList & return
42 | end repeat
43 |
44 | end tell
45 | set urlList to urlList & ""
46 |
47 | -- tell application "Evernote"
48 | -- set theNote to create note with html urlList title theTitle notebook "Bookmarks"
49 | -- end tell
50 |
51 | set the clipboard to urlList
52 | display notification "Copied to clipboard." with title "Safari session export"
53 |
54 | on error the error_message number the error_number
55 | display notification "Error: " & the error_number & ". " & the error_message with title "Chrome session export"
56 | --display dialog "Error: " & the error_number & ". " & the error_message buttons {"OK"} default button 1
57 | end try
58 |
--------------------------------------------------------------------------------
/osx/bin/cinf:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | brew cask info "$@"
--------------------------------------------------------------------------------
/osx/bin/cinst:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | brew cask install "$@"
--------------------------------------------------------------------------------
/osx/bin/class-dump_to:
--------------------------------------------------------------------------------
1 | #!/bin/zsh
2 |
3 | # -a show instance variable offsets
4 | # -A show implementation addresses
5 | # -H generate header files in current directory, or directory specified with -o
6 | # -o output directory used for -H
7 |
8 | class-dump "$1" -a -A -H -o "$2"
--------------------------------------------------------------------------------
/osx/bin/cleanup:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | brew cask cleanup
4 | brew cleanup
5 | rm -rf /tmp/webtorrent
6 | rm -rf /tmp/torrent-stream
--------------------------------------------------------------------------------
/osx/bin/clone:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env python3
2 |
3 | import sys
4 | from urllib.parse import urlparse
5 | from pathlib import Path
6 | import subprocess
7 |
8 |
9 | if len(sys.argv) > 1:
10 | #print(sys.argv)
11 | url = sys.argv[1]
12 | parsed_url = urlparse(url)
13 | path = Path(parsed_url.path)
14 | #print(parsed_url)
15 | repo_name = path.name
16 | user_name = path.parent.name
17 | clone_to = repo_name + "___" + user_name
18 |
19 | try:
20 | subprocess.check_call(["git", "clone", parsed_url.geturl(), clone_to])
21 | except subprocess.CalledProcessError as e:
22 | print(e.output)
23 | else:
24 | print("usage: clone ")
25 | print("You must specify a repository to clone.")
26 |
--------------------------------------------------------------------------------
/osx/bin/code:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | VSCODE_CWD="$PWD"
3 |
4 | open -n -b "com.microsoft.VSCode" --args "$@"
5 |
--------------------------------------------------------------------------------
/osx/bin/f:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | open -a Finder $@
--------------------------------------------------------------------------------
/osx/bin/faster_open.sh:
--------------------------------------------------------------------------------
1 | #!/bin/zsh -f
2 | mdfind -onlyin /Applications -onlyin /Developer "kMDItemContentType == 'com.apple.application-*'" >/dev/null
--------------------------------------------------------------------------------
/osx/bin/fname:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | find . -iname "*$@*"
--------------------------------------------------------------------------------
/osx/bin/fp:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # source: http://brettterpstra.com/2009/11/14/fk-a-useful-bash-function/
3 | # find and list processes matching a case-insensitive partial-match string
4 | ps Ao pid,comm|awk '{match($0,/[^\/]+$/); print substr($0,RSTART,RLENGTH)": "$1}'|grep -i $1|grep -v grep
--------------------------------------------------------------------------------
/osx/bin/hi:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | history | tail -20
--------------------------------------------------------------------------------
/osx/bin/ipy:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env sh
2 | PORT=$(getport)
3 | jupyter notebook --port $PORT $1
--------------------------------------------------------------------------------
/osx/bin/kill_SystemUIServer:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # Restart the SystemUIServer
4 | killall -HUP SystemUIServer
--------------------------------------------------------------------------------
/osx/bin/kill_appleeventsd:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | sudo killall -KILL appleeventsd
3 |
--------------------------------------------------------------------------------
/osx/bin/launchservices_rebuild:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | echo "Rebuilding the Launch Services Database..."
3 | #/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user
4 | sudo /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -seed
5 |
6 | echo "Restart Finder"
7 | killall Finder
8 |
9 | echo "Done."
10 |
--------------------------------------------------------------------------------
/osx/bin/ls_appstore_apps.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | mdfind -onlyin / "kMDItemContentType == 'com.apple.application-bundle'" | while read app; do
4 | if [ -e "$app/Contents/_MASReceipt/receipt" ]; then
5 | echo "$app"
6 | fi
7 | done
--------------------------------------------------------------------------------
/osx/bin/lsc:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | width=50
3 | depth=1
4 | arg=.
5 |
6 | function usage {
7 | echo "Usage: lsc [OPTIONS]... [FILE]...
8 |
9 | Column ls.
10 |
11 | Args:
12 | -d depth default: 1"
13 | exit 1
14 | }
15 |
16 | while getopts "d:h" option; do
17 | case $option in
18 | d) depth="${OPTARG}" ;;
19 | h) usage; ;;
20 | *) echo "Unknown argument: $option"
21 | usage; ;;
22 | esac
23 | done
24 |
25 | shift $(( OPTIND -1 ))
26 |
27 | if [[ $@ ]]; then
28 | arg=$@
29 | fi
30 |
31 | gawk -F':' '
32 |
33 | /directory/{
34 | d[i++]=$1
35 | next
36 | }
37 |
38 | /executable/{
39 | e[j++]=$1
40 | next
41 | }
42 |
43 | {
44 | f[k++]=$1
45 | }
46 |
47 | END{
48 | a[1]=i;a[2]=j;a[3]=k
49 | asort(a)
50 | printf("%-*.*s | \t%-*.*s | \t%-*.*s\n", w,w,"Directories", w,w,"Executables", w,w,"Files")
51 | for (z=0;z /var/run/osx-proxy.pid"
74 | }
75 |
76 |
77 | proxy_off(){
78 | echo "Disabling proxy in network settings."
79 | sudo networksetup -setsocksfirewallproxystate "$interface" off
80 | echo "Done!"
81 | }
82 |
83 | kill_all(){
84 | # in lieu of just blindly killing ssh commands, let's kill the specific running PID that we have
85 | # Also, check to make sure the pidfile exists
86 | if [ -e "/var/run/osx-proxy.pid" ]; then
87 | pid=`cat /var/run/osx-proxy.pid`
88 | else
89 | echo "Pidfile /var/run/osx-proxy.pid doesn't exist, so we're assuming there's no running sessions"
90 | exit 1
91 | fi
92 | echo "Killing running proxy connection. You may get prompted for a password for sudo to remove the pidfile"
93 | kill -9 $pid && sudo rm -f /var/run/osx-proxy.pid
94 | }
95 |
96 |
97 | shutdown(){
98 | proxy_off
99 | kill_all
100 | echo "Proxy shutdown complete!"
101 | }
102 |
103 | toggle_state(){
104 | # result=`get_proxy_state`
105 | echo $(get_proxy_state) | grep -i 'y' >> /dev/null
106 | if [[ $? =~ 0 ]]; then
107 | shutdown
108 | echo "OFF"
109 | else
110 | proxy_on
111 | echo "ON"
112 | fi
113 | }
114 |
115 | case $1 in
116 | "on")
117 | proxy_on
118 | ;;
119 | "off")
120 | proxy_off
121 | ;;
122 | "status")
123 | get_proxy_state
124 | ;;
125 | "killall")
126 | kill_all
127 | ;;
128 | "shutdown")
129 | shutdown
130 | ;;
131 | "usage")
132 | usage
133 | ;;
134 | "")
135 | toggle_state
136 | ;;
137 | *)
138 | unknown_input
139 | usage
140 | ;;
141 | esac
142 |
--------------------------------------------------------------------------------
/osx/bin/psgrep:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | ps axu | grep -v grep | grep "$@" -i --color=auto
--------------------------------------------------------------------------------
/osx/bin/quicklook_reload_plugins:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | qlmanage -r
3 |
--------------------------------------------------------------------------------
/osx/bin/qwd:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | printf "%q\n" "$(pwd)"
--------------------------------------------------------------------------------
/osx/bin/rebuild_launchservices:
--------------------------------------------------------------------------------
1 | launchservices_rebuild
--------------------------------------------------------------------------------
/osx/bin/remove_lines_from:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # removes lines from $1 if they appear in $2
3 | grep -F -x -v -f $2 $1
--------------------------------------------------------------------------------
/osx/bin/safari_session_tabs_links_to_clipboard:
--------------------------------------------------------------------------------
1 | #!/usr/bin/osascript
2 |
3 | property _template : "[%name](<%url>)"
4 |
5 | --search and replace function for template
6 | on snr(tofind, toreplace, TheString)
7 | set ditd to text item delimiters
8 | set text item delimiters to tofind
9 | set textItems to text items of TheString
10 | set text item delimiters to toreplace
11 | if (class of TheString is string) then
12 | set res to textItems as string
13 | else -- if (class of TheString is Unicode text) then
14 | set res to textItems as Unicode text
15 | end if
16 | set text item delimiters to ditd
17 | return res
18 | end snr
19 |
20 | set prettyDate to do shell script "date '+%A, %B %d, %Y at %l:%M %p'"
21 | set theTitle to "Bookmarks " & prettyDate
22 | set urlList to ""
23 |
24 | try
25 |
26 | tell application "Safari"
27 | -- count the windows
28 | set winCount to count of windows
29 | -- loop through the windows
30 | repeat with i from 1 to winCount
31 | set tabCount to count of tabs in window i
32 | --set tabList to tabs of window i
33 | --repeat with aTab in tabList
34 | repeat with j from 1 to tabCount
35 | set aTab to tab j of window i
36 | set aLink to _template
37 | set aLink to my snr("%name", name of aTab, aLink)
38 | set aLink to my snr("%url", URL of aTab, aLink)
39 | set urlList to urlList & aLink & return
40 | end repeat
41 | set urlList to urlList & return
42 | end repeat
43 |
44 | end tell
45 | set urlList to urlList & ""
46 |
47 | -- tell application "Evernote"
48 | -- set theNote to create note with html urlList title theTitle notebook "Bookmarks"
49 | -- end tell
50 |
51 | set the clipboard to urlList
52 | display notification "Copied to clipboard." with title "Safari session export"
53 |
54 | on error the error_message number the error_number
55 | --display notification "Error: " & the error_number & ". " & the error_message with title "Safari session export"
56 | --display dialog "Error: " & the error_number & ". " & the error_message buttons {"OK"} default button 1
57 | set the clipboard to urlList
58 | display notification "Copied to clipboard." with title "Safari session export"
59 |
60 | end try
61 |
--------------------------------------------------------------------------------
/osx/bin/show_assembly_info:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | otool -s __TEXT __objc_methname "$1" |expand -8 | cut -c17- | sed -n '3,$p' | perl -n -e 'print join(" ",split(/\x00/,scalar reverse (reverse unpack("(a4)*",pack("(H8)*",split(/\s/,$_))))))'
--------------------------------------------------------------------------------
/osx/bin/spark-ping:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env ruby
2 | #
3 | # A ping 'GUI' for the command line using sparklines.
4 | #
5 | # Example:
6 | #
7 | # $ ./spark-ping google.com
8 | # ▃▇▄▄▅▄▃▃▃▄▃▃▄▄▄▄▅▄▅▃▅▃▃▃▄▄▃▃▄▅▄▃▄▃ 24.731 ms
9 | #
10 | # Implemented as a Ruby wrapper around your system's normal `ping` utility.
11 | # Does not require any special gems, so it should work out of the box on
12 | # many platforms. Only tested with OSX and Linux `ping`.
13 | #
14 | # The sparklines are multi-byte UTF8 characters, so your terminal may or may
15 | # not display them correctly. Tested on Mac OSX using Terminal.app and iTerm2.
16 | #
17 | # Joe Miller (http://joemiller.me, https://github.com/joemiller). 11/16/2011
18 |
19 | require 'pty'
20 |
21 | def command_exists?(command)
22 | ENV['PATH'].split(File::PATH_SEPARATOR).any? {|d| File.exists? File.join(d, command) }
23 | end
24 |
25 | def detect_terminal_size
26 | if (ENV['COLUMNS'] =~ /^\d+$/) && (ENV['LINES'] =~ /^\d+$/)
27 | [ENV['COLUMNS'].to_i, ENV['LINES'].to_i]
28 | elsif (RUBY_PLATFORM =~ /java/ || (!STDIN.tty? && ENV['TERM'])) && command_exists?('tput')
29 | [`tput cols`.to_i, `tput lines`.to_i]
30 | elsif STDIN.tty? && command_exists?('stty')
31 | `stty size`.scan(/\d+/).map { |s| s.to_i }.reverse
32 | else
33 | nil
34 | end
35 | rescue
36 | nil
37 | end
38 |
39 | def spark(durations)
40 | return "" unless durations.size > 1
41 |
42 | ticks=%w[▁ ▂ ▃ ▄ ▅ ▆ ▇]
43 |
44 | range = durations.max - durations.min
45 | scale = ticks.length - 1
46 | distance = durations.max.to_f / ticks.size
47 |
48 | str = ''
49 | durations.each do |val|
50 | tick = (val / distance).round - 1
51 | str << ticks[tick]
52 | end
53 | str
54 | end
55 |
56 | ### main --
57 | if __FILE__ == $0
58 | trap("INT") { puts; exit }
59 | # XXX: could also trap WINCH to detect changes in terminal size..
60 |
61 | (columns,lines) = detect_terminal_size
62 | durations = []
63 |
64 | begin
65 | PTY.spawn( "ping #{ARGV.join(' ')}" ) do |stdin, stdout, pid|
66 | begin
67 | stdin.each do |line|
68 | ## if we see 'usage:' or 'ping: ..' an error probably occurred
69 | ## so flush the output from ping and exit. (XXX: this is hacky)
70 | if line =~ /^usage:/i or line =~ /^ping:/
71 | puts line
72 | puts stdin.readlines
73 | exit 1
74 | end
75 |
76 | duration = line.scan( /time=(\S+)/ ).last
77 | durations << duration.first.to_f unless duration.nil?
78 |
79 | sparkline = spark( durations )
80 | output = "#{sparkline} #{durations.last} ms\r"
81 | print output
82 |
83 | # if we reach the end of the line, reset and start on next line.
84 | # NOTE: need to use a regex to count the number of chars
85 | # because `output` is a multibyte utf8 string.
86 | if output.scan(/./mu).size >= columns
87 | durations = []
88 | puts
89 | end
90 | end
91 | rescue Errno::EIO
92 | puts "IO error (EIO)" # XXX
93 | end
94 | end
95 | rescue PTY::ChildExited
96 | puts "ping exited unexpectedly" # XXX
97 | end
98 |
99 | puts
100 | end
--------------------------------------------------------------------------------
/osx/bin/spotlight_disable_and_erase_at_mount_point:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | sudo mdutil -d -E $1
3 |
--------------------------------------------------------------------------------
/osx/bin/spotlight_disable_daemon:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist
--------------------------------------------------------------------------------
/osx/bin/spotlight_disable_indexing:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | sudo mdutil -a -i off
--------------------------------------------------------------------------------
/osx/bin/spotlight_enable_daemon:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist
--------------------------------------------------------------------------------
/osx/bin/spotlight_enable_indexing:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | sudo mdutil -a -i on
--------------------------------------------------------------------------------
/osx/bin/spotlight_rebuild:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | sudo mdutil -E
--------------------------------------------------------------------------------
/osx/bin/whichls:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | if $(/usr/bin/which -s "$@"); then
4 | test_path=$(/usr/bin/which "$@")
5 | gls --color=auto -F --color=always -lhFrt $test_path
6 | fi
7 |
--------------------------------------------------------------------------------
/osx/bin/wififix:
--------------------------------------------------------------------------------
1 | #! /usr/bin/env bash
2 |
3 | while true; do
4 | echo "$(date -u): \c"
5 | dig @8.8.8.8 +tries=1 +time=3 google.com | \
6 | grep 'Query time' | \
7 | cut -d ' ' -f 4 -f 5
8 | if [ ${PIPESTATUS[0]} -ne 0 ] ; then
9 | ifconfig en0 down
10 | ifconfig en0 up
11 | echo "--> Bounced en0\n"
12 | fi
13 | sleep 5
14 | done
--------------------------------------------------------------------------------
/osx/bin/xc:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | open -a Xcode $@
--------------------------------------------------------------------------------
/osx/bin/xrun:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | TDIR=`mktemp -d`
3 | trap "{ cd - ; rm -rf $TDIR; exit 255; }" SIGINT
4 |
5 | xcodebuild install DSTROOT="$TDIR"
6 | open $TDIR/Applications
--------------------------------------------------------------------------------
/osx/bin/yandex_session_tabs_links_to_clipboard:
--------------------------------------------------------------------------------
1 | #!/usr/bin/osascript
2 |
3 | property _template : "[%name](<%url>)"
4 |
5 | --search and replace function for template
6 | on snr(tofind, toreplace, TheString)
7 | set ditd to text item delimiters
8 | set text item delimiters to tofind
9 | set textItems to text items of TheString
10 | set text item delimiters to toreplace
11 | if (class of TheString is string) then
12 | set res to textItems as string
13 | else -- if (class of TheString is Unicode text) then
14 | set res to textItems as Unicode text
15 | end if
16 | set text item delimiters to ditd
17 | return res
18 | end snr
19 |
20 | set prettyDate to do shell script "date '+%A, %B %d, %Y at %l:%M %p'"
21 | set theTitle to "Bookmarks " & prettyDate
22 | set urlList to ""
23 |
24 | try
25 |
26 | tell application "Yandex"
27 | -- count the windows
28 | set winCount to count of windows
29 | -- loop through the windows
30 | repeat with i from 1 to winCount
31 | set tabCount to count of tabs in window i
32 | --set tabList to tabs of window i
33 | --repeat with aTab in tabList
34 | repeat with j from 1 to tabCount
35 | set aTab to tab j of window i
36 | set aLink to _template
37 | set aLink to my snr("%name", title of aTab, aLink)
38 | set aLink to my snr("%url", URL of aTab, aLink)
39 | set urlList to urlList & aLink & return
40 | end repeat
41 | set urlList to urlList & return
42 | end repeat
43 |
44 | end tell
45 | set urlList to urlList & ""
46 |
47 | -- tell application "Evernote"
48 | -- set theNote to create note with html urlList title theTitle notebook "Bookmarks"
49 | -- end tell
50 |
51 | set the clipboard to urlList
52 | display notification "Copied to clipboard." with title "Yandex session export"
53 |
54 | on error the error_message number the error_number
55 | --display dialog "Error: " & the error_number & ". " & the error_message buttons {"OK"} default button 1
56 | set the clipboard to urlList
57 | display notification "There was error, but we did copy tabs to clipboard." with title "Session export"
58 | end try
59 |
--------------------------------------------------------------------------------
/osx/configure/README.markdown:
--------------------------------------------------------------------------------
1 |
2 |
3 | Apple ships sudo with tty_tickets disabled by default. What this means is that if you use sudo to give yourself root privileges, your sudo authentication is not bound to the TTY in which you ran sudo.
4 |
5 | It's easy to fix. Just run visudo and add this line:
6 |
7 | `Defaults tty_tickets`
--------------------------------------------------------------------------------
/osx/configure/brew_casks/popcorn-time.rb:
--------------------------------------------------------------------------------
1 | cask :v1 => 'popcorn-time' do
2 | version '0.3.8-5'
3 | sha256 '6e545190dedc02e95a594020283b68563a1e35b7feccb983f36cd8eed1fa5d17'
4 |
5 | url "https://mirror09.ptn.sh/build/Popcorn-Time-#{version}-Mac.dmg", :user_agent => :fake
6 | appcast 'https://popcorntime.io/update.json',
7 | :sha256 => '3354d21ad453807bd663a20861dc3da36f3d2860929d30fc30ee15f87e8622af',
8 | :format => :unknown
9 | name 'Popcorn Time'
10 | homepage 'http://popcorntime.io/'
11 | license :gpl
12 |
13 | app 'Popcorn-Time.app'
14 |
15 | uninstall :quit => ['com.intel.nw', 'com.intel.nw.helper'],
16 | :delete => '/$TMPDIR$/Popcorn-Time'
17 | zap :delete => '~/Library/Application Support/Popcorn-Time'
18 | end
--------------------------------------------------------------------------------
/osx/configure/brew_casks/soundflower.rb:
--------------------------------------------------------------------------------
1 | cask :v1 => 'soundflower' do
2 | version '2.0b2'
3 | sha256 '6b5e56d53238cf0f9075886aa40580634fc9d23368239f22eccebfd97c9f8e34'
4 |
5 | url "https://github.com/mattingalls/Soundflower/releases/download/#{version}/Soundflower-#{version}.dmg"
6 | name 'Soundflower'
7 | homepage 'https://github.com/mattingalls/Soundflower/'
8 | license :oss
9 |
10 | pkg 'Soundflower.pkg', :allow_untrusted => true
11 | postflight do
12 | system '/usr/bin/sudo', '-E', '--',
13 | '/sbin/kextload', '-b', 'com.Cycling74.driver.Soundflower'
14 | end
15 | # early_script is a workaround for a slowly unloading kext, see private-eye Cask
16 |
17 | uninstall :early_script => {
18 | :executable => '/sbin/kextunload',
19 | :args => ['-b', 'com.Cycling74.driver.Soundflower'],
20 | :must_succeed => false,
21 | },
22 | :pkgutil => 'com.cycling74.soundflower.*',
23 | :delete => '/Applications/Soundflower',
24 | :kext => 'com.Cycling74.driver.Soundflower'
25 | end
26 |
--------------------------------------------------------------------------------
/osx/configure/brew_casks/soundflowerbed.rb:
--------------------------------------------------------------------------------
1 | cask :v1 => 'soundflowerbed' do
2 | version '2.0.0'
3 | sha256 'b6946abb69bd0b154462181ed0c46fc5cbf6bb527b2f891ff97575382627d5d9'
4 |
5 | url "https://github.com/mLupine/SoundflowerBed/releases/download/#{version}-release/SoundflowerBed-#{version}-release.dmg"
6 |
7 | name 'SoundflowerBed'
8 | homepage 'https://github.com/mLupine/SoundflowerBed/'
9 | license :gpl
10 |
11 | app 'SoundflowerBed.app'
12 | end
13 |
--------------------------------------------------------------------------------
/osx/configure/brew_formulas/cycript.rb:
--------------------------------------------------------------------------------
1 | require "formula"
2 |
3 | class Cycript < Formula
4 | homepage "http://www.cycript.org/"
5 | url "https://cydia.saurik.com/api/latest/3"
6 | version "latest"
7 |
8 | def install
9 | script = "cd /usr/local/Cellar/cycript/latest/bin && ./_cycript $*"
10 | bin.install Dir["./*"]
11 | File.rename("/usr/local/Cellar/cycript/latest/bin/cycript",
12 | "/usr/local/Cellar/cycript/latest/bin/_cycript")
13 | File.open("/usr/local/Cellar/cycript/latest/bin/cycript", "w") do |f|
14 | f.write(script)
15 | end
16 | end
17 |
18 | test do
19 | system "true"
20 | end
21 |
22 | def caveats
23 | system "chmod", "+x", "/usr/local/Cellar/cycript/latest/bin/cycript"
24 | end
25 | end
--------------------------------------------------------------------------------
/osx/configure/configure_python:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | brew install python --universal
4 | brew install python3 --universal
5 |
6 | # # tool for query pypi
7 | # pip install yolk
8 | #
9 | # pip install textblob
10 | # pip install matplotlib
11 | # pip install pandas cpickle numpy
12 | # pip install numpy
13 | # pip install pandas
14 | # pip install scikit-learn
15 | # pip install scipy
16 | # pip install matplotlib --upgrade
17 | #
18 | # python -m textblob.download_corpora
19 | #
20 | #
21 | # #brew install Matplotlib
22 | # #brew install scipy
23 | # #brew install sympy
24 | # #brew install pillow
25 | #
26 | # pip install --upgrade setuptools
27 | # pip install --upgrade pip
28 | # pip3 install --upgrade setuptools
29 | #
30 | # pip install ipython[notebook] --upgrade
31 | #
32 | # brew tap homebrew/python
33 | # brew install numpy
34 | # brew install Matplotlib
35 | # brew install scipy
36 | # brew install pillow
37 | #
38 | # pip install sympy
39 | # pip install -U scikit-image
40 | # pip install -U scikit-learn
41 | #
42 | #
43 | # pip install sh
44 | # pip install pudb
45 | # pip install plumbum
46 | # pip install requests
47 | # pip install bs4
48 | # pip install BeautifulSoup
49 | # pip install BeautifulSoup4
50 | #
51 | #
52 | # pip install virtualenv
53 | # pip install virtualenvwrapper
54 | #
55 | # pip install dtrx
56 | #
57 | # # dependend on 'brew install libsndfile'
58 | # pip install scikits.audiolab
59 | #
60 | # # coursera.com massive open online courses (MOOC) downloader
61 | # pip install coursera-dl
62 | #
63 | # pip
64 | # virtualenv
65 | # virtualenvwrapper
66 | # SpoofMAC
67 | # sh
68 | # scipy
69 | # scikit-learn
70 | # scikit-image
71 | # pudb
72 | # plumbum
73 | # numpy
74 | # lxml
75 | # Jinja2
76 | # ipython
77 | # argparse
78 | # backports.ssl-match-hostname
79 | # docutils
80 | # matplotlib
81 | #
82 | # pip3
83 | # beautifulsoup4
84 | # docutils
85 | # feedgenerator
86 | # ipdb
87 | # ipython
88 | # Jinja2
89 | # lxml
90 | # Pygments
91 | # pymongo
92 |
--------------------------------------------------------------------------------
/osx/configure/configure_system_python:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | source `dirname $0`/../../etc/helpers.sh
4 |
5 | _header "python2.6.."
6 |
7 | _bullet "Installing pip2.6"
8 | sudo easy_install-2.6 pip
9 |
10 | echo
11 |
12 | _bullet "Installing iPython 1.2.1"
13 | sudo pip2.6 install readline ipython==1.2.1
14 |
15 | echo
16 |
17 | _success "Done"
18 |
--------------------------------------------------------------------------------
/osx/configure/disablebonjour:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | #############################################
3 | # OS X 10.6 or newer
4 | # By default Macs advertise their existence on the network they are
5 | # connected to with a DNS Multicast protocol. This allows one Mac to
6 | # see and easily connect to other Macs and devices on the network.
7 | # This doesn't work so well when you have hundreds of Macs on the same network
8 | # and businesses, schools, and data centers regularly disable this functionality.
9 | # It can be done by edited a plist file and adding in a specific flag.
10 | # If this file is not edited properly, the Mac can cease to resolve DNS or may no longer boot.
11 | # This script quickly detects the version of OS X and makes sure the flag is not currently
12 | # sets and painlessly edits the plist file.
13 | #############################################
14 |
15 | if [[ $(sw_vers) ]]
16 | then
17 | # MAKES SURE WE ARE RUNNING 10.6 -> 10.9 or 10.10.4+
18 | if [[ $(sw_vers -productVersion | grep '10.[6-9]') ]] || [[ $(sw_vers -productVersion | grep '10.10.4') ]]
19 | then
20 | # CHECKS FOR FLAG IN CURRENT PLIST FILE
21 | if [[ $(sudo /usr/libexec/PlistBuddy -c Print /System/Library/LaunchDaemons/com.apple.mDNSResponder.plist | grep 'NoMulticast') ]]
22 | then
23 | echo "MULTICAST DISABLED, NO CHANGES MADE"
24 | else
25 | sudo /usr/libexec/PlistBuddy -c "Add :ProgramArguments: string -NoMulticastAdvertisements" /System/Library/LaunchDaemons/com.apple.mDNSResponder.plist
26 | echo "MULTICAST DISABLED (OS X 10.6-10.9 or 10.10.4+), PLEASE REBOOT"
27 | fi
28 | exit
29 | else
30 | echo "OS X 10.6 - 10.9 or 10.10.4+ NOT DETECTED, NO CHANGES HAVE BEEN MADE YET"
31 | echo "CHECKING FOR OS X 10.10.0 to 10.10.3 ..."
32 | if [[ $(sw_vers -productVersion | grep '10.10[.0-3]') ]]
33 | then
34 | # CHECKS FOR FLAG IN CURRENT PLIST FILE
35 | if [[ $(sudo /usr/libexec/PlistBuddy -c Print /System/Library/LaunchDaemons/com.apple.discoveryd.plist | grep 'no-multicast') ]]
36 | then
37 | echo "MULTICAST DISABLED, NO CHANGES MADE"
38 | else
39 | sudo /usr/libexec/PlistBuddy -c "Add :ProgramArguments: string --no-multicast" /System/Library/LaunchDaemons/com.apple.discoveryd.plist
40 | echo "MULTICAST DISABLED (OSX 10.10), PLEASE REBOOT"
41 | fi
42 | exit
43 | else
44 | echo "OS X 10.10 NOT DETECTED, NO CHANGES HAVE BEEN MADE"
45 | fi
46 | fi
47 |
48 | else
49 | echo "SORRY, OS X NOT DETECTED - NO CHANGES MADE"
50 | fi
51 | exit
52 |
--------------------------------------------------------------------------------
/osx/configure/el_capitan/fix_privacy:
--------------------------------------------------------------------------------
1 | #!/usr/bin/python
2 |
3 | # https://github.com/fix-macosx/fix-macosx
4 |
5 | from Foundation import NSMutableArray, NSMutableDictionary
6 | from Foundation import CFPreferencesSynchronize, CFPreferencesCopyValue, CFPreferencesCopyKeyList, CFPreferencesSetValue, CFPreferencesCopyMultiple, CFPreferencesSetMultiple, kCFPreferencesCurrentUser, kCFPreferencesAnyHost
7 | import os, sys
8 |
9 | # We only handle Yosemite's spotlight for now
10 | majorRelease = int(os.uname()[2].split(".")[0])
11 | if majorRelease < 14:
12 | print "Good news! This version of Mac OS X's Spotlight and Safari are not known to invade your privacy."
13 | sys.exit(0)
14 |
15 | def fixSpotlight ():
16 | DISABLED_ITEMS=set(["MENU_WEBSEARCH", "MENU_SPOTLIGHT_SUGGESTIONS"])
17 | REQUIRED_ITEM_KEYS=set(["enabled", "name"])
18 | BUNDLE_ID="com.apple.Spotlight"
19 | PREF_NAME="orderedItems"
20 | DEFAULT_VALUE=[
21 | {'enabled' : True, 'name' : 'APPLICATIONS'},
22 | {'enabled' : False, 'name' : 'MENU_SPOTLIGHT_SUGGESTIONS'},
23 | {'enabled' : True, 'name' : 'MENU_CONVERSION'},
24 | {'enabled' : True, 'name' : 'MENU_EXPRESSION'},
25 | {'enabled' : True, 'name' : 'MENU_DEFINITION'},
26 | {'enabled' : True, 'name' : 'SYSTEM_PREFS'},
27 | {'enabled' : True, 'name' : 'DOCUMENTS'},
28 | {'enabled' : True, 'name' : 'DIRECTORIES'},
29 | {'enabled' : True, 'name' : 'PRESENTATIONS'},
30 | {'enabled' : True, 'name' : 'SPREADSHEETS'},
31 | {'enabled' : True, 'name' : 'PDF'},
32 | {'enabled' : True, 'name' : 'MESSAGES'},
33 | {'enabled' : True, 'name' : 'CONTACT'},
34 | {'enabled' : True, 'name' : 'EVENT_TODO'},
35 | {'enabled' : True, 'name' : 'IMAGES'},
36 | {'enabled' : True, 'name' : 'BOOKMARKS'},
37 | {'enabled' : True, 'name' : 'MUSIC'},
38 | {'enabled' : True, 'name' : 'MOVIES'},
39 | {'enabled' : True, 'name' : 'FONTS'},
40 | {'enabled' : True, 'name' : 'MENU_OTHER'},
41 | {'enabled' : False, 'name' : 'MENU_WEBSEARCH'}
42 | ]
43 |
44 | items = CFPreferencesCopyValue(PREF_NAME, BUNDLE_ID, kCFPreferencesCurrentUser, kCFPreferencesAnyHost)
45 | newItems = None
46 | if items is None or len(items) is 0:
47 | # Actual preference values are populated on demand; if the user
48 | # hasn't previously configured Spotlight, the preference value
49 | # will be unavailable
50 | newItems = DEFAULT_VALUE
51 | else:
52 | newItems = NSMutableArray.new()
53 | for item in items:
54 | missing_keys = []
55 | for key in REQUIRED_ITEM_KEYS:
56 | if not item.has_key(key):
57 | missing_keys.append(key)
58 |
59 | if len(missing_keys) != 0:
60 | print "Preference item %s is missing expected keys (%s), skipping" % (item, missing_keys)
61 | newItems.append(item)
62 | continue
63 |
64 | if item["name"] not in DISABLED_ITEMS:
65 | newItems.append(item)
66 | continue
67 |
68 | newItem = NSMutableDictionary.dictionaryWithDictionary_(item)
69 | newItem.setObject_forKey_(0, "enabled")
70 | newItems.append(newItem)
71 |
72 | CFPreferencesSetValue(PREF_NAME, newItems, BUNDLE_ID, kCFPreferencesCurrentUser, kCFPreferencesAnyHost)
73 | CFPreferencesSynchronize(BUNDLE_ID, kCFPreferencesCurrentUser, kCFPreferencesAnyHost)
74 |
75 | def fixSafariSpotlight ():
76 | # Safari "Spotlight" respects the system-wide Spotlight privacy settings
77 | # EXCEPT when it comes to submitting search metrics to Apple.
78 | #
79 | # To disable these metrics, we have to disable Safari's *seperate*
80 | # "Spotlight Suggestions" setting, in addition to Spotlight's
81 | # "Spotlight Suggestions".
82 | #
83 | # You'll be forgiven if you find this confusing.
84 | BUNDLE_ID="com.apple.Safari"
85 | PREF_NAME="UniversalSearchEnabled"
86 | CFPreferencesSetValue(PREF_NAME, False, BUNDLE_ID, kCFPreferencesCurrentUser, kCFPreferencesAnyHost)
87 | CFPreferencesSynchronize(BUNDLE_ID, kCFPreferencesCurrentUser, kCFPreferencesAnyHost)
88 |
89 | fixSpotlight()
90 | fixSafariSpotlight()
91 | print "All done. Make sure to log out (and back in) for the changes to take effect."
92 |
--------------------------------------------------------------------------------
/osx/configure/el_capitan/link_hidden_utilities:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | # Links to hidden utilities
4 |
5 | echo "Creating links to hidden utilities.."
6 |
7 | # Ask for the administrator password upfront
8 | sudo -v
9 |
10 | # Keep-alive: update existing `sudo` time stamp until has finished
11 | while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
12 |
13 |
14 | sudo ln -s "/System/Library/CoreServices/Applications/Archive Utility.app" "/Applications/Utilities/Archive Utility.app"
15 | sudo ln -s "/System/Library/CoreServices/Applications/Directory Utility.app" "/Applications/Utilities/Directory Utility.app"
16 | sudo ln -s "/System/Library/CoreServices/Applications/Feedback Assistant.app" "/Applications/Utilities/Feedback Assistant.app"
17 | sudo ln -s "/System/Library/CoreServices/Applications/Network Utility.app" "/Applications/Utilities/Network Utility.app"
18 | sudo ln -s "/System/Library/CoreServices/Applications/RAID Utility.app" "/Applications/Utilities/RAID Utility.app"
19 | sudo ln -s "/System/Library/CoreServices/Applications/Screen Sharing.app" "/Applications/Utilities/Screen Sharing.app"
20 | sudo ln -s "/System/Library/CoreServices/Applications/System Image Utility.app" "/Applications/Utilities/System Image Utility.app"
21 | sudo ln -s "/System/Library/CoreServices/Applications/Wireless Diagnostics.app" "/Applications/Utilities/Wireless Diagnostics.app"
22 |
23 | sudo ln -s "/System/Library/CoreServices/Network Diagnostics.app" "/Applications/Utilities/Network Diagnostics.app"
24 | sudo ln -s "/System/Library/CoreServices/Ticket Viewer.app" "/Applications/Utilities/Ticket Viewer.app"
25 |
26 | # iOS Simulator
27 | sudo ln -s "/Applications/Xcode.app/Contents/Applications/iPhone Simulator.app" "/Applications/iOS Simulator.app"
28 |
29 | echo "Done linking."
--------------------------------------------------------------------------------
/osx/configure/el_capitan/set_3rd_party_defaults:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 |
4 | set_default_apps {
5 | for ext in {mp3,flac,wav}; do duti -s com.coppertino.Vox "${ext}" all; done # audio
6 | for ext in {mkv,avi}; do duti -s org.videolan.vlc "${ext}" all; done # video
7 | #for ext in {7z,bz2,gz,rar,tar,zip}; do duti -s com.aone.keka "${ext}" all; done # archives
8 | }
9 |
10 | Flux()
11 | {
12 | defaults write org.herf.Flux moveToApplicationsFolderAlertSuppress -bool true
13 | defaults write org.href.Flux SUAutomaticallyUpdate 1
14 | }
15 |
16 | iTerm()
17 | {
18 | # Don’t display the annoying prompt when quitting iTerm
19 | defaults write com.googlecode.iterm2 PromptOnQuit -bool false
20 |
21 | # scroll less... output with mouse (iTerm 2.9+)
22 | defaults write com.googlecode.iterm2 AlternateMouseScroll -bool true
23 | }
24 |
25 | Transmission()
26 | {
27 | # Don’t prompt for confirmation before downloading
28 | defaults write org.m0k.transmission DownloadAsk -bool false
29 |
30 | # Hide the donate message
31 | defaults write org.m0k.transmission WarningDonate -bool false
32 |
33 | # Hide the legal disclaimer
34 | defaults write org.m0k.transmission WarningLegal -bool false
35 | }
36 |
37 | Caffeine()
38 | {
39 | defaults write com.lightheadsw.caffeine SuppressLaunchMessage -bool true
40 | }
41 |
42 | ClipMenu()
43 | {
44 | defaults write com.naotaka.ClipMenu maxHistorySize -int 100
45 | defaults write com.naotaka.ClipMenu numberOfItemsPlaceInline -int 10
46 | defaults write com.naotaka.ClipMenu showStatusItem -bool false
47 | }
48 |
49 | SourceTree()
50 | {
51 | mkdir -p "/Users/wolf/Library/Application Support/SourceTree"
52 | cp "/Users/wolf/.dotfiles/osx/etc/SourceTree/sourcetree.license" "/Users/wolf/Library/Application Support/SourceTree"
53 | }
54 |
--------------------------------------------------------------------------------
/osx/configure/el_capitan/set_plain_text_editor:
--------------------------------------------------------------------------------
1 | #!/usr/bin/python2.6
2 |
3 | # Set Sublime Text 3 as the default editor
4 | from LaunchServices import LSSetDefaultRoleHandlerForContentType, kLSRolesAll
5 | LSSetDefaultRoleHandlerForContentType("public.plain-text", kLSRolesAll, "com.sublimetext.3")
--------------------------------------------------------------------------------
/osx/configure/hotkeys.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 |
4 | # Character Special Key Abbreviation
5 | #--------------------------------------------------------
6 | # @ Command (Apple) CMD
7 | # ~ Option OPT
8 | # $ Shift SHIFT
9 | # ^ Control CTRL
10 |
11 | defaults write com.apple.finder NSUserKeyEquivalents ' {
12 | "Show Package Contents" = "@~o";
13 | "Tags..." = "@~t";
14 |
15 | }'
16 |
17 | defaults write com.apple.safari NSUserKeyEquivalents ' {
18 | "Undo Close Tab" = "@$t";
19 | }'
20 |
21 |
22 |
23 | #defaults write com.apple.symbolichotkeys AppleSymbolicHotKeys -dict-add 64 "{enabled = 0; value = { parameters = (65535, 49, 1048576); type = 'standard'; }; }"
24 |
25 | # http://apple.stackexchange.com/questions/91679/is-there-a-way-to-set-an-application-shortcut-in-the-keyboard-preference-pane-vi
26 | # http://krypted.com/mac-os-x/defaults-symbolichotkeys/
27 |
28 | # All Windows
29 | defaults write com.apple.symbolichotkeys.plist AppleSymbolicHotKeys -dict-add 32 "enabled"
30 | defaults write com.apple.symbolichotkeys.plist AppleSymbolicHotKeys -dict-add 34 "enabled"
31 |
32 | # Application Windows
33 | defaults write com.apple.symbolichotkeys.plist AppleSymbolicHotKeys -dict-add 33 "enabled"
34 | defaults write com.apple.symbolichotkeys.plist AppleSymbolicHotKeys -dict-add 35 "enabled"
35 |
36 | # Spaces Left
37 | defaults write com.apple.symbolichotkeys.plist AppleSymbolicHotKeys -dict-add 79 "enabled"
38 | defaults write com.apple.symbolichotkeys.plist AppleSymbolicHotKeys -dict-add 80 "enabled"
39 | # Spaces Right
40 | defaults write com.apple.symbolichotkeys.plist AppleSymbolicHotKeys -dict-add 81 "enabled"
41 | defaults write com.apple.symbolichotkeys.plist AppleSymbolicHotKeys -dict-add 82 "enabled"
42 |
43 | # Desktop
44 | defaults write com.apple.symbolichotkeys.plist AppleSymbolicHotKeys -dict-add 36 "enabled"
45 | defaults write com.apple.symbolichotkeys.plist AppleSymbolicHotKeys -dict-add 37 "enabled"
46 |
47 | # Dashboard
48 | defaults write com.apple.symbolichotkeys.plist AppleSymbolicHotKeys -dict-add 62 "enabled"
49 | defaults write com.apple.symbolichotkeys.plist AppleSymbolicHotKeys -dict-add 63 "enabled"
50 |
51 | # Turn VoiceOver on / off
52 | defaults write com.apple.symbolichotkeys.plist AppleSymbolicHotKeys -dict-add 59 "enabled"
53 |
54 | # Turn Dock Hiding On/Off
55 | defaults write com.apple.symbolichotkeys.plist AppleSymbolicHotKeys -dict-add 52 "enabled"
56 |
57 |
58 | # Input Sources > Select next source in Input menu : Cmd + Space
59 | defaults write com.apple.symbolichotkeys.plist AppleSymbolicHotKeys -dict-add 61 "
60 |
61 | enabled
62 | value
63 | typestandard
64 | parameters
65 |
66 | 32
67 | 49
68 | 1048576
69 |
70 |
71 |
72 | "
73 |
74 | # Spotlight > Show Spotlight search : Shift+Control+Option+S
75 | defaults write com.apple.symbolichotkeys.plist AppleSymbolicHotKeys -dict-add 64 "
76 |
77 | enabled
78 | value
79 | typestandard
80 | parameters
81 |
82 | 115
83 | 1
84 | 917504
85 |
86 |
87 |
88 | "
89 |
90 | # Show Spotlight window
91 | defaults write com.apple.symbolichotkeys.plist AppleSymbolicHotKeys -dict-add 65 "enabled"
92 |
93 |
94 | echo "Restart required"
--------------------------------------------------------------------------------
/osx/configure/install_alcatraz_xcode_plugin_manager:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env sh
2 |
3 | curl -fsSL https://raw.github.com/supermarin/Alcatraz/master/Scripts/install.sh | sh
4 |
5 |
6 | # https://github.com/kattrali/cocoapods-xcode-plugin
7 | # https://github.com/FuzzyAutocomplete/FuzzyAutocompletePlugin
8 | # https://github.com/dealforest/Tuna
9 | # https://github.com/fortinmike/XcodeBoost
10 |
11 |
--------------------------------------------------------------------------------
/osx/configure/install_android_tools:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env sh
2 |
3 | function installThings() {
4 | brew install android-sdk
5 | android update sdk --no-ui --filter 'platform-tools'
6 | brew install dex2jar
7 | brew install apktool
8 | }
9 |
10 | # Check for Homebrew
11 | if test ! $(which brew)
12 | then
13 | echo "You should probably install Homebrew first http://mxcl.github.com/homebrew/"
14 | else
15 | echo "Homebrew found."
16 | read -p "Install formulas? (y/n) " -n 1
17 | echo
18 | if [[ $REPLY =~ ^[Yy]$ ]]; then
19 | installThings
20 | exit
21 | else
22 | exit
23 | fi
24 | fi
--------------------------------------------------------------------------------
/osx/configure/install_cocoapods:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env sh
2 |
3 | # Installs cocoapods
4 |
5 | if test ! $(which pod)
6 | then
7 | echo "Installing Cocoapods(pod)..."
8 | if test $(which rvm)
9 | then
10 | echo "Found rvm, switching to system Ruby."
11 | rvm use system
12 | fi
13 | sudo gem install cocoapods
14 | else
15 | echo "Cocoapods(pod) already installed."
16 | fi
--------------------------------------------------------------------------------
/osx/configure/install_gnu_radio:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env sh
2 |
3 | # Check for MacPorts
4 | if test ! $(which port)
5 | then
6 | echo "You should probably install MacPorts first"
7 | else
8 | echo "MacPorts found."
9 | sudo port install gnuradio rtl-sdr gr-osmosdr gr-fosphor gr-baz gqrx;
10 | fi
--------------------------------------------------------------------------------
/osx/configure/install_homebrew:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env sh
2 |
3 | _macos_version() {
4 | sw_vers -productVersion | awk -F. '{print $2}'
5 | }
6 |
7 | _is_el_capitan() {
8 | [[ "$(_macos_version)" == "11" ]]
9 | }
10 |
11 | function installBrew() {
12 | echo "Installing Homebrew.."
13 | ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
14 | }
15 |
16 | function postInstallBrew() {
17 | brew doctor
18 | brew update
19 | brew upgrade
20 |
21 | brew tap homebrew/dupes
22 | brew tap homebrew/versions
23 |
24 | echo "Installing Caskroom.."
25 | brew install caskroom/cask/brew-cask
26 | brew tap caskroom/versions
27 | brew tap caskroom/homebrew-versions
28 | }
29 |
30 | function preInstall() {
31 | if _is_el_capitan
32 | then
33 | echo "More info: https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/El_Capitan_and_Homebrew.md"
34 | echo "Fixing /usr/local permissions"
35 | sudo chown $(whoami):admin /usr/local && sudo chown -R $(whoami):admin /usr/local
36 | fi
37 | }
38 |
39 | # Install Homebrew
40 | if test ! $(which brew)
41 | then
42 | preInstall
43 | installBrew
44 | postInstallBrew
45 | else
46 | echo "Homebrew found. Going on.."
47 | fi
--------------------------------------------------------------------------------
/osx/configure/install_homebrew_casks:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | function installThings() {
4 | echo "Updating caskroom.."
5 | brew update && brew upgrade brew-cask
6 |
7 | brew cask install sublime-text3
8 | brew cask install atom
9 |
10 | # System
11 | #brew cask install macports
12 | brew cask install xquartz
13 | brew cask install wineskin-winery
14 |
15 | # File
16 | #brew cask install android-file-transfer
17 | #brew cask install double-commander
18 | #brew cask install mucommander
19 |
20 | # IDEs
21 | #brew cask install caskroom/versions/java6
22 | brew cask install intellij-idea
23 | brew cask install phpstorm
24 | brew cask install pycharm
25 | brew cask install webstorm
26 | #brew cask install android-studio
27 | brew cask install appcode
28 | brew cask install clion-eap
29 | brew cask install 0xdbe-eap
30 | brew cask install paintcode
31 | brew cask install processing
32 |
33 | # Dev
34 | brew cask install sourcetree
35 | brew cask install gitup
36 | brew cask install github-desktop
37 | brew cask install cyberduck
38 | brew cask install hopper-disassembler
39 | brew cask install jeromelebel-mongohub
40 | brew cask install mongochef # the GUI for MongoDB
41 | brew cask install robomongo
42 | brew cask install key-codes
43 |
44 | # netlogo
45 | # brew cask install wireshark
46 | # brew cask install aquamacs
47 | # brew cask install emacs
48 | # brew cask install xamarin-studio
49 | # brew cask install fritzing
50 |
51 | brew cask install sketch-toolbox # sketch plugin manager
52 |
53 | # Tools
54 | brew cask install flux
55 | brew cask install cd-to
56 | brew cask install caffeine
57 | brew cask install battery-time-remaining
58 | brew cask install clipmenu
59 |
60 | # Virtualization
61 | brew cask install virtualbox
62 | brew cask install virtualbox-extension-pack
63 | brew cask install vagrant
64 | brew cask install parallels-virtualization-sdk
65 |
66 | # Web
67 | #brew cask install opera
68 | brew cask install torbrowser
69 | #brew cask install yandex
70 | brew cask install firefox
71 | brew cask install google-chrome
72 | #brew cask install bittorrent-sync
73 | #brew cask install google-earth
74 | #brew cask install google-hangouts
75 | #brew cask install jdownloader
76 | brew cask install transmission
77 | brew cask install vienna
78 | brew cask install virustotaluploader
79 | brew cask install dropbox
80 |
81 | # Media
82 | #brew cask install hugin
83 | brew cask install vlc
84 | brew cask install kid3
85 | brew cask install musicbrainz-picard
86 | #brew cask install xbmc
87 | #brew cask install gqrx
88 | #brew cask install gpgtools
89 | #brew cask install coconutbattery
90 | brew cask install soundcleod
91 | brew cask install nulloy
92 | brew cask install $HOME/.dotfiles/osx/configure/brew_casks/popcorn-time.rb
93 | brew cask install vagrant-manager
94 | brew cask install gas-mask
95 | brew cask install spectacle
96 | brew cask install cheatsheet
97 | brew cask install keepassx
98 | brew cask install limechat
99 | brew cask install iterm2
100 | brew cask install hocus-focus
101 | brew cask install skype
102 | brew cask install jadengeller-helium
103 |
104 | # Quick Look plugins [source][https://github.com/sindresorhus/quick-look-plugins]
105 | brew cask install qlcolorcode
106 | brew cask install qlstephen
107 | brew cask install qlmarkdown
108 | brew cask install quicklook-json
109 | brew cask install qlprettypatch
110 | brew cask install quicklook-csv
111 | brew cask install betterzipql
112 | brew cask install qlimagesize
113 | brew cask install webpquicklook
114 | brew cask install suspicious-package
115 | brew cask install provisionql
116 | qlmanage -r
117 |
118 | brew cask install terminology
119 |
120 | # Preference panes
121 | ## A Mac PreferencePane for managing services with launchd/launchctl. https://github.com/jimbojsb/launchrocket
122 | brew tap jimbojsb/launchrocket
123 | brew cask install launchrocket
124 | ## Default settings
125 | brew cask install RCDefaultApp
126 | ## MongoDb
127 | brew cask install mongodbpreferencepane
128 | brew cask install hosts
129 |
130 | # Screensaver
131 | brew cask install fliqlo
132 |
133 | brew cask cleanup
134 | }
135 |
136 | # Check for Homebrew
137 | if test ! "$(which brew)"
138 | then
139 | echo "You should probably install Homebrew first http://mxcl.github.com/homebrew/"
140 | else
141 | echo "Homebrew found."
142 | read -p "Install casks? (y/n) " -n 1
143 | echo
144 | if [[ $REPLY =~ ^[Yy]$ ]]; then
145 | installThings
146 | exit
147 | else
148 | exit
149 | fi
150 | fi
151 |
--------------------------------------------------------------------------------
/osx/configure/install_homebrew_core_tools:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env sh
2 |
3 | # Installs some usefull things using Homebrew
4 |
5 | function installThings() {
6 | # Make sure we’re using the latest Homebrew
7 | echo "Updating brew.."
8 | brew update
9 |
10 | brew tap telemachus/homebrew-desc
11 |
12 | brew install git
13 |
14 | # install some dependencies
15 | brew install gdbm --universal # library of database functions
16 | brew install sqlite --universal # SQL database engine
17 | brew install libsndfile # reading and writing files containing sampled sound
18 | brew install ffmpeg --with-libvpx --with-libvorbis --with-openssl --with-theora --with-x265
19 | brew install imagemagick
20 | brew install icoutils # extracting and converting Microsoft icon and cursor images
21 | brew install sox --with-flac --with-lame --with-libvorbis # universal sound sample translator
22 |
23 | #brew install zsh
24 | #brew install tmux
25 | #brew install fish
26 | #brew install heroku-toolbelt
27 |
28 | #brew install smlnj
29 | #brew install rust
30 | brew install node
31 | #brew install go
32 |
33 | #brew install osxfuse
34 | #brew install ntfs-3g
35 |
36 | #brew install emacs
37 | brew install z # jump around directories
38 | brew install trash # moves files or folders to the trash.
39 | brew install ranger # console file manager with VI key bindings.
40 | brew install pstree # shows the ps listing as a tree
41 | brew install pv # monitoring the progress of data through a pipeline.
42 | brew install grc # yet another colouriser
43 |
44 | brew install ncdu # Ncdu is a disk usage analyzer with an ncurses interface.
45 | brew install dfc # displays file system space usage using graphs and colors.
46 | brew install htop-osx
47 | brew install jq # lightweight and flexible command-line JSON processor.
48 | #brew install findutils
49 | brew install rename
50 | brew install tree # recursive directory listing
51 | #brew install keychain
52 | brew install ssh-copy-id
53 | brew install pidof # display the PID number for a given process name
54 | brew install testdisk # data recovery
55 | brew install duti # select default applications for document types and URL schemes
56 | #brew install https://raw.githubusercontent.com/diimdeep/OSXey/master/osxey.rb
57 | brew install fortune
58 | brew install ponysay
59 |
60 | brew install afsctool
61 | brew install apg # random password generation
62 | brew install pdfgrep # search text in PDF files
63 | brew install unrar # WinRAR CLI
64 | brew install awk
65 |
66 | brew install peco # interactive filtering tool
67 | brew install ag # faster than awk
68 | brew install carthage
69 | brew install chisel # collection of LLDB commands
70 | brew install cloc # counts blank lines, comment lines, and physical lines of source code
71 | brew install --HEAD fzf # command-line fuzzy finder.
72 | brew install httpie # CLI HTTP client
73 | brew install shellcheck # A shell script static analysis tool
74 | brew install speedtest_cli
75 | brew install terminal-notifier
76 |
77 |
78 | # Web tools
79 | brew install mitmproxy # interactive console program that allows traffic flows to be intercepted, inspected, modified and replayed.
80 | brew install wget --with-iri
81 | brew install curl
82 | #brew install aria2 # download utility
83 | #brew install w3m
84 | #brew install bmon # bandwidth monitor and rate estimator
85 | #brew install siege # http load testing and benchmarking utility
86 | brew install iftop # display bandwidth usage on an interface
87 | brew install nmap
88 | brew install mtr --no-gtk # combines ping and traceroute
89 |
90 | brew install ack
91 | #brew install ninja # build system with a focus on speed
92 | brew install xctool # replacement for Apple's xcodebuild
93 | brew install class-dump
94 | brew install valgrind
95 | #brew install "${DOTFILES}/osx/configure/brew_formulas/cycript.rb"
96 | #brew install binwalk # Firmware Analysis Tool
97 |
98 | brew install hub # MAKES GIT BETTER WITH GITHUB
99 | #brew install mongodb
100 | #brew install postgresql
101 |
102 | brew install commonmark # strongly specified, highly compatible implementation of Markdown
103 |
104 | # GNU utilities (those that come with OS X are outdated)
105 | brew install coreutils
106 | brew install binutils
107 |
108 | brew install exiv2 # manage image metadata
109 | brew install media-info # display of the most relevant technical and tag data for video and audio files.
110 | brew install submarine # Search and download subtitles
111 | brew install mp3check
112 | brew install mp3val
113 | brew install mpck
114 | brew install youtube-dl
115 |
116 | # Remove outdated versions from the cellar
117 | brew cleanup
118 | }
119 |
120 | # Check for Homebrew
121 | if test ! $(which brew)
122 | then
123 | echo "You should probably install Homebrew first http://mxcl.github.com/homebrew/"
124 | else
125 | echo "Homebrew found."
126 | read -p "Install brew formulas? (y/n) " -n 1
127 | echo
128 | if [[ $REPLY =~ ^[Yy]$ ]]; then
129 | installThings
130 | exit
131 | else
132 | exit
133 | fi
134 | fi
--------------------------------------------------------------------------------
/osx/configure/install_hopper_disassembler_scripts:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | git clone https://github.com/phracker/HopperScripts ~/Library/Application\ Support/Hopper/Scripts/HopperScripts && mv ~/Library/Application\ Support/Hopper/Scripts/HopperScripts/* ~/Library/Application\ Support/Hopper/Scripts/ && rm -rf ~/Library/Application\ Support/Hopper/Scripts/HopperScripts
3 |
--------------------------------------------------------------------------------
/osx/configure/install_ntfs_driver:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env sh
2 | echo "TODO"
3 | exit 1
4 |
5 | brew install ntfs-3g
6 |
7 | # sudo bless -mount "/Volumes/Windows HD" -legacy -setBoot -nextonly;shutdown -r now
8 |
9 | # sudo /bin/cp -RfX /usr/local/Cellar/osxfuse/2.6.4/Library/Filesystems/osxfusefs.fs /Library/Filesystems
10 | # sudo chmod +s /Library/Filesystems/osxfusefs.fs/Support/load_osxfusefs
11 | # sudo /bin/cp -RfX /usr/local/Cellar/osxfuse/2.6.4/Library/Filesystems/osxfusefs.fs /Library/Filesystems
12 |
13 | # sudo mv /sbin/mount_ntfs /sbin/mount_ntfs.orig
14 | # do ln -s /usr/local/Cellar/ntfs-3g/2014.2.15/sbin/mount_ntfs /sbin/mount_ntfs
15 |
16 |
--------------------------------------------------------------------------------
/osx/configure/install_powerline_fonts:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # pre-patched and adjusted fonts for usage with the new Powerline
4 | # Powerline is a statusline plugin for vim, and provides statuslines and prompts for several other applications.
5 |
6 | TDIR=`mktemp -d`
7 |
8 | trap "{ cd - ; rm -rf $TDIR; exit 255; }" SIGINT
9 |
10 | cd $TDIR
11 |
12 | git clone https://github.com/powerline/fonts.git
13 | cd fonts
14 | ./install.sh
15 | cd -
16 |
17 | cd -
18 |
19 | rm -rf $TDIR
20 |
21 | exit 0
22 |
--------------------------------------------------------------------------------
/osx/configure/install_vagrant_plugins:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env sh
2 |
3 | EXIT 1
4 |
5 | landrush (0.18.0)
6 | vagrant-aws (0.6.0)
7 | vagrant-digitalocean (0.7.7)
8 | vagrant-omnibus (1.4.1)
9 | vagrant-parallels (1.4.1)
--------------------------------------------------------------------------------
/osx/configure/link_arduino_libs:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env sh
2 |
3 | ln -sFfv "${DOTFILES}/etc/arduino/libraries" "$HOME/Documents/Arduino/libraries"
--------------------------------------------------------------------------------
/osx/configure/link_dotfiles:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env ruby
2 |
3 | puts "Linking library ..."
4 |
5 | DOTFILES = "~/.dotfiles"
6 |
7 | links = [
8 |
9 | "osx/etc/.htoprc",
10 |
11 | # shell
12 | "osx/etc/.bashrc",
13 | "osx/etc/.bash_profile",
14 | "osx/etc/.zshrc",
15 | "osx/etc/.inputrc",
16 | "osx/etc/.z",
17 | "osx/logs/.bash_eternal_history",
18 | "osx/logs/.zsh_history",
19 |
20 | # git
21 | "osx/etc/git/.gitconfig",
22 | "etc/git/.gitattributes",
23 | "etc/git/.gitignore_global"
24 | ]
25 |
26 | links.each do |link|
27 | `ln -sFfv #{DOTFILES}/#{link} $HOME/`
28 | end
29 |
30 | `ln -sFfv #{DOTFILES}/etc/ssh $HOME/.ssh`
31 |
32 | `mkdir -p $HOME/.config/fish/`
33 | `ln -sFfv #{DOTFILES}/osx/etc/config/fish/config.fish $HOME/.config/fish/`
--------------------------------------------------------------------------------
/osx/configure/login_items_configure:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | # https://github.com/MoOx/setup/tree/master/preferences
4 |
5 | function osxLoginItem {
6 | osascript -e "tell application \"System Events\" to make login item at end with properties {hidden:false, path:\"$1\", name:\"$2\" }" > /dev/null
7 | }
8 |
9 | osxLoginItem "$HOME/Applications/Spectacle.app" "Spectacle"
10 |
11 | echo "OS X Login items: $(osascript -e 'tell application "System Events" to get the name of every login item')"
12 |
--------------------------------------------------------------------------------
/osx/configure/mavericks/link_hidden_utilities:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env sh
2 |
3 | # Links to hidden utilities
4 |
5 | echo "Creating links to hidden utilities.."
6 |
7 | # Ask for the administrator password upfront
8 | sudo -v
9 |
10 | # Keep-alive: update existing `sudo` time stamp until has finished
11 | while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
12 |
13 | # Archive Utility
14 | sudo ln -s "/System/Library/CoreServices/Archive Utility.app" "/Applications/Utilities/Archive Utility.app"
15 |
16 | # Directory Utility
17 | sudo ln -s "/System/Library/CoreServices/Directory Utility.app" "/Applications/Utilities/Directory Utility.app"
18 |
19 | # Screen Sharing
20 | sudo ln -s "/System/Library/CoreServices/Screen Sharing.app" "/Applications/Utilities/Screen Sharing.app"
21 |
22 | # Ticket Viewer
23 | sudo ln -s "/System/Library/CoreServices/Ticket Viewer.app" "/Applications/Utilities/Ticket Viewer.app"
24 |
25 | sudo ln -s "/System/Library/CoreServices/Network Diagnostics.app" "/Applications/Utilities/Network Diagnostics.app"
26 | sudo ln -s "/System/Library/CoreServices/Applications/Network Utility.app" "/Applications/Utilities/Network Utility.app"
27 | sudo ln -s "/System/Library/CoreServices/Applications/Wireless Diagnostics.app" "/Applications/Utilities/Wireless Diagnostics.app"
28 |
29 | # iOS Simulator
30 | sudo ln -s "/Applications/Xcode.app/Contents/Applications/iPhone Simulator.app" "/Applications/iOS Simulator.app"
31 |
32 | echo "Done linking."
--------------------------------------------------------------------------------
/osx/configure/node_configure:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env sh
2 |
3 | function installThings() {
4 | npm install --global pageres # screenshoting
5 | npm install --global bower
6 | npm install --global grunt-cli
7 | npm install --global tldr
8 | npm install --global torrent-mount
9 | npm install --global node-inspector
10 | npm install --global peerflix
11 |
12 | # nw
13 | # functional-javascript-workshop
14 | # peerflix
15 | # shader-school
16 | # timetip
17 | # write-gooder
18 | }
19 |
20 | # Check for node.js & npm
21 | if test ! $(which npm)
22 | then
23 | echo "You should probably install node.js first http://nodejs.org or 'brew install node'"
24 | else
25 | echo "npm found."
26 | read -p "Install packages? (y/n) " -n 1
27 | echo
28 | if [[ $REPLY =~ ^[Yy]$ ]]; then
29 | installThings
30 | exit
31 | else
32 | exit
33 | fi
34 | fi
--------------------------------------------------------------------------------
/osx/configure/node_nvm_install:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env sh
2 |
3 | curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.25.1/install.sh | bash
--------------------------------------------------------------------------------
/osx/configure/osx_settings/README.markdown:
--------------------------------------------------------------------------------
1 | osx_settings
2 | ============
3 |
4 | Script to backup/restore OS X app settings. Handy for moving to a new
5 | computer, repeatedly switching computers or, you know, just for the joy of
6 | having backups.
7 |
8 |
9 | Basic usage
10 | -----------
11 |
12 | Usage:
13 | settings [args] backup [app ...]
14 | settings [args] restore [app ...]
15 |
16 | Args:
17 | -b dir set backup dir, default ~/Dropbox/Settings
18 | -c dir set config dir, default ~/etc/osx_settings
19 | -h show help
20 | -l dir set library dir, default ~/Library
21 | -q quiet, no output
22 | -v verbose, output all files copied
23 |
24 | Create an new `.conf` file in `~/etc/osx_settings` which lists the files
25 | under `~/Library` that need to be backed up. Run `settings backup` and those
26 | files will be copied to the backup directory.
27 |
28 | ### Directories
29 |
30 | * `backup` -- where the backups are stored. Defaults to
31 | `~/Backup/Settings`. Override by setting `OSX_SETTINGS_BACKUP` or passing
32 | the `-b ` argument.
33 |
34 | * `config` -- where the config files are stored. Defaults to
35 | `${DOTFILES}/osx/configure/osx_settings/config`. Override by setting `OSX_SETTINGS_CONFIG` or passing
36 | the `-c ` argument.
37 |
38 | * `library_directory` -- where the backups are taken from/restored to.
39 | Defaults to `~/Library`. Override by setting `OSX_SETTINGS_LIBRARY` or
40 | passing the `-l ` argument.
--------------------------------------------------------------------------------
/osx/configure/osx_settings/config/Alfred.conf:
--------------------------------------------------------------------------------
1 | Application Support/Alfred 2
2 | Preferences/com.runningwithcrayons.Alfred-2.plist
--------------------------------------------------------------------------------
/osx/configure/osx_settings/config/Bartender.conf:
--------------------------------------------------------------------------------
1 | Preferences/com.surteesstudios.Bartender.plist
--------------------------------------------------------------------------------
/osx/configure/osx_settings/config/Dash.conf:
--------------------------------------------------------------------------------
1 | Application Support/Dash
2 | Preferences/com.kapeli.dash.plist
--------------------------------------------------------------------------------
/osx/configure/osx_settings/config/KeePassX.conf:
--------------------------------------------------------------------------------
1 | Preferences/org.keepassx.keepassx.plist
2 | Application Support/keepassx
--------------------------------------------------------------------------------
/osx/configure/osx_settings/config/LimeChat.conf:
--------------------------------------------------------------------------------
1 | Preferences/net.limechat.LimeChat.plist
--------------------------------------------------------------------------------
/osx/configure/osx_settings/config/Pictary.conf:
--------------------------------------------------------------------------------
1 | Containers/de.glektrik.pictary/Data/Library/Preferences/de.glektrik.pictary.plist
--------------------------------------------------------------------------------
/osx/configure/osx_settings/config/PopClip.conf:
--------------------------------------------------------------------------------
1 | Preferences/com.pilotmoon.popclip.plist
2 | Application Support/PopClip
--------------------------------------------------------------------------------
/osx/configure/osx_settings/config/Terminal.conf:
--------------------------------------------------------------------------------
1 | Preferences/com.apple.Terminal.plist
2 | Scripts/Open New Terminal Window
3 |
--------------------------------------------------------------------------------
/osx/configure/osx_settings/config/iStatMenus.conf:
--------------------------------------------------------------------------------
1 | Application Support/iStat Menus
2 | Caches/com.bjango.istatmenus
3 | Preferences/com.bjango.istatmenus.extras.plist
4 | Preferences/com.bjango.istatmenus.plist
5 |
--------------------------------------------------------------------------------
/osx/configure/osx_settings/config/iTerm2.conf:
--------------------------------------------------------------------------------
1 | Preferences/com.googlecode.iterm2.plist
--------------------------------------------------------------------------------
/osx/configure/osx_settings/config_disabled/Adium.conf:
--------------------------------------------------------------------------------
1 | Application Support/Adium
2 | Application Support/Adium 2.0
3 | Caches/Adium
4 | Caches/com.adiumX.adiumX
5 | Keychains/Adium.keychain
6 | Preferences/com.adiumX.adiumX.plist
7 |
--------------------------------------------------------------------------------
/osx/configure/osx_settings/config_disabled/AntiRSI.conf:
--------------------------------------------------------------------------------
1 | Preferences/com.onnlucky.antirsi.plist
2 |
--------------------------------------------------------------------------------
/osx/configure/osx_settings/config_disabled/Choosy.conf:
--------------------------------------------------------------------------------
1 | Application Support/Choosy
2 | Preferences/com.choosyosx.Choosy.plist
3 | Preferences/com.choosyosx.ChoosyPrefPane.plist
4 |
--------------------------------------------------------------------------------
/osx/configure/osx_settings/config_disabled/Clipboard_Center.conf:
--------------------------------------------------------------------------------
1 | Containers/com.kodlian.Clipboard-Center/Data/Library/Application Support/Clipboard Center
2 | Containers/com.kodlian.Clipboard-Center/Data/Library/Preferences/com.kodlian.Clipboard-Center.plist
--------------------------------------------------------------------------------
/osx/configure/osx_settings/config_disabled/FTL.conf:
--------------------------------------------------------------------------------
1 | Application Support/FasterThanLight
2 |
--------------------------------------------------------------------------------
/osx/configure/osx_settings/config_disabled/Flux.conf:
--------------------------------------------------------------------------------
1 | Preferences/org.herf.Flux.plist
--------------------------------------------------------------------------------
/osx/configure/osx_settings/config_disabled/MercuryMover.conf:
--------------------------------------------------------------------------------
1 | Caches/com.heliumfoot.MyWiAgent
2 | Preferences/com.heliumfoot.MyWiAgent.plist
3 |
--------------------------------------------------------------------------------
/osx/configure/osx_settings/config_disabled/Minecraft.conf:
--------------------------------------------------------------------------------
1 | Application Support/minecraft
2 |
--------------------------------------------------------------------------------
/osx/configure/osx_settings/config_disabled/Moom.conf:
--------------------------------------------------------------------------------
1 | Preferences/com.manytricks.Moom.plist
--------------------------------------------------------------------------------
/osx/configure/osx_settings/config_disabled/Reeder.conf:
--------------------------------------------------------------------------------
1 | Containers/com.reederapp.rkit2.mac
2 |
--------------------------------------------------------------------------------
/osx/configure/osx_settings/config_disabled/SSH Proxy.conf:
--------------------------------------------------------------------------------
1 | Containers/com.codinnstudio.sshproxy/Data/Library/Preferences/com.codinnstudio.sshproxy.plist
--------------------------------------------------------------------------------
/osx/configure/osx_settings/config_disabled/Safari.conf:
--------------------------------------------------------------------------------
1 | Safari
2 | Caches/com.apple.Safari
3 | Caches/Metadata/Safari
4 | Cookies/Cookies.binarycookies
5 | Preferences/com.apple.Safari.Extensions.plist
6 | Preferences/com.apple.Safari.plist
7 |
--------------------------------------------------------------------------------
/osx/configure/osx_settings/config_disabled/Slack.conf:
--------------------------------------------------------------------------------
1 | Containers/com.tinyspeck.slackmacgap
2 |
--------------------------------------------------------------------------------
/osx/configure/osx_settings/config_disabled/Sleipnir.conf:
--------------------------------------------------------------------------------
1 | Application Support/Sleipnir
2 | Caches/jp.co.fenrir.sleipnir
3 | Preferences/jp.co.fenrir.sleipnir-helper.plist
4 | Preferences/jp.co.fenrir.sleipnir.plist
5 |
--------------------------------------------------------------------------------
/osx/configure/osx_settings/config_disabled/SomaFM.conf:
--------------------------------------------------------------------------------
1 | Containers/com.somafm.somafmmac/Data/Library/Preferences/com.somafm.somafmmac.plist
--------------------------------------------------------------------------------
/osx/configure/osx_settings/config_disabled/Spotify.conf:
--------------------------------------------------------------------------------
1 | Application Support/Spotify
--------------------------------------------------------------------------------
/osx/configure/osx_settings/config_disabled/Stickies.conf:
--------------------------------------------------------------------------------
1 | Preferences/com.apple.Stickies.plist
2 | StickiesDatabase
3 |
--------------------------------------------------------------------------------
/osx/configure/osx_settings/config_disabled/TextMate.conf:
--------------------------------------------------------------------------------
1 | Application Support/TextMate
2 | Preferences/com.macromates.textmate.LSSharedFileList.plist
3 | Preferences/com.macromates.textmate.plist
4 |
--------------------------------------------------------------------------------
/osx/configure/osx_settings/config_disabled/Textual_IRC.conf:
--------------------------------------------------------------------------------
1 | Containers/com.codeux.irc.textual/Data/Library/Application Support/Textual IRC
2 | Containers/com.codeux.irc.textual/Data/Library/Preferences/com.codeux.irc.textual.plist
--------------------------------------------------------------------------------
/osx/configure/osx_settings/config_disabled/Things.conf:
--------------------------------------------------------------------------------
1 | Caches/com.culturedcode.things
2 | Caches/Metadata/com.culturedcode.things
3 | Containers/com.culturedcode.things
4 | Preferences/com.culturedcode.things.plist
5 |
--------------------------------------------------------------------------------
/osx/configure/osx_settings/config_disabled/Time_Out.conf:
--------------------------------------------------------------------------------
1 | Preferences/com.dejal.timeout.plist
--------------------------------------------------------------------------------
/osx/configure/osx_settings/config_disabled/Timings.conf:
--------------------------------------------------------------------------------
1 | Preferences/com.mediaatelier.Timings.plist
2 | Application Support/Timings
--------------------------------------------------------------------------------
/osx/configure/osx_settings/config_disabled/mindfulmynah.conf:
--------------------------------------------------------------------------------
1 | Containers/com.richhenderson.mindfulmynah/Data/Library/Preferences/com.richhenderson.mindfulmynah.plist
--------------------------------------------------------------------------------
/osx/configure/osx_settings/config_disabled/nvALT.conf:
--------------------------------------------------------------------------------
1 | Application Support/nvAlt
2 | Preferences/net.elasticthreads.nv.plist
3 | Caches/net.elasticthreads.nv
4 |
--------------------------------------------------------------------------------
/osx/configure/osx_settings/config_disabled/snowtape.conf:
--------------------------------------------------------------------------------
1 | Preferences/com.vemedio.osx.snowtape.plist
--------------------------------------------------------------------------------
/osx/configure/osx_settings/config_disabled/xScope.conf:
--------------------------------------------------------------------------------
1 | Containers/com.artissoftware.mac.xScope
2 |
--------------------------------------------------------------------------------
/osx/configure/osx_settings/settings:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | backup_directory=${OSX_SETTINGS_BACKUP:-${HOME}/Backup/Settings}
4 | library_directory=${OSX_SETTINGS_LIBRARY:-${HOME}/Library}
5 | config_directory=${OSX_SETTINGS_CONFIG:-${DOTFILES}/osx/configure/osx_settings/config}
6 | rsync_args="-a --recursive"
7 | quiet=0
8 |
9 |
10 | function usage {
11 | echo "Usage:
12 | settings [args] backup [app ...]
13 | settings [args] restore [app ...]
14 |
15 | Args:
16 | -b dir set backup dir, default ~/Dropbox/Settings
17 | -c dir set config dir, default ~/etc/osx_settings
18 | -h show help
19 | -l dir set library dir, default ~/Library
20 | -q quiet, no output
21 | -v verbose, output all files copied"
22 | exit 1
23 | }
24 | function act_on_files {
25 | local action=$1
26 | shift
27 |
28 | local all_apps=`list_all_apps`
29 | local list="${@:-$all_apps}"
30 |
31 | for app in $list; do
32 | $action $app
33 | done
34 | }
35 | function backup_app {
36 | local app=$1
37 |
38 | [ $quiet -eq 0 ] && \
39 | echo Backing up $app
40 |
41 | rsync ${rsync_args} \
42 | --files-from="${config_directory}/${app}.conf" \
43 | "${library_directory}" \
44 | "${backup_directory}/${app}"
45 | }
46 | function restore_app {
47 | local app=$1
48 |
49 | [ $quiet -eq 0 ] && \
50 | echo Restoring $app
51 |
52 | rsync ${rsync_args} \
53 | --files-from="${config_directory}/${app}.conf" \
54 | "${backup_directory}/${app}" \
55 | "${library_directory}"
56 | }
57 | function list_all_apps {
58 | local app
59 | local list=""
60 |
61 | for app in $config_directory/*.conf; do
62 | app=`basename $app .conf`
63 | list="$list $app"
64 | done
65 |
66 | echo $list
67 | }
68 |
69 | while getopts "b:c:hl:qv" option; do
70 | case $option in
71 | b) backup_directory="${OPTARG}" ;;
72 | c) config_directory="${OPTARG}" ;;
73 | h) usage ;;
74 | l) library_directory="${OPTARG}" ;;
75 | q) quiet=1 ;;
76 | v) rsync_args="${rsync_args} -v" ;;
77 | *) echo "Unknown argument: $option"
78 | usage ;;
79 | esac
80 | done
81 | shift $(( OPTIND -1 ))
82 |
83 | arg="$1"
84 | shift
85 |
86 | case "$arg" in
87 | backup) act_on_files backup_app "$@"
88 | ;;
89 | restore) act_on_files restore_app "$@"
90 | ;;
91 | *) echo "Unknown argument: $1"
92 | usage
93 | ;;
94 | esac
95 |
--------------------------------------------------------------------------------
/osx/configure/ruby_configure:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env sh
2 |
3 | if test $(which rvm)
4 | then
5 | echo "Found rvm."
6 | else
7 | echo "Installing rvm..."
8 | curl -sSL https://get.rvm.io | bash -s stable
9 | fi
10 |
11 | echo "Install ruby"
12 | rvm install ruby
13 |
14 | echo "Install rubygems"
15 | rvm install rubygems latest
--------------------------------------------------------------------------------
/osx/configure/set_capslock_to_do_nothing:
--------------------------------------------------------------------------------
1 | #!/usr/bin/osascript
2 |
3 | --http://brettterpstra.com/2012/12/08/a-useful-caps-lock-key/
4 | --http://apple.stackexchange.com/questions/13598/updating-modifier-key-mappings-through-defaults-command-tool
5 |
6 | set keyboardName to "natural"
7 |
8 | --reboot system preferences to make GUI state more predictable
9 | tell application "System Preferences"
10 | quit
11 | delay 1
12 | activate
13 | delay 1
14 | activate
15 | end tell
16 |
17 | tell application "System Events"
18 |
19 | --Bring up keyboard prefs
20 | key code 53 --escape
21 | keystroke "f" using command down
22 | delay 0.5
23 | key code 53 --escape
24 | keystroke "keyboard"
25 | delay 0.5
26 | key code 36 --return
27 | delay 1
28 |
29 | --Open modifier keys submenu
30 | repeat 4 times
31 | keystroke tab using shift down
32 | --delay 0.1
33 | end repeat
34 | --delay 0.1
35 | keystroke space
36 | delay 0.1
37 |
38 | --Select keyboard
39 | keystroke space
40 | keystroke keyboardName
41 | keystroke return
42 | delay 0.5
43 |
44 |
45 | --Open "Caps Lock" drop-down && select "No action"
46 | keystroke space
47 | delay 0.1
48 | repeat 4 times
49 | key code 125 --down arrow
50 | end repeat
51 | delay 0.1
52 | keystroke return
53 |
54 | delay 0.1
55 |
56 | keystroke return
57 |
58 | tell application "System Preferences"
59 | quit
60 | end tell
61 | end tell
--------------------------------------------------------------------------------
/osx/configure/sublime_text_configure:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | source `dirname $0`/../../etc/helpers.sh
4 |
5 | SUBLIME_PREFS_DIR="$HOME/Library/Application Support/Sublime Text 3"
6 | package_control_file="$SUBLIME_PREFS_DIR/Installed Packages/Package Control.sublime-package"
7 |
8 | header "Sublime Text"
9 |
10 | bullet "Installing package control... "
11 |
12 | if [[ -e "$package_control_file" ]]; then
13 | info "already installed"
14 | else
15 | echo
16 | make_dir "$SUBLIME_PREFS_DIR/Installed Packages"
17 | curl https://sublime.wbond.net/Package%20Control.sublime-package -o "$package_control_file"
18 | success "done"
19 | fi
20 |
21 | #bullet "Symlink preferences... "
22 | #make_dir "$SUBLIME_PREFS_DIR/Packages/"
23 | #symlink "$HOME/.dotfiles/osx/etc/SublimeText3_User" "$SUBLIME_PREFS_DIR/Packages/User"
24 |
--------------------------------------------------------------------------------
/osx/configure/yosemite/link_hidden_utilities:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env sh
2 |
3 | # Links to hidden utilities
4 |
5 | echo "Creating links to hidden utilities.."
6 |
7 | # Ask for the administrator password upfront
8 | sudo -v
9 |
10 | # Keep-alive: update existing `sudo` time stamp until has finished
11 | while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
12 |
13 | # Archive Utility
14 | sudo ln -s "/System/Library/CoreServices/Applications/Archive Utility.app" "/Applications/Utilities/Archive Utility.app"
15 |
16 | # Directory Utility
17 | sudo ln -s "/System/Library/CoreServices/Applications/Directory Utility.app" "/Applications/Utilities/Directory Utility.app"
18 |
19 | # Screen Sharing
20 | sudo ln -s "/System/Library/CoreServices/Applications/Screen Sharing.app" "/Applications/Utilities/Screen Sharing.app"
21 |
22 | # Ticket Viewer
23 | sudo ln -s "/System/Library/CoreServices/Ticket Viewer.app" "/Applications/Utilities/Ticket Viewer.app"
24 |
25 | sudo ln -s "/System/Library/CoreServices/Network Diagnostics.app" "/Applications/Utilities/Network Diagnostics.app"
26 | sudo ln -s "/System/Library/CoreServices/Applications/Network Utility.app" "/Applications/Utilities/Network Utility.app"
27 | sudo ln -s "/System/Library/CoreServices/Applications/Wireless Diagnostics.app" "/Applications/Utilities/Wireless Diagnostics.app"
28 | sudo ln -s "/System/Library/CoreServices/Applications/Feedback Assistant.app" "/Applications/Utilities/Feedback Assistant.app"
29 | sudo ln -s "/System/Library/CoreServices/Applications/RAID Utility.app" "/Applications/Utilities/RAID Utility.app"
30 | sudo ln -s "/System/Library/CoreServices/Applications/System Image Utility.app" "/Applications/Utilities/System Image Utility.app"
31 |
32 | # iOS Simulator
33 | sudo ln -s "/Applications/Xcode.app/Contents/Applications/iPhone Simulator.app" "/Applications/iOS Simulator.app"
34 |
35 | echo "Done linking."
--------------------------------------------------------------------------------
/osx/configure/yosemite/set_default_file_manager:
--------------------------------------------------------------------------------
1 | #!/usr/bin/python2.6
2 |
3 | from LaunchServices import LSSetDefaultRoleHandlerForContentType, kLSRolesViewer, LSSetDefaultHandlerForURLScheme
4 | from CoreFoundation import CFPreferencesCopyApplicationList, kCFPreferencesCurrentUser, kCFPreferencesAnyHost, CFPreferencesSetAppValue, CFPreferencesAppSynchronize
5 |
6 | applicationBundleIdentifier = "com.cocoatech.PathFinder" # works nicely
7 |
8 | #"info.filesmanager.Files" - dont work
9 | #"com.panic.Transmit" - dont work
10 | #"com.binarynights.forklift2" - dont work
11 | #"com.mucommander.muCommander" - hangs
12 |
13 | LSSetDefaultRoleHandlerForContentType("public.folder", kLSRolesViewer, applicationBundleIdentifier)
14 | LSSetDefaultHandlerForURLScheme("file:///", applicationBundleIdentifier)
15 |
16 | applicationIDs = CFPreferencesCopyApplicationList(kCFPreferencesCurrentUser, kCFPreferencesAnyHost)
17 | for app_id in applicationIDs:
18 | CFPreferencesSetAppValue("NSFileViewer", applicationBundleIdentifier, app_id);
19 | CFPreferencesAppSynchronize(app_id);
20 |
21 |
--------------------------------------------------------------------------------
/osx/configure/yosemite/set_plain_text_editor:
--------------------------------------------------------------------------------
1 | #!/usr/bin/python2.6
2 |
3 | # Set Sublime Text 3 as the default editor
4 | from LaunchServices import LSSetDefaultRoleHandlerForContentType, kLSRolesAll
5 | LSSetDefaultRoleHandlerForContentType("public.plain-text", kLSRolesAll, "com.sublimetext.3")
--------------------------------------------------------------------------------
/osx/etc/.bash_profile:
--------------------------------------------------------------------------------
1 | source .bashrc
2 |
3 | # interactive command launcher
4 | h() {
5 | commandfile=$(mktemp)
6 | vim +"noremap :.w! $commandfile \\| q!" $DOTFILES/commands.txt
7 | source "$commandfile"
8 | rm "$commandfile"
9 | }
10 |
11 | hh() {
12 | #commandfile=$(mktemp)
13 | vim -u /Users/wolf/.dotfiles/osx/etc/.vimrc_help $DOTFILES/commands.txt
14 | #source "$commandfile"
15 | #rm "$commandfile"
16 | }
17 |
18 | update() {
19 | local brew="brew update; brew upgrade;"
20 | #local gem="gem update;"
21 | #local pip="pip freeze --local | grep -v '^\-e' | cut -d = -f 1 | xargs pip install -U -q"
22 | sh -c $brew;
23 | #sudo sh -c $gem$pip
24 | }
25 |
26 | cleanup() {
27 | # For all installed or specific formulae, remove any older versions from the cellar. -s scrubs the cache, removing downloads for even the latest versions of formula.
28 | brew cleanup -s
29 | }
30 |
31 | # add `username ALL = NOPASSWD: /usr/local/bin/htop` to /etc/sudoers using `visudo` to bypass password
32 | function htop() { sudo htop; }
33 |
34 | # ll function formats the ls -l output better
35 | function ll ()
36 | {
37 | clear;
38 | tput cup 0 0;
39 | ls --color=auto -F --color=always -lhFrt $@;
40 | tput cup 40 0;
41 | }
42 |
43 |
44 | # mach displays the basic information about the system
45 | function mach()
46 | {
47 | echo -e "\nMachine information:" ; uname -a
48 | echo -e "\nUsers logged on:" ; w -h
49 | echo -e "\nCurrent date :" ; date
50 | echo -e "\nMachine status :" ; uptime
51 | echo -e "\nMemory status :" ; free
52 | echo -e "\nFilesystem status :"; df -h
53 | }
54 |
55 |
56 | # alias last and save
57 | # use `als c NAME` to chop off the last argument (for filenames/patterns)
58 | # sourse: http://brettterpstra.com/2013/08/30/easily-save-that-wicked-awesome-shell-command/
59 | als() {
60 | local aliasfile chop x
61 | [[ $# == 0 ]] && echo "Name your alias" && return
62 | if [[ $1 == "c" ]]; then
63 | chop=true
64 | shift
65 | fi
66 | aliasfile=~/.bash_it/aliases/custom.aliases.bash
67 | touch $aliasfile
68 | if [[ `cat "$aliasfile" |grep "alias ${1// /}="` != "" ]]; then
69 | echo "Alias ${1// /} already exists"
70 | else
71 | x=`history 2 | sed -e '$!{h;d;}' -e x | sed -e 's/.\{7\}//'`
72 | if [[ $chop == true ]]; then
73 | echo "Chopping..."
74 | x=$(echo $x | rev | cut -d " " -f2- | rev)
75 | fi
76 | echo -e "\nalias ${1// /}=\"`echo $x|sed -e 's/ *$//'|sed -e 's/\"/\\\\"/g'`\"" >> $aliasfile && source $aliasfile
77 | alias $1
78 | fi
79 | }
80 |
81 |
82 | fk () { # build menu to kill process
83 | IFS=$'\n'
84 | PS3='Kill which process? '
85 | select OPT in $(fp $1) "Cancel"; do
86 | if [ $OPT != "Cancel" ]; then
87 | kill $(echo $OPT|awk '{print $NF}')
88 | fi
89 | break
90 | done
91 | unset IFS
92 | }
93 |
94 |
95 |
96 | function _complete_app_alias()
97 | {
98 | local cmd="${1##*/}"
99 | local word=${COMP_WORDS[COMP_CWORD]}
100 | local line=${COMP_LINE}
101 | local patt
102 |
103 | # Check to see what command is being executed.
104 | case "$cmd" in
105 | xc)
106 | patt='!*.xcodeproj'
107 | ;;
108 | alpha)
109 | patt='!*.png'
110 | ;;
111 | esac
112 |
113 | COMPREPLY=($(compgen -f -X "$patt" -- "${word}"))
114 | }
115 |
116 | complete -o bashdefault -o dirnames -o filenames -o default -o nospace -F _complete_app_alias sublp subp xc alpha || \
117 | complete -o default -o dirnames -o filenames -o nospace -F _complete_app_alias sublp subp esp xc tp alpha byword mmdc
118 |
119 |
--------------------------------------------------------------------------------
/osx/etc/.bashrc:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # the basics
4 | : ${HOME=~}
5 | : ${LOGNAME=$(id -un)}
6 | : ${UNAME=$(uname)}
7 |
8 | # complete hostnames from this file
9 | : ${HOSTFILE=~/.ssh/known_hosts}
10 |
11 | # Path to dotfiles directory
12 | DOTFILES=$HOME/.dotfiles
13 | export DOTFILES
14 |
15 | # SETTING UP LOCALE
16 |
17 | export LANGUAGE=ru_RU.UTF-8
18 | export LANG=ru_RU.UTF-8
19 | export LC_ALL=ru_RU.UTF-8
20 |
21 | # ----------------------------------------------------------------------
22 | # ENVIRONMENT CONFIGURATION
23 | # ----------------------------------------------------------------------
24 |
25 | # detect interactive shell
26 | case "$-" in
27 | *i*) INTERACTIVE=yes ;;
28 | *) unset INTERACTIVE ;;
29 | esac
30 |
31 | # detect login shell
32 | case "$0" in
33 | -*) LOGIN=yes ;;
34 | *) unset LOGIN ;;
35 | esac
36 |
37 | # ----------------------------------------------------------------------
38 | # PATH
39 | # ----------------------------------------------------------------------
40 |
41 | # put ~/bin on PATH if you have it
42 | test -d "$DOTFILES/bin" &&
43 | PATH="$DOTFILES/bin:$PATH"
44 |
45 | test -d "$DOTFILES/osx/bin" &&
46 | PATH="$DOTFILES/osx/bin:$PATH"
47 |
48 | # ----------------------------------------------------------------------
49 | # PAGER / EDITOR
50 | # ----------------------------------------------------------------------
51 |
52 | EDITOR=vim
53 | GEDITOR='subl -w'
54 |
55 | export EDITOR
56 | export GEDITOR
57 |
58 | # PAGER
59 | if test -n "$(command -v less)" ; then
60 | PAGER="less -FirSwX"
61 | MANPAGER="less -FiRswX"
62 | else
63 | PAGER=more
64 | MANPAGER="$PAGER"
65 | fi
66 | export PAGER MANPAGER
67 |
68 | # Ack
69 | ACK_PAGER="$PAGER"
70 | ACK_PAGER_COLOR="$PAGER"
71 |
72 | # HOMEBREW path
73 | export PATH="$(brew --prefix)/bin:$PATH"
74 | export PATH="$(brew --prefix)/sbin:$PATH"
75 |
76 | # coreutils configuration
77 | # If you really need to use these commands with their normal names, you
78 | # can add a "gnubin" directory to your PATH from your bashrc like:
79 | PATH="$(brew --prefix coreutils)/libexec/gnubin:$PATH"
80 | # Additionally, you can access their man pages with normal names if you add
81 | # the "gnuman" directory to your MANPATH from your bashrc as well:
82 | MANPATH="$(brew --prefix coreutils)/libexec/gnuman:$MANPATH"
83 |
84 | # GRC loading
85 | source "$(brew --prefix)/etc/grc.bashrc"
86 |
87 | # NPM configuration
88 | PATH="$(brew --prefix)/share/npm/bin:$PATH"
89 |
90 | # virtualenv loading
91 | # http://virtualenvwrapper.readthedocs.org/en/latest/install.html#basic-installation
92 | # mkdir -p $HOME/.virtualenvs
93 | export WORKON_HOME=$HOME/.virtualenvs
94 | #export PROJECT_HOME=$HOME/Projects
95 | export VIRTUALENVWRAPPER_SCRIPT=/usr/local/bin/virtualenvwrapper.sh
96 | source /usr/local/bin/virtualenvwrapper_lazy.sh
97 |
98 |
99 | # Add RVM to PATH
100 | PATH=$PATH:$HOME/.rvm/bin
101 |
102 | [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
103 |
104 |
105 | # MacPorts path 10.9+
106 | export PATH=/opt/local/bin:/opt/local/sbin:$PATH
107 | export MANPATH=/opt/local/share/man:$MANPATH
108 |
109 |
110 | # export PHPBREW_SET_PROMPT=1
111 | # source /Users/dmitrywolf/.phpbrew/bashrc
112 |
113 |
114 | # boot2docker
115 | # export DOCKER_HOST=tcp://localhost:4243
116 |
117 |
118 | # Eternal bash history.
119 | # ---------------------
120 | # Undocumented feature which sets the size to "unlimited".
121 | # http://stackoverflow.com/questions/9457233/unlimited-bash-history
122 | export HISTFILESIZE=
123 | export HISTSIZE=
124 | export HISTTIMEFORMAT="[%F %T] "
125 | # Change the file location because certain bash sessions truncate .bash_history file upon close.
126 | # http://superuser.com/questions/575479/bash-history-truncated-to-500-lines-on-each-login
127 | export HISTFILE=~/.bash_eternal_history
128 | # Force prompt to write history after every command.
129 | # http://superuser.com/questions/20900/bash-history-loss
130 | PROMPT_COMMAND="history -a; $PROMPT_COMMAND"
131 | ### Added by the Heroku Toolbelt
132 | export PATH="/usr/local/heroku/bin:$PATH"
133 |
134 |
135 | # -------------------------------------------------------------------
136 | # MOTD / FORTUNE
137 | # -------------------------------------------------------------------
138 |
139 | test -n "$INTERACTIVE" -a -n "$LOGIN" -a -n $(which osxey) && {
140 | OSXey -c
141 | }
142 |
143 | # automatically fixes your 'cd folder' spelling mistakes
144 | shopt -s cdspell
145 |
146 | # tool for tracking your most used directories
147 | source `brew --prefix`/etc/profile.d/z.sh
148 |
149 | CHROMEPROFILEPATH="$DOTFILES/osx/etc/GoogleChrome"; export CHROMEPROFILEPATH
150 |
151 | # PERL_MB_OPT="--install_base \"/Users/wolf/perl5\""; export PERL_MB_OPT;
152 | # PERL_MM_OPT="INSTALL_BASE=/Users/wolf/perl5"; export PERL_MM_OPT;
153 | # PERL5LIB="/Users/wolf/perl5/lib"; export PERL5LIB;
154 | # PATH="/Users/wolf/perl5/bin:$PATH"; export PATH
155 | #
156 | # source ~/perl5/perlbrew/etc/bashrc
157 |
158 | complete -C aws_completer aws
159 |
160 |
161 | export GOPATH=~/Documents/Projects/Go
162 |
--------------------------------------------------------------------------------
/windows/GetIP.cmd:
--------------------------------------------------------------------------------
1 | @echo off & setlocal ENABLEEXTENSIONS
2 | call :GetIP ip
3 | echo/IP Address is: %ip%
4 | PAUSE
5 | goto :EOF
6 | :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
7 | :GetIP ip
8 | ::
9 | :: By: Ritchie Lawrence, 2003-09-22. Version 1.0
10 | ::
11 | :: Func: Obtains the IP address of primary adapter. For NT4/2000/XP/2003.
12 | :: If functions fails, 0.0.0.0 is returned.
13 | ::
14 | :: Args: %1 var to receive IP address (by ref)
15 | :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
16 | setlocal ENABLEEXTENSIONS & set "i=0.0.0.0" & set "j="
17 | for /f "tokens=4" %%a in ('route print^|findstr 0.0.0.0.*0.0.0.0') do (
18 | if not defined j for %%b in (%%a) do set "i=%%b" & set "j=1")
19 | endlocal & set "%1=%i%" & goto :EOF
20 | :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
--------------------------------------------------------------------------------
/windows/Return Desktop Path/findDesktop.bat:
--------------------------------------------------------------------------------
1 | @ECHO OFF
2 | FOR /F "usebackq delims=" %%i in (`cscript findDesktop.vbs`) DO SET DESKTOPDIR=%%i
3 | ECHO %DESKTOPDIR%
4 | PAUSE
--------------------------------------------------------------------------------
/windows/Return Desktop Path/findDesktop.vbs:
--------------------------------------------------------------------------------
1 | set WshShell = WScript.CreateObject("WScript.Shell")
2 | strDesktop = WshShell.SpecialFolders("Desktop")
3 | wscript.echo(strDesktop)
--------------------------------------------------------------------------------
/windows/Set default keyboard layout to English at preload.cmd:
--------------------------------------------------------------------------------
1 | ::Set default keyboard layout to English at preload
2 | REG ADD "HKEY_USERS\.DEFAULT\Keyboard Layout\Preload" /v 1 /d 00000409 /f
3 | REG ADD "HKEY_USERS\.DEFAULT\Keyboard Layout\Preload" /v 2 /d 00000419 /f
--------------------------------------------------------------------------------
/windows/Set default keyboard layout to English.cmd:
--------------------------------------------------------------------------------
1 | @echo on
2 | ::Set default keyboard layout to English at preload
3 | REG ADD "HKEY_USERS\.DEFAULT\Keyboard Layout\Preload" /v 1 /d 00000409 /f
4 | REG ADD "HKEY_USERS\.DEFAULT\Keyboard Layout\Preload" /v 2 /d 00000419 /f
5 | ::Set default keyboard layout to English
6 | REG ADD "HKEY_CURRENT_USER\Keyboard Layout\Preload" /v 1 /d 00000409 /f
7 | REG ADD "HKEY_CURRENT_USER\Keyboard Layout\Preload" /v 2 /d 00000419 /f
8 | PAUSE
--------------------------------------------------------------------------------
/windows/autorun_disable.reg:
--------------------------------------------------------------------------------
1 | REGEDIT4
2 | [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\IniFileMapping\Autorun.inf]
3 | @="@SYS:DoesNotExist"
--------------------------------------------------------------------------------
/windows/bin/svn-history_of_file.cmd:
--------------------------------------------------------------------------------
1 | @echo off
2 |
3 | # http://stackoverflow.com/questions/5622367/generate-history-of-changes-on-a-file-in-svn/5721533#5721533
4 |
5 | set file=%1
6 |
7 | if [%file%] == [] (
8 | echo Usage: "%0 "
9 | exit /b
10 | )
11 |
12 | rem first revision as full text
13 | for /F "tokens=1 delims=-r " %%R in ('"svn log -q %file%"') do (
14 | svn log -r %%R %file%
15 | svn cat -r %%R %file%
16 | goto :diffs
17 | )
18 |
19 | :diffs
20 |
21 | rem remaining revisions as differences to previous revision
22 | for /F "skip=2 tokens=1 delims=-r " %%R in ('"svn log -q %file%"') do (
23 | echo.
24 | svn log -r %%R %file%
25 | svn diff -c %%R %file%
26 | )
--------------------------------------------------------------------------------