Skip to content

Instantly share code, notes, and snippets.

View usefksa's full-sized avatar
🦜
Fast

Yousef Alrasheedi usefksa

🦜
Fast
View GitHub Profile
@usefksa
usefksa / gist:fff0350cc60769c4978d0d138c265bb5
Created August 13, 2020 07:07
delete last commit from remote
git push origin +bcaa295^:master
bcaa295 = last commit id
curl -o /dev/null -s -w ' time_namelookup: %{time_namelookup}\n
time_connect: %{time_connect}\n
time_appconnect: %{time_appconnect}\n
time_pretransfer: %{time_pretransfer}\n
time_redirect: %{time_redirect}\n
time_starttransfer: %{time_starttransfer}\n
----------\n
time_total: %{time_total}\n' https://d3us0pl2fbyt5c.cloudfront.net/01875_horseheadnebula_2560x1600.jpg
app.route('/book')
.get(function (req, res) {
res.send('Get a random book')
})
.post(function (req, res) {
res.send('Add a book')
})
.put(function (req, res) {
res.send('Update the book')
})