-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnotes.txt
324 lines (305 loc) · 6.37 KB
/
notes.txt
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
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
ll
l
# REMOVE x Files
rm sorted_notes.txt
rm fish_notes.txt
rm fish_notes.backup
# Present Working Directory
pwd
cd ~/Projects/week01/notebook/
#
Manual for git
man git
# Change Directory
cd
# JS Exercises
javascripting
Version Control System(s) (VCS)
I. Revisions
a) Identified by a number or letter code
b) Synonyms = commit, revise, snapshot, version…
II. Importance
a) Protection from mistakes/bugs
b) Experiment with new methods
c) Enhances collusion viability with peers
III. Repository
a) Directory that has been initialized by Git VCS
b) 3 Steps: 1. unstaged > 2. staged > 3. committed (Git)
IV. Git(hub)
a) Repository that provides all the benefits of a VCS
b) Create a repository w/ git init
c) Untracked file = Git doesn’t know about file yet (no revisions available)
——
cd ~Projects/week01/notebook/
history > notes.txt
git.init
la (see hidden git files - backups & etc)
< new prompt >
git status (see status of staging area)
< .DS_Store used to track changes in Finder window >
rm .DS_Store
git add notes.txt (unstaged > staged)
git status
git commit -m 'Add notes.txt'
< green checkmark + revision # generated >
git status < nothing to commit >
git clone https://github.com/xchau/clmystery.git
rm clmystery/
cd ..
cat solution
cd ~/Projects/week01/clmystery/
open .
cd ~/Projects/week01/
echo "Jeremy Bowers" | md5 | grep -qif /dev/stdin encoded; and echo CORRECT\! GREAT WORK, GUMSHOE.; or echo SORRY, TRY AGAIN.
git remote -v
git remote
less people | grep 'Annabel'
less Buckingham_Place
cd streets
grep CLUE crimescene
less crimescene | grep CLUE
cd mystery/
cd javascripting/
cd ~
echo "Jeremy Bowers"
cat solution
less solution
cat encoded
cat cheatsheet.pdf
cat cheatsheet.md
echo "Jeremy Bowers"
less Delta_SkyMiles Museum_of_Bash_History | grep 'Jeremy'
cat crimescene | grep 'CLUE'
cat instructions
less AAA Terminal_City_Library | grep 'Jeremy'
cd memberships/
cat hint8
cat hint7
cat hint6
cat hint5
cd ../..
cat interview-904020
cat Andover_Road | grep 'INTERVIEW'
cat interview-9620713
cat Dunstable_Road | grep 'INTERVIEW'
cat people | grep 'Jeremy'
cat people | grep 'Jacqui'
cat vehicles | grep 'L337' -A 10
cat interview-699607
cat Buckingham_Place | grep 'INTERVIEW'
cat people | grep 'Annabel'
cat interview-871877
cd interviews/
cat Haley_Street
less vehicles | grep 'Annabel' -A 8
cat Terminal_City_Library | grep "Annabel"
cat AAA | grep 'Annabel'
cat Museum_of_Bash_History | grep "Annabel"
cat Museum_of_Bash_History
cat AAA
less vehicles | grep 'Annabel' -A 5
less vehicles | grep 'Annabel' -A
less vehicles
less vehicles | grep 'Annabel'
less people | grep 'Ana'
.
cat Terminal_City_Library | grep Ana
cat Terminal_City_Library | grep Kal
cat Terminal_City_Library
ls
cat vehicles
cat vehicles | grep 'Kal'
cat people | grep 'Anabel'
cat Museum_of_Bash_History | grep 'Anabel'
cat AAA | grep 'Anabel'
cat vehicles
cat people
cat vehicles | grep CLUE
cat people | grep 'CLUE'
cat interviews | grep 'CLUE'
cat crimescene
cat README.md
less README.md
cd clmystery/
cp fish_notes.txt fish_notes.backup
mv notes.txt fish_notes.txt
cat notes.txt | sort > sorted_notes.txt
history
cat notes.txt | sort | grep 'brew'
cat notes.txt | sort
history >> notes.txt
less notes.txt
man tree
la
history > notes.txt
tree .. > notes.txt
cat notes.txt
history > notes.txt
history
cat notes.txt
rm notes.txt
ls notes.txt
touch notes.txt
ls -la
cd notebook/
cd note
mkdir notebook
clear
ll /sbin
cd /usr/bin
cd /bin
cd ./Homebrew/
cd /usr/local
tree ..
tree .
tree
ls -S
cd ./Documents/Brackets/gschool\ profile/
cd ../Xiu/
./Users/Xiu
cd /
cd Users/Xiu/
cd ~/Downloads/
cd ~/
cd .
whoami
tree -L 2 ~
tree -L 1 ~
tree ~
brew install tree
echo ~
cd Desktop/
echo ..
echo 'hello world'
ls -R
ls -dslr
ls -halS
ls -hS
ls -Sh
cd ~/Documents/Brackets/jQuery\ \&\ Javascript/
ls -t
ls -T
ls -s
ls -a
cd ./Wallpaper/
cd ~/Pictures/
ls -p
ls -O
cd ~/Documents/Brackets/
ls -n
ls -F ~/Documents/Brackets/
ls -F /Documents/Brackets
ls -F
ls -c
ls -C
ls -B
ls -A
la -@
ls -@
man ls
man
ls -hal
ls -hl ~/Documents/Brackets/
ls -l ~/Documents/Brackets/
ls ~/Documents/Brackets/
ls ~/Documents/
ls -l
groups
which fish
which fish config
surge
git commit -m 'Add a CNAME'
git add CNAME
touch CNAME
git commit -m 'Add a tiny web page'
git add index.html
open index.html
atom .
touch index.html
git init
cd xchau.surge.sh/
mkdir xchau.surge.sh
cd ~/Projects/week01
mkdir -p ~/Projects/week01
surge -V
npm install -g surge
rm ~/Desktop/test.js
node ~/Desktop/test.js
atom ~/Desktop/test.js
node
node -v
brew install node
cat ~/.gitconfig
curl -fsSL https://git.io/vXOvh | sh
curl -fsSL https://git.io/vXOeC | sh
git config --global user.email '[email protected]'
git config --global user.name 'Minh Chau'
brew doctor
git --version
brew install git
which echo
echo fish
echo $PATH
sudo atom /etc/paths
echo $EDITOR
atom ~/.config/fish/config.fish
atom ~/Downloads/
brew info
brew info
brew info fish
brew in
fish_update_completions
curl -fsSL https://git.io/vXOeC | ruby
curl -fsSL https://git.io/vX0eC | ruby
javascripting verify number-to-string.js
touch number-to-string.js
javascripting verify rounding-numbers.js
console.log(rounded);
rounding-numbers.js
touch rounding-numbers.js
javascripting verify numbers.js
touch numbers.js
javascripting verify revising-strings.js
touch revising-strings.js
revising-strings.js
chsh -s /usr/local/bin/fish
echo '/usr/local/bin/fish' | sudo tee -a /etc/shells
brew install fish
javascripting verify string-length.js
touch string-length.js
javascripting verify strings.js
touch strings.js
javascripting verify variables.js
touch variables.js
javascripting verify introduction.js
touch introduction.js
cd javascripting
mkdir javascripting
npm install --global javascripting
brew upgrade
brew update
brew postinstall node
brew link --overwrite node
sudo chown -R Xiu:admin node_modules
sudo chown -R Xiu:admin dtrace/
cd /usr/local/lib/
sudo chown -R Xiu:admin systemtap/
cd /usr/local/share/
sudo chown -R Xiu:admin node/
cd doc/
sudo rm -rf node/
cd include/
cd /usr/local/
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
ls -G
q
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
apm install atom-runner
apm install autocomplete-plus
apm instlall autocomplete-plus
ping
killall Finder
defaults write com.apple.finder AppleShowAllFiles FALSE
defaults write com.apple.finder AppleShowAllFiles TRUE
apm install caprice-dark-syntax
cd Documents/