h 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671
  1. 1 ls
  2. 2 sudo su -
  3. 3 ls
  4. 4 sudo su -
  5. 5 curl https://s3.amazonaws.com/finalsclub/start.sh | sh
  6. 6 ls
  7. 7 cd fc
  8. 8 ls
  9. 9 cd bruml/
  10. 10 ls
  11. 11 forever server.js
  12. 12 npm install socket.io
  13. 13 vim ../util/start.sh
  14. 14 git branch
  15. 15 grl
  16. 16 git reflog
  17. 17 ls
  18. 18 vim ../util/start.sh
  19. 19 git commit -m "remove cruft from start.sh" -a
  20. 20 git config --global user.name "fcdev EC2"
  21. 21 git config --global user.name "fcdev@sleepless.com"
  22. 22 git commit -m "remove cruft from start.sh" -a
  23. 23 git status
  24. 24 cd ..
  25. 25 git status
  26. 26 git pull
  27. 27 vim util/start.sh
  28. 28 git status
  29. 29 git commit -m "." -a
  30. 30 git push origin dev
  31. 31 ls
  32. 32 cd bruml/
  33. 33 ls
  34. 34 forever server.js
  35. 35 forever server.js &> ~/b.log &
  36. 36 cd ../etherpad-lite/
  37. 37 ls
  38. 38 cd node
  39. 39 ls
  40. 40 forever server.js
  41. 41 forever server.js &> ~/e.log &
  42. 42 ls
  43. 43 tail -f *log
  44. 44 tail -f e.log
  45. 45 pwd
  46. 46 cd fc
  47. 47 ls
  48. 48 ps waux
  49. 49 kill 23712
  50. 50 ls
  51. 51 ps waux | grep forever
  52. 52 kill 23697
  53. 53 kill 23708
  54. 54 ls
  55. 55 ps waux | grep forever
  56. 56 kill 23709
  57. 57 ls
  58. 58 cd etherpad-lite/
  59. 59 ls
  60. 60 cd node
  61. 61 ls
  62. 62 node server.js
  63. 63 bg
  64. 64 ls
  65. 65 cd ..
  66. 66 ls
  67. 67 cd ..
  68. 68 cd brml
  69. 69 cd bruml/
  70. 70 ls
  71. 71 node server.js
  72. 72 bg
  73. 73 fg
  74. 74 ls
  75. 75 forever server.js &> ~/b.log
  76. 76 bg
  77. 77 fg
  78. 78 forever server.js &> ~/b.log &
  79. 79 cd ../etherpad-lite/node
  80. 80 forever server.js &> ~/e.log &
  81. 81 fg
  82. 82 la
  83. 83 chmod 775 boot.sh
  84. 84 sudo su
  85. 85 sudo ./boot.sh
  86. 86 ./boot.sh
  87. 87 sudo ./boot.sh
  88. 88 whoami
  89. 89 curl https://s3.amazonaws.com/finalsclub.org/start.sh
  90. 90 curl https://s3.amazonaws.com/finalsclub.org/start.sh | sudo -u ec2-user sh
  91. 91 sudo curl https://s3.amazonaws.com/finalsclub.org/start.sh | sudo -u ec2-user sh
  92. 92 la
  93. 93 whoami
  94. 94 sudo su
  95. 95 cd fc
  96. 96 ./restart
  97. 97 cd
  98. 98 cd bak/
  99. 99 la
  100. 100 tar xzvf fc_db_bak_9-9-2011.tgz
  101. 101 cd fc_db_bak_9-9-2011
  102. 102 la
  103. 103 mongorestore
  104. 104 ps aux | grep mongo
  105. 105 mongo
  106. 106 sudo kill -9 1089
  107. 107 sudo /usr/local/bin/mongod -v --rest --replSet finalsclubset &> /var/log/mongod.log &
  108. 108 ps aux | grep mongo
  109. 109 sudo su
  110. 110 mongo
  111. 111 pwd
  112. 112 la
  113. 113 mongorestore
  114. 114 cd
  115. 115 cd fc
  116. 116 git pull
  117. 117 git st
  118. 118 git status
  119. 119 ./restart
  120. 120 ls
  121. 121 cd fc
  122. 122 ls
  123. 123 top
  124. 124 ls
  125. 125 git pull
  126. 126 mongo
  127. 127 exit
  128. 128 ls
  129. 129 exit
  130. 130 ls
  131. 131 mongorestore -d fc -c archivedcourses archivedcourses.bson
  132. 132 mongorestore -d fc -c archivedcourses archivedsubjects.bson
  133. 133 mongorestore -d fc -c archivedcourses archivednotess.bson
  134. 134 mongorestore -d fc -c archivedcourses archivednotes.bson
  135. 135 mongorestore -d fc -c archivedcourses archivedcourses.bson
  136. 136 exit
  137. 137 ls
  138. 138 mongorestore -d fc -c archivednotes archivednotes.bson
  139. 139 mongorestore -d fc -c archivedsubjects archivedsubjects.bson
  140. 140 mongorestore -d fc -c archivedcourses archivedcourses.bson
  141. 141 exit
  142. 142 ls
  143. 143 mongorestore -d fc -c archivedcourses archivedcourses.bson
  144. 144 mongo
  145. 145 ls
  146. 146 cd fc
  147. 147 ls
  148. 148 vim app.js
  149. 149 ./restart
  150. 150 ls
  151. 151 vim app.js
  152. 152 ./restart
  153. 153 vim app.js
  154. 154 ./restart
  155. 155 vim app.js
  156. 156 ./restart
  157. 157 vim app.js
  158. 158 ./restart
  159. 159 vim app.js
  160. 160 ./restart
  161. 161 vim mailer.js
  162. 162 ./restart
  163. 163 vim app.js
  164. 164 ./restart
  165. 165 sudo su
  166. 166 whoami
  167. 167 cd
  168. 168 cd .ssh/
  169. 169 la
  170. 170 vi authorized_keys
  171. 171 less .ssh/authorized_keys
  172. 172 ls
  173. 173 cd fc
  174. 174 ls
  175. 175 git status
  176. 176 exit
  177. 177 df -h
  178. 178 cd fc
  179. 179 la
  180. 180 cd ../
  181. 181 la
  182. 182 sudo su
  183. 183 la
  184. 184 whoami
  185. 185 sudo su
  186. 186 la
  187. 187 cd fc
  188. 188 git st
  189. 189 git status
  190. 190 cd ../
  191. 191 df -h
  192. 192 cp -rf fc/ jsnow_fc
  193. 193 cd jsnow_fc/
  194. 194 git pull
  195. 195 git status
  196. 196 la
  197. 197 rm log.txt
  198. 198 git status
  199. 199 git checkout master
  200. 200 git diff app.js
  201. 201 git checkout app.js
  202. 202 cd jsnow_fc/
  203. 203 git branch
  204. 204 git pull
  205. 205 cd
  206. 206 la
  207. 207 cd
  208. 208 la
  209. 209 whoami
  210. 210 la
  211. 211 mkdir util
  212. 212 cd util/
  213. 213 la
  214. 214 java -version
  215. 215 export
  216. 216 export | grep java
  217. 217 export | grep JAVA
  218. 218 la
  219. 219 unzip CloudWatch-2010-08-01.zip
  220. 220 la
  221. 221 cd CloudWatch-
  222. 222 cd CloudWatch-1.0.12.1/
  223. 223 la
  224. 224 cd ./
  225. 225 cd ../
  226. 226 la
  227. 227 cd CloudWatch-1.0.12.1/
  228. 228 la
  229. 229 cd bin
  230. 230 la
  231. 231 cd
  232. 232 cd .ssh/
  233. 233 vi id_rsa
  234. 234 env
  235. 235 env | grep SECRET
  236. 236 cd util/
  237. 237 la
  238. 238 cd CloudWatch-
  239. 239 la
  240. 240 mkdir dl
  241. 241 mv CloudWatch-2010-08-01.zip dl/.
  242. 242 la
  243. 243 cd CLo
  244. 244 cd CloudWatch-1.0.12.1/
  245. 245 la
  246. 246 cd bin
  247. 247 cd ..
  248. 248 vi credential-file-path.template
  249. 249 cd bin
  250. 250 la
  251. 251 mon-cmd
  252. 252 mon-get-stats
  253. 253 mon-list-metrics
  254. 254 la
  255. 255 pwd
  256. 256 cd ../../
  257. 257 la
  258. 258 which java
  259. 259 la
  260. 260 chmod 775 mon-disk-space.sh
  261. 261 la
  262. 262 ./mon-disk-space.sh
  263. 263 vi mon-disk-space.sh
  264. 264 ./mon-disk-space.sh
  265. 265 la
  266. 266 ./mon-disk-space.sh
  267. 267 vi mon-disk-space.sh
  268. 268 which bash
  269. 269 /usr/bin/env bash
  270. 270 ./mon-disk-space.sh
  271. 271 cd
  272. 272 cd util/
  273. 273 la
  274. 274 cat mon-disk-space.sh
  275. 275 ./mon-disk-space.sh
  276. 276 vi mon-disk-space.sh
  277. 277 la
  278. 278 chmod 775 mon-disk-space.sh
  279. 279 la
  280. 280 ./mon-disk-space.sh
  281. 281 vi mon-disk-space.sh
  282. 282 ./mon-disk-space.sh
  283. 283 df --local --block-size=1M $path | grep $path | tr -s ' ' | cut -d ' ' -f 4
  284. 284 df --local --block-size=1M
  285. 285 ./mon-disk-space.sh
  286. 286 /home/ec2-user/util/CloudWatch-1.0.12.1/bin/mon-get-stats
  287. 287 ./mon-disk-space.sh
  288. 288 cd /home/ec2-user/util/CloudWatch-1.0.12.1/cd
  289. 289 cd CloudWatch-1.0.12.1/
  290. 290 pwd
  291. 291 la
  292. 292 cd ../
  293. 293 ./mon-disk-space.sh
  294. 294 cd /home/ec2-user/util/CloudWatch-1.0.12.1
  295. 295 cd ../
  296. 296 la
  297. 297 ./mon-disk-space.sh
  298. 298 cd /home/ec2-user/util/CloudWatch-1.0.12.1/bin/
  299. 299 cd ../../
  300. 300 ./mon-disk-space.sh
  301. 301 pwd
  302. 302 ./mon-disk-space.sh
  303. 303 vi mon-disk-space.sh
  304. 304 ./mon-disk-space.sh
  305. 305 vi mon-disk-space.sh
  306. 306 ./mon-disk-space.sh
  307. 307 vi mon-disk-space.sh
  308. 308 ./mon-disk-space.sh
  309. 309 df -h
  310. 310 la CloudWatch-1.0.12.1/bin/
  311. 311 ./mon-disk-space.sh
  312. 312 la
  313. 313 mv CloudWatch-1.0.12.1/ ../fc/util/.
  314. 314 la
  315. 315 cd
  316. 316 cd fc
  317. 317 cd util/CloudWatch-1.0.12.1/li
  318. 318 cd util/CloudWatch-1.0.12.1/
  319. 319 la
  320. 320 cd lib
  321. 321 la
  322. 322 rm wsdl4j-1.6.1.jar
  323. 323 la
  324. 324 cd ../bin
  325. 325 mon-list-metrics
  326. 326 mon-cmd
  327. 327 cd
  328. 328 cd util/
  329. 329 la
  330. 330 mv mon-disk-space.sh ~/fc/util/.
  331. 331 cd
  332. 332 cd fc/util/
  333. 333 la
  334. 334 ./mon-disk-space.sh
  335. 335 env
  336. 336 env | grep SECRET
  337. 337 ./mon-disk-space.sh
  338. 338 cd
  339. 339 cd fc/fcbackups/
  340. 340 la
  341. 341 rm .fcbackup.env
  342. 342 cd
  343. 343 crontab -e
  344. 344 sudo su
  345. 345 whoami
  346. 346 crontab -l
  347. 347 crontab -e
  348. 348 date
  349. 349 crontab -e
  350. 350 la
  351. 351 date
  352. 352 crontab -e
  353. 353 date
  354. 354 cd fc
  355. 355 la
  356. 356 cd util/
  357. 357 la
  358. 358 cat mon-disk-space.
  359. 359 cat mon-disk-space.log.txt
  360. 360 rm mon-disk-space.log.txt
  361. 361 la
  362. 362 date
  363. 363 rm mon-disk-space.log.txt
  364. 364 la
  365. 365 date
  366. 366 crontab -e
  367. 367 cd CloudWatch-1.0.12.1/bin/
  368. 368 mon-cmd
  369. 369 mon-cmd help
  370. 370 mon-put-data
  371. 371 la
  372. 372 mon-put-data
  373. 373 sudo su
  374. 374 env | grep REGION
  375. 375 cd fc/util/
  376. 376 la
  377. 377 ./mon-disk-space.sh
  378. 378 env | grep REGION
  379. 379 date
  380. 380 env | grep REGION
  381. 381 cd fc/util/
  382. 382 la
  383. 383 ./mon-disk-space.sh
  384. 384 crontab -e
  385. 385 env | grep REGION
  386. 386 crontab -e
  387. 387 date
  388. 388 crontab -e
  389. 389 date
  390. 390 env | grep REGION
  391. 391 /usr/bin/env bash
  392. 392 date
  393. 393 crontab -e
  394. 394 date
  395. 395 cd
  396. 396 cd fc
  397. 397 cd ../jsnow_fc/
  398. 398 git branch
  399. 399 git pull
  400. 400 git checkout master
  401. 401 rm mailer.js
  402. 402 git stash
  403. 403 git pull
  404. 404 git checkout master
  405. 405 git pull
  406. 406 git checkout dev
  407. 407 git branch
  408. 408 history | grep git
  409. 409 git branch
  410. 410 git pull
  411. 411 git st
  412. 412 git status
  413. 413 git checkout master
  414. 414 git pull
  415. 415 git st
  416. 416 git pull
  417. 417 cd ../fc
  418. 418 git branch
  419. 419 git pull
  420. 420 df -h
  421. 421 cd util/
  422. 422 la
  423. 423 rm -rf CloudWatch-1.0.12.1aaa/
  424. 424 la
  425. 425 git pull
  426. 426 crontab -e
  427. 427 cd
  428. 428 cd jsnow_fc/
  429. 429 la
  430. 430 cd ../
  431. 431 mf jsnow_fc/ jsnow_fc-2
  432. 432 mv jsnow_fc/ jsnow_fc-2
  433. 433 mkdir jsnow_fc
  434. 434 cd jsnow_fc
  435. 435 cd ../
  436. 436 rmdir jsnow_fc
  437. 437 mv jsnow_fc-2/ jsnow_fc
  438. 438 cd jsnow_fc/
  439. 439 git pull
  440. 440 git branch
  441. 441 git checkout dev
  442. 442 git st
  443. 443 git status
  444. 444 git st
  445. 445 cd util/
  446. 446 la
  447. 447 cd CloudWatch-1.0.12.1/
  448. 448 la
  449. 449 cd bin/
  450. 450 la
  451. 451 cd ut
  452. 452 cd
  453. 453 la
  454. 454 cd util/
  455. 455 la
  456. 456 cd
  457. 457 cd jsnow_fc/
  458. 458 cd util/
  459. 459 la
  460. 460 cd CloudWatch-1.0.12.1/
  461. 461 la
  462. 462 cd li
  463. 463 la
  464. 464 cd lib
  465. 465 la
  466. 466 cd ../bin
  467. 467 la
  468. 468 mon-list-metrics
  469. 469 cd ../../
  470. 470 la
  471. 471 git status
  472. 472 git config --global -l
  473. 473 git config --global user.name "Joseph Snow"
  474. 474 git config --global user.name ""
  475. 475 git config --global
  476. 476 git config --global -l
  477. 477 git config --global user.name fcdev@sleepless.com
  478. 478 git config -l
  479. 479 git config user.name "snow@sleepless.com"
  480. 480 git config user.email "snow@sleepless.com"
  481. 481 git config user.name "Joseph Snow"
  482. 482 pwd
  483. 483 git config -l
  484. 484 git status
  485. 485 git config --global -l
  486. 486 git config ui.color auto
  487. 487 git status
  488. 488 git config --global color.ui auto
  489. 489 git status
  490. 490 git config --global alias.st status
  491. 491 git st
  492. 492 git config --global-l
  493. 493 git config --global -l
  494. 494 git config -l
  495. 495 git pull
  496. 496 git st
  497. 497 pwd
  498. 498 cd
  499. 499 cd util/
  500. 500 la
  501. 501 cd dl/
  502. 502 la
  503. 503 unzip CloudWatch-2010-08-01.zip
  504. 504 cd CloudWatch-
  505. 505 cd CloudWatch-1.0.12.1/
  506. 506 la
  507. 507 cd bin/
  508. 508 la
  509. 509 cd
  510. 510 cd jsnow_fc/util/
  511. 511 mv CloudWatch-1.0.12.1/ CloudWatch-1.0.12.1-old
  512. 512 mv ~/util/dl/CloudWatch-1.0.12.1/ .
  513. 513 svn st
  514. 514 git st
  515. 515 git add CloudWatch-1.0.12.1/*
  516. 516 git st
  517. 517 la
  518. 518 chmod 775 mon-disk-space.sh
  519. 519 chmod 775 fc_monitor_epl_cron.sh
  520. 520 la
  521. 521 git st
  522. 522 git add fc_monitor_epl_cron.sh
  523. 523 git add mon-disk-space.sh
  524. 524 git st
  525. 525 git commit
  526. 526 git push
  527. 527 git branch
  528. 528 git checkout master
  529. 529 git pull
  530. 530 git checkout dev util
  531. 531 cd ../
  532. 532 git checkout dev util
  533. 533 git st
  534. 534 git commit
  535. 535 git pull
  536. 536 git push
  537. 537 cd ../fc
  538. 538 git pull
  539. 539 la
  540. 540 ls
  541. 541 crontab -e
  542. 542 pwd
  543. 543 ls
  544. 544 cd fc
  545. 545 git status
  546. 546 exit
  547. 547 la
  548. 548 cd fc
  549. 549 git st
  550. 550 git config --global -l
  551. 551 date
  552. 552 la
  553. 553 cd
  554. 554 la
  555. 555 mf jsnow_fc/ jsnow_fc-old
  556. 556 mv jsnow_fc/ jsnow_fc-old
  557. 557 mkdir jsnow_fc
  558. 558 cd jsnow_fc
  559. 559 git clone git@github.com:finalsclubdev/FinalsClub.git .
  560. 560 git st
  561. 561 git config -l
  562. 562 git config user.name "Joseph Snow"
  563. 563 git config user.email "snow@sleepless.com"
  564. 564 git config -l
  565. 565 git config --global -l
  566. 566 ls
  567. 567 cd fc
  568. 568 ls -l
  569. 569 ls -la
  570. 570 git show origin
  571. 571 git show
  572. 572 git remote
  573. 573 git origin
  574. 574 git set
  575. 575 git help
  576. 576 git show -?
  577. 577 git show --help
  578. 578 git status
  579. 579 git help
  580. 580 git status --help
  581. 581 git show --help
  582. 582 git remote -v show
  583. 583 cd ..
  584. 584 ls
  585. 585 git clone git@github.com:/finalsclubdev/FinalsClub fc-new
  586. 586 ps waux | grep node
  587. 587 cd fc
  588. 588 ls
  589. 589 ./stop
  590. 590 ps waux | grep node
  591. 591 cd ../fc-new
  592. 592 ls
  593. 593 git branch 1page
  594. 594 git pull
  595. 595 ls
  596. 596 git submodule init
  597. 597 git submodule update
  598. 598 ls
  599. 599 ./start
  600. 600 ls
  601. 601 ps waux | grep node
  602. 602 pwd
  603. 603 ./stop
  604. 604 cat start
  605. 605 cat stop
  606. 606 ls -ltr
  607. 607 less log.
  608. 608 less log.txt
  609. 609 npm install express
  610. 610 tail -f log.txt &
  611. 611 ./stop
  612. 612 ./start
  613. 613 nnpm install connect-mongo
  614. 614 fg
  615. 615 nnpm install connect-mongo
  616. 616 npm install connect-mongo
  617. 617 tail -f log.txt &
  618. 618 fg
  619. 619 npm install async
  620. 620 tail -f log.txt
  621. 621 npm install mongodb
  622. 622 tail -f log.txt
  623. 623 npm install mongoose
  624. 624 tail -f log.txt
  625. 625 npm install aws-lib
  626. 626 tail -f log.txt
  627. 627 npm install ejs
  628. 628 tail -f log.txt
  629. 629 npm install hat
  630. 630 tail -f log.txt
  631. 631 npm install connect
  632. 632 tail -f log.txt
  633. 633 npm install bc
  634. 634 git clone git@github.com:finalsclubdev/bc
  635. 635 tail -f log.txt
  636. 636 mv bc ..
  637. 637 tail -f log.txt
  638. 638 npm install socket.io
  639. 639 tail -f log.txt
  640. 640 npm install socket.io
  641. 641 tail -f log.txt
  642. 642 pushd ../bc
  643. 643 npm install socket.io
  644. 644 popd
  645. 645 tail -f log.txt
  646. 646 npm install express-messages
  647. 647 tail -f log.txt
  648. 648 npm install jade
  649. 649 tail -f log.txt
  650. 650 git branch
  651. 651 git checkout 1page
  652. 652 git pull
  653. 653 git pull remote 1page
  654. 654 git branch
  655. 655 git update
  656. 656 git status
  657. 657 git submodule update
  658. 658 git submodule init
  659. 659 git submodule update
  660. 660 ./restart
  661. 661 ls
  662. 662 vim app.js
  663. 663 git reflog
  664. 664 git pull
  665. 665 git pull origin 1page
  666. 666 ./restart
  667. 667 ls
  668. 668 exit
  669. 669 cd fc-new
  670. 670 ls
  671. 671 history > h