Skip to content

Commit 7ccc399

Browse files
author
joshs
committed
🚧 massive overhaul 🚧
1 parent a5ba80a commit 7ccc399

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+2510
-1286
lines changed

.gitignore

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
11
.DS_Store
2-
3-
atom.symlink/.apm
4-
atom.symlink/.node-gyp
5-
atom.symlink/.storage
6-
atom.symlink/blob-store
7-
atom.symlink/compile-cache
8-
atom.symlink/packages
9-
atom.symlink/storage
10-
atom.symlink/themes
11-
12-
git/gitconfig.symlink
13-
sublime2/User/Package Control.last-run
2+
private
3+
home/karabiner.d/log

.gitmodules

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
11
[submodule "powershell/posh-git"]
22
path = powershell/posh-git
33
url = https://github.com/dahlbyk/posh-git
4+
[submodule "home/fonts"]
5+
path = home/fonts
6+
url = git@github.com:joshua/fonts.git
7+
[submodule "zsh/oh-my-zsh"]
8+
path = zsh/oh-my-zsh
9+
url = https://github.com/robbyrussell/oh-my-zsh.git
10+
[submodule "zsh/custom/themes/powerlevel9k"]
11+
path = zsh/custom/themes/powerlevel9k
12+
url = https://github.com/bhilburn/powerlevel9k.git

appengine/path.zsh

Lines changed: 0 additions & 3 deletions
This file was deleted.

bin/aconx

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,32 +3,43 @@ set -uo pipefail
33

44
function joinStrings { local IFS="$1"; shift; echo "$*"; }
55
function printHR { printf "_%.0s" {1..90}; echo; }
6-
function conCount { echo "$1" | egrep "$2" | wc -l; }
6+
function conCount {
7+
local exclude=${3:-}
8+
test ${exclude} = "exclude" && {
9+
echo "$1" | egrep -v "$2" | wc -l
10+
return
11+
}
12+
echo "$1" | egrep "$2" | wc -l;
13+
}
714

815
INCLUDE="(LISTEN|ESTABLISHED)"
916
EXCLUDE_PATTERNS=(
17+
"->($(ipconfig getifaddr en0)|127.0.0.1)" # anything connecting to local
1018
'\[::1\]'
1119
# '127.0.0.1'
1220
'jabber-client' # Google Hangouts
1321
'identitys' # Apple Identity Service
1422
'Safari.SafeBrowsing'
15-
"2BUA8C4S2C" # 1Password
23+
'2BUA8C4S2C' # 1Password
24+
'com.apple.WebKit' # anything using WebKit. the parent process will still be listed
25+
'epmd' # erlang
26+
'mongod' # mongo db
27+
'Electron' # Google Inbox App, for now
28+
'nginx' # its always running, i know its running
1629
)
1730
EXCLUDE="($(joinStrings '|' ${EXCLUDE_PATTERNS[@]}))"
1831

1932
C=$(lsof -i -l -n +c0 | egrep ${INCLUDE} | egrep -v ${EXCLUDE})
2033

21-
echo Excluding: $EXCLUDE
34+
echo $EXCLUDE
2235
printHR
2336
echo "$C" | awk '{print $1, $2, $8, $9}' | sort -f | column -t | nl -n ln
2437
printHR
2538

2639
TOTALS=""
2740
read -r -d '' TOTALS <<- EOM
28-
Apple: $(conCount "$C" "(Apple|com.apple.*)")
29-
Google: $(conCount "$C" Google)
30-
Microsoft: $(conCount "$C" Microsoft)
31-
Local: $(conCount "$C" "(127\.0\.0\.1|\[::1\])")
32-
Total: $(echo "$C" | wc -l)
41+
Apple: $(conCount "$C" "(Apple|com.apple.*)") External: $(conCount "$C" "(127\.0\.0\.1|\[::1\])" exclude)
42+
Google: $(conCount "$C" Google) Loopback: $(conCount "$C" "(127\.0\.0\.1|\[::1\])")
43+
Microsoft: $(conCount "$C" Microsoft) Total: $(echo "$C" | wc -l)
3344
EOM
3445
echo "$TOTALS" | column -t

bin/dotdot

Lines changed: 0 additions & 15 deletions
This file was deleted.

bin/set-defaults

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/sh
22
#
3-
# Sets OS X defaults by running $DOTFILES/osx/set-defaults.sh.
3+
# Sets OS X defaults by running $DF/osx/set-defaults.sh.
44

5-
exec $DOTFILES/osx/set-defaults.sh
5+
exec $DF/osx/set-defaults.sh

git/aliases.zsh

Lines changed: 0 additions & 11 deletions
This file was deleted.

git/completion.zsh

Lines changed: 0 additions & 9 deletions
This file was deleted.

git/gitconfig.symlink.example

Lines changed: 0 additions & 111 deletions
This file was deleted.

git/gitignore.symlink

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)