-
Notifications
You must be signed in to change notification settings - Fork 0
/
bash_profile.local
215 lines (168 loc) · 6.96 KB
/
bash_profile.local
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
set -o vi
alias baseFilter='cd /Users/anthon.yzotti/Desktop/projects/SFE-Client-App/src/js/modules/common/baseFilter;ls'
#original: a4:5e:60:d0:90:81
alias getMac='ifconfig en0 |grep ether';
setNewMac() {
sudo /System/Library/PrivateFrameworks/Apple80211.framework/Resources/airport -z;
sudo ifconfig en0 ether $(openssl rand -hex 6 | sed 's/\(..\)/\1:/g; s/./0/2; s/.$//');
networksetup -detectnewhardware;
}
alias actualPackages='cd /Users/anthon.yzotti/Desktop/projects/SFE-Client-App/node_modules/@symphony';
export PHANTOMJS_BIN=/Users/anthon.yzotti/.nvm/versions/node/v5.8.0/lib/node_modules/phantomjs2/bin/phantomjs
alias phantomjs='/Users/anthon.yzotti/.nvm/versions/node/v5.8.0/lib/node_modules/phantomjs2/bin/phantomjs'
alias sendAjax='cd /Users/anthon.yzotti/Desktop/projects/SFE-Login/src/js/modules/authentication/mixins;vim sendAjax.js'
alias dev='git checkout dev'
alias reducers='cd /Users/anthon.yzotti/Desktop/projects/SFE-Client-App/src/migration/reducers;ls'
alias actions='cd /Users/anthon.yzotti/Desktop/projects/SFE-Client-App/src/migration/actions;ls'
alias clr='cd ~/Desktop/projects/SFE-Client-App;ls'
alias search='c /Users/anthon.yzotti/Desktop/projects/SFE-Client-App/src/js/modules/search'
alias goBlast='cd /Users/anthon.yzotti/Desktop/projects/SFE-Client-App/src/js/modules/common/goBlast;vim index.js'
alias killUglify='git cherry-pick 5b1bb9c'
alias relayManager='cd /Users/anthon.yzotti/Desktop/projects/SFE-Packages/packages/symphony-relay-manager-service/src/js;vim index.js'
alias crypto='cd /Users/anthon.yzotti/Desktop/projects/SFE-CryptoLib-JS/src;gs;ls'
alias cryptoSpec='cd /Users/anthon.yzotti/Desktop/projects/SFE-CryptoLib-JS/spec;gs;ls'
alias km='cd /Users/anthon.yzotti/Desktop/projects/SFE-Packages/packages/symphony-key-manager-service/src/js;vim index.js'
alias grhh='git reset --hard HEAD~1'
alias streams='cd /Users/anthon.yzotti/Desktop/projects/SFE-Client-App/src/migration/actions/streams;ls'
alias clm='cd /Users/anthon.yzotti/Desktop/projects/SFE-Client-App/src/migration'
alias imv='cd /Users/anthon.yzotti/Desktop/projects/SFE-Client-App/src/js/modules/chat;vim imView.js'
alias grh='git reset --hard'
alias lr='cd ~/Desktop/projects/SFE-Login'
alias runtest='PYTHONPATH=. ./env/bin/pybot --variable SELENIUM_HOST:52.0.214.191 --variable SELENIUM_PORT:4444 --variable TESTED_HOST:cip6.symphony.com --variable FILE_UPLOAD_LOCATION:C:\Users\Administrator\Desktop\test.jpg --variable ADMIN_PASSWORD:zl9baSbvVNPvqf20 --variable ADMIN_USERNAME:symphony-engservices+cip6-dev@symphony.com --variable BROWSER:googlechrome --exclude pending --exclude profile --include eula --include ftue --include following --include copying --exclude signals --exclude app_store --outputdir logs --loglevel TRACE --noncritical flaky --exitonfailure tests/ui/web_client'
alias rr='cd /Users/anthon.yzotti/Desktop/projects/SAT-Robot'
alias gpf='git push --force';
alias cl='cd ~/Desktop/projects/SFE-Client-App/src/js'
alias ti='cd ~/Desktop/projects/SFE-Client-App/src/js/modules/common/textInput'
alias cls='cd /Users/anthon.yzotti/Desktop/projects/SFE-Client-App/spec'
alias co='cd ~/Desktop/projects/SFE-Core/src/Symphony/extensions'
alias cor='cd ~/Desktop/projects/SFE-Core'
alias logger='vim ~/Desktop/projects/SFE-Core/src/symphony/extensions/logger.js'
alias bp='vim ~/.bash_profile'
alias packages='cd /Users/anthon.yzotti/Desktop/projects/SFE-Packages'
alias cml='cd /Users/anthon.yzotti/Desktop/projects/SFE-Packages/packages/chat-message-list'
alias ci='cd ~/Desktop/projects/SFE-Client-App/src/js/services;vim copyInterceptor.js'
alias se='cd ~/Desktop/projects/SFE-Client-App/src/js/services;ls'
alias mo='cd ~/Desktop/projects/SFE-Client-App/src/js/modules;ls'
alias chat='cd ~/Desktop/projects/SFE-Client-App/src/js/modules/chat;ls'
alias common='cd ~/Desktop/projects/SFE-Client-App/src/js/modules/common;ls'
alias logs='cd ~/logs'
alias mr='cd /Users/anthon.yzotti/Desktop/projects/SFE-Client-App/src/js/modules/messageRenderer'
alias gsp='git stash pop'
alias gst='git stash'
alias gsa='git stash apply'
gcb() {
git checkout -b "$1"
}
gp() {
git pull "$1" "$2"
}
gc() {
git checkout "$1"
}
gri() {
git rebase -i "$1"
}
gcan() {
git commit --amend --no-edit
}
gcp() {
git cherry-pick "$1"
}
v() {
vim "$1"
}
gpud() {
git pull upstream dev
}
compile() {
gcc "$1" -o main.out
}
alias ni='npm install'
alias gt='gulp test'
alias gall='git add --all'
alias gcma='git commit --amend --no-edit'
alias gs='git status'
alias gd='git diff'
alias grc='git rebase --continue'
alias gsh='git show'
gcof () {
git checkout "$1"
}
gcob() {
git checkout -b "$1"
}
gcp () {
git cherry-pick "$1"
}
gl () {
git log -"$1"
}
gcm () {
git commit -m "$1"
}
alias wtf='gulp browserify:src'
alias qa3='gulp watch --env qa3'
alias qa4='gulp watch --env qa4'
alias qa5='gulp watch --env qa5'
alias qa6='gulp watch --env qa6'
alias qa7='gulp watch --env qa7'
alias qa8='gulp watch --env qa8'
alias qa9='gulp watch --env qa9'
alias corporate='gulp watch --env corporate &'
alias killServer='kill %1'
devTools() {
gulp watch --env "$1" --devtoolEnabled true --addons "['./bundles/default.json']" --addons-enabled "['./bundles/default.json']"
}
lint () {
node ~/Desktop/projects/SFE-Client-App/node_modules/.bin/eslint "$1"
}
c () {
cd "$1";ls
}
l () {
ls
}
a () {
ack "$1"
}
unlinkAll() {
npm unlink symphony-core;
npm unlink @symphony/chat-message-list;
npm unlink @symphony/symphony-key-manager-service;
npm unlink @symphony/symphony-relay-manager-service;
npm unlink @symphony/message-body;
npm unlink symphony-cryptolib;
}
linkAll() {
npm link symphony-core;
npm link @symphony/chat-message-list;
npm link @symphony/symphony-key-manager-service;
npm link @symphony/symphony-relay-manager-service;
npm link @symphony/message-body;
npm link symphony-cryptolib;
}
nl() {
npm link;
}
alias layout="co;vi +/'Layout.prototype.show =' layout.js"
alias app='cl;v app.js'
alias e='exit'
alias mb='c /Users/anthon.yzotti/Desktop/projects/SFE-Packages/packages/message-body'
#compile message-body
alias cmb='mb;npm link;cml;npm link @symphony/message-body;npm link;clr;npm link @symphony/chat-message-list'
alias migration='c /Users/anthon.yzotti/Desktop/projects/SFE-Client-App/src/migration'
#echo kern.maxfiles=65536 | sudo tee -a /etc/sysctl.conf
#echo kern.maxfilesperproc=65536 | sudo tee -a /etc/sysctl.conf
#sudo sysctl -w kern.maxfiles=65536
#sudo sysctl -w kern.maxfilesperproc=65536
#ulimit -n 65536 65536
export NVM_DIR="/Users/anthon.yzotti/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
nvm use v5.8.0
export PHANTOMJS_BIN="/Users/anthon.yzotti/.nvm/versions/node/v5.8.0/lib/node_modules/phantomjs2/lib/phantom/bin/phantomjs"
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
alias clone='rm -rf SFE-Client-App/src;cp -r cloned SFE-Client-App/src'
rc () {
git checkout rc-current-s$1
}
alias hosts='sudo vim /etc/hosts'