Skip to content

Instantly share code, notes, and snippets.

@tomatohammado
Created June 26, 2019 13:11
Show Gist options
  • Save tomatohammado/20e8cc043c112a946e8219dfa003ba30 to your computer and use it in GitHub Desktop.
Save tomatohammado/20e8cc043c112a946e8219dfa003ba30 to your computer and use it in GitHub Desktop.
that time I somehow got a repo to express-jwt-study/Users/hammad/SEI/sei_30/sandbox/express-jwt-study
Last login: Sun Jun 23 10:22:14 on console
Starting ssh-agent...
Identity added: /Users/hammad/.ssh/id_rsa ([email protected])
~
➜ cd SEI/sei_30/lessons
SEI/sei_30/lessons
➜ gcl [email protected]:dc-wdi-react-redux/Project.git 0901-project-three
Cloning into '0901-project-three'...
remote: Enumerating objects: 825, done.
remote: Total 825 (delta 0), reused 0 (delta 0), pack-reused 825
Receiving objects: 100% (825/825), 146.70 KiB | 4.07 MiB/s, done.
Resolving deltas: 100% (451/451), done.
SEI/sei_30/lessons
➜ ls
0000_SEI-Course-Materials 0203_javascript-oop 0505_express-apis-json
0101_cli-intro 0203_js-oop-practice 0601_heroku-atlas-deployment
0101_fundamentals-overview 0204_js-dom 0603_project-two
0101_intro-to-sei 0204_js-dom-practice 0701_react-intro
0102_git-intro 0302_intro-to-bundlers-parcel 0704_react-component-lifecycle
0102_html-and-css 0402_project-01 0705_react-router
0103_css-layout 0502_Intro-to-Unit-Two 0805_git-workflows
0104_responsive-web-design 0502_node-npm-intro 0901-project-three
0105_js-functions-and-scope 0503_intro-express-routes-controllers
SEI/sei_30/lessons
➜ code 0603_project-two
SEI/sei_30/lessons
➜ code 0901-project-three
SEI/sei_30/lessons
➜ mv 0805_git-workflows 0805-git-workflows
SEI/sei_30/lessons
➜ code 0805-git-workflows
SEI/sei_30/lessons
➜ mv 0805-git-workflows 0805--git-workflows
SEI/sei_30/lessons
➜ code 0805-git-workflows
SEI/sei_30/lessons
➜ code 0805--git-workflows
SEI/sei_30/lessons
➜ gcl [email protected]:dc-wdi-react-redux/git-flow-mini-lesson.git 0805--mini-lesson-git-workflows
Cloning into '0805--mini-lesson-git-workflows'...
remote: Enumerating objects: 15, done.
remote: Total 15 (delta 0), reused 0 (delta 0), pack-reused 15
Receiving objects: 100% (15/15), 27.38 KiB | 1.01 MiB/s, done.
SEI/sei_30/lessons
➜ code 0805--mini-lesson-git-workflows
SEI/sei_30/lessons
➜ ls
0000_SEI-Course-Materials 0402_project-01
0101_cli-intro 0502_Intro-to-Unit-Two
0101_fundamentals-overview 0502_node-npm-intro
0101_intro-to-sei 0503_intro-express-routes-controllers
0102_git-intro 0505_express-apis-json
0102_html-and-css 0601_heroku-atlas-deployment
0103_css-layout 0603_project-two
0104_responsive-web-design 0701_react-intro
0105_js-functions-and-scope 0704_react-component-lifecycle
0203_javascript-oop 0705_react-router
0203_js-oop-practice 0805--git-workflows
0204_js-dom 0805--mini-lesson-git-workflows
0204_js-dom-practice 0901-project-three
0302_intro-to-bundlers-parcel
SEI/sei_30/lessons
➜ code 0000_SEI-Course-Materials
SEI/sei_30/lessons
➜ code 0000_SEI-Course-Materials
SEI/sei_30/lessons
➜ ../grading/mern && code .
sei_30/grading/mern
➜ ../cs
sei_30/grading/cs
➜ code .
sei_30/grading/cs
➜ ..
SEI/sei_30/grading
➜ ls
audubon cs mern react-router-stocks yum
bachelor-nation dr_who password-validator-react static-dashboard
cookbook-api korilla-react project-two stopwatch-react
SEI/sei_30/grading
➜ take pokedex
sei_30/grading/pokedex
➜ gcl [email protected]:mrasti/pokedex-lab.git melika
Cloning into 'melika'...
remote: Enumerating objects: 77, done.
remote: Total 77 (delta 0), reused 0 (delta 0), pack-reused 77
Receiving objects: 100% (77/77), 603.94 KiB | 13.13 MiB/s, done.
Resolving deltas: 100% (25/25), done.
sei_30/grading/pokedex
➜ code melika
sei_30/grading/pokedex
➜ ..
SEI/sei_30/grading
➜ code yum
SEI/sei_30/grading
➜ ls
audubon cs mern project-two stopwatch-react
bachelor-nation dr_who password-validator-react react-router-stocks yum
cookbook-api korilla-react pokedex static-dashboard
SEI/sei_30/grading
➜ take calculator
sei_30/grading/calculator
➜ git config list -g
Found existing alias for "git". You should use: "g"
fatal: not in a git directory
sei_30/grading/calculator
➜ git config --list -g
Found existing alias for "git config --list". You should use: "gcf"
error: unknown switch `g'
usage: git config [<options>]
Config file location
--global use global config file
--system use system config file
--local use repository config file
--worktree use per-worktree config file
-f, --file <file> use given config file
--blob <blob-id> read config from given blob object
push.default=simple
color.ui=always
color.branch.current=green reverse
color.branch.local=green
color.branch.remote=yellow
color.status.added=green
color.status.changed=yellow
color.status.untracked=red
core.editor=nano
core.excludesfile=/Users/hammad/.gitignore-global
user.name=Hammad Malik
[email protected]
...skipping...
Action
--get get value: name [value-regex]
--get-all get all values: key [value-regex]
--get-regexp get values for regexp: name-regex [value-regex]
--get-urlmatch get value specific for the URL: section[.var] URL
--replace-all replace all matching variables: name value [value_regex]
--add add a new variable: name value
--unset remove a variable: name [value-regex]
--unset-all remove all matches: name [value-regex]
--rename-section rename section: old-name new-name
--remove-section remove a section: name
-l, --list list all
-e, --edit open an editor
--get-color find the color configured: slot [default]
--get-colorbool find the color setting: slot [stdout-is-tty]
Type
-t, --type <> value is given this type
--bool value is "true" or "false"
--int value is decimal number
--bool-or-int value is --bool or --int
--path value is a path (file or directory name)
--expiry-date value is an expiry date
Other
-z, --null terminate values with NUL byte
--name-only show variable names only
--includes respect include directives on lookup
--show-origin show origin of config (file, standard input, blob, command line)
--default <value> with --get, use default value when missing entry
sei_30/grading/calculator
➜ git config --list --global
Found existing alias for "git config --list". You should use: "gcf"
sei_30/grading/calculator took 5s
➜ git config --list --global
Found existing alias for "git config --list". You should use: "gcf"
sei_30/grading/calculator took 2s
➜ git config --list --global
Found existing alias for "git config --list". You should use: "gcf"
sei_30/grading/calculator took 11s
➜ open--resources-sei
sei_30/grading/calculator
➜ open--resources-sei
sei_30/grading/calculator
➜ git config --list -g
Found existing alias for "git config --list". You should use: "gcf"
error: unknown switch `g'
usage: git config [<options>]
Config file location
--global use global config file
--system use system config file
--local use repository config file
--worktree use per-worktree config file
-f, --file <file> use given config file
--blob <blob-id> read config from given blob object
Action
--get get value: name [value-regex]
--get-all get all values: key [value-regex]
--get-regexp get values for regexp: name-regex [value-regex]
--get-urlmatch get value specific for the URL: section[.var] URL
--replace-all replace all matching variables: name value [value_regex]
--add add a new variable: name value
--unset remove a variable: name [value-regex]
--unset-all remove all matches: name [value-regex]
--rename-section rename section: old-name new-name
--remove-section remove a section: name
-l, --list list all
-e, --edit open an editor
--get-color find the color configured: slot [default]
--get-colorbool find the color setting: slot [stdout-is-tty]
Type
-t, --type <> value is given this type
--bool value is "true" or "false"
--int value is decimal number
--bool-or-int value is --bool or --int
--path value is a path (file or directory name)
--expiry-date value is an expiry date
Other
-z, --null terminate values with NUL byte
--name-only show variable names only
--includes respect include directives on lookup
--show-origin show origin of config (file, standard input, blob, command line)
--default <value> with --get, use default value when missing entry
sei_30/grading/calculator
➜ git config --list --global
Found existing alias for "git config --list". You should use: "gcf"
sei_30/grading/calculator took 25m 55s
➜ ...
~/SEI/sei_30
➜ cd sandbox
SEI/sei_30/sandbox
➜ ls
01-sandbox express-model-seeding-study responsive-web-design-starter-code
0502_browser-server-js express-test responsive_example
0502_hello-node game-of-war ruby-cipher-challenge
0502_node-fs html-css-lesson-codealong yum-lab
0502_npm-resume parcel-practice yum-old
0503_express-hello-world pug-portfolio
SEI/sei_30/sandbox
➜ 01-sandbox
sei_30/sandbox/01-sandbox via ⬢ v12.0.0
➜ curl -X GET "https://en.wikipedia.org/api/rest_v1/page/summary/Harald%20V?redirect=true" -H "accept: application/json; charset=utf-8; profile="https://www.mediawiki.org/wiki/Specs/Summary/1.3.7""
sei_30/sandbox/01-sandbox via ⬢ v12.0.0
➜ ls
index.html script.js style.css
sei_30/sandbox/01-sandbox via ⬢ v12.0.0
➜ open--resources-sei
sei_30/sandbox/01-sandbox via ⬢ v12.0.0
➜ ls
index.html script.js style.css
sei_30/sandbox/01-sandbox via ⬢ v12.0.0
➜ ls ..
01-sandbox express-model-seeding-study responsive-web-design-starter-code
0502_browser-server-js express-test responsive_example
0502_hello-node game-of-war ruby-cipher-challenge
0502_node-fs html-css-lesson-codealong yum-lab
0502_npm-resume parcel-practice yum-old
0503_express-hello-world pug-portfolio
sei_30/sandbox/01-sandbox via ⬢ v12.0.0
➜ curl -X GET "https://en.wikipedia.org/api/rest_v1/page/summary/Harald%20V?redirect=true" -H "accept: application/json; charset=utf-8; profile="https://www.mediawiki.org/wiki/Specs/Summary/1.3.7"" >> output.txt
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
sei_30/sandbox/01-sandbox via ⬢ v12.0.0
➜ ls
index.html output.txt script.js style.css
sei_30/sandbox/01-sandbox via ⬢ v12.0.0
➜ code .
sei_30/sandbox/01-sandbox via ⬢ v12.0.0
➜ curl -X GET "https://en.wikipedia.org/api/rest_v1/page/summary/Harald_V_of_Norway" -H "accept: application/json; charset=utf-8; profile="https://www.mediawiki.org/wiki/Specs/Summary/1.3.7"" >> output.txt
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 2094 100 2094 0 0 41434 0 --:--:-- --:--:-- --:--:-- 41880
sei_30/sandbox/01-sandbox via ⬢ v12.0.0
➜ open--resources-sei
sei_30/sandbox/01-sandbox via ⬢ v12.0.0
➜ ...
~/SEI/sei_30
➜ grading
SEI/sei_30/grading
➜ mern/shane
grading/mern/shane
➜ code .
grading/mern/shane
➜ ...
SEI/sei_30/grading
➜ ../sandbox
SEI/sei_30/sandbox
➜ take express-jwt-study
sei_30/sandbox/express-jwt-study
➜ npm init -y
Found existing alias for "npm init". You should use: "npmI"
Wrote to /Users/hammad/SEI/sei_30/sandbox/express-jwt-study/package.json:
{
"name": "express-jwt-study",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC"
}
sei_30/sandbox/express-jwt-study is 📦 v1.0.0 via ⬢ v12.0.0
➜ git init
Found existing alias for "git". You should use: "g"
Initialized empty Git repository in /Users/hammad/SEI/sei_30/sandbox/express-jwt-study/.git/
express-jwt-study on  master [?] is 📦 v1.0.0 via ⬢ v12.0.0
➜ code .
express-jwt-study on  master [?] is 📦 v1.0.0 via ⬢ v12.0.0
➜ ls
app.js controllers index.js package-lock.json public
bin db node_modules package.json routes
express-jwt-study/Users/hammad/SEI/sei_30/sandbox/express-jwt-study on  master [?] is 📦 v0.0.0 via ⬢ v12.0.0
➜ code .
express-jwt-study/Users/hammad/SEI/sei_30/sandbox/express-jwt-study on  master [?] is 📦 v0.0.0 via ⬢ v12.0.0
➜ ..
zsh: permission denied: ..
express-jwt-study/Users/hammad/SEI/sei_30/sandbox/express-jwt-study on  master [?] is 📦 v0.0.0 via ⬢ v12.0.0
➜ ..
zsh: permission denied: ..
express-jwt-study/Users/hammad/SEI/sei_30/sandbox/express-jwt-study on  master [?] is 📦 v0.0.0 via ⬢ v12.0.0
➜ cd ~
~
➜ ls
Applications Documents Library Pictures SEI
Desktop Downloads Movies Postman package-lock.json
Dev Dropbox Music Public z.sh
~
➜ SEI/sei_30/sandbox
SEI/sei_30/sandbox
➜ trash express-
SEI/sei_30/sandbox
➜ ls
01-sandbox express-model-seeding-study responsive-web-design-starter-code
0502_browser-server-js express-test responsive_example
0502_hello-node game-of-war ruby-cipher-challenge
0502_node-fs html-css-lesson-codealong yum-lab
0502_npm-resume parcel-practice yum-old
0503_express-hello-world pug-portfolio
SEI/sei_30/sandbox
➜ ls ./
01-sandbox express-model-seeding-study responsive-web-design-starter-code
0502_browser-server-js express-test responsive_example
0502_hello-node game-of-war ruby-cipher-challenge
0502_node-fs html-css-lesson-codealong yum-lab
0502_npm-resume parcel-practice yum-old
0503_express-hello-world pug-portfolio
SEI/sei_30/sandbox
➜ ls /
Applications Users data installer.failurerequests tmp
Library Volumes dev net usr
Network bin etc private var
System cores home sbin
SEI/sei_30/sandbox
➜ mkdir express-jwt-study
SEI/sei_30/sandbox
➜ code express-jwt-study
SEI/sei_30/sandbox
➜ npm i -g json2csv
/Users/hammad/.nvm/versions/node/v12.0.0/bin/json2csv -> /Users/hammad/.nvm/versions/node/v12.0.0/lib/node_modules/json2csv/bin/json2csv.js
+ [email protected]
added 4 packages from 6 contributors in 0.891s
SEI/sei_30/sandbox took 2s
➜ ls /
Applications cores private
Library data sbin
Network dev tmp
System etc usr
Users home var
Volumes installer.failurerequests
bin net
SEI/sei_30/sandbox
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment