What do you want to save?
Add Code snippet
New code examples
-
Shell/Bash 2021-11-04 06:53:15
add token to cli git
git remote add origin https://[USERNAME]:[NEW TOKEN]@github.com/[USERNAME]/[REPO].git //how to generate token : https://docs.github.com/en/github/authenticating-to-github/keeping-your-account-and-data-secure/creating-a-personal-access-token //or if you ha... Add solution -
Javascript 2021-10-04 04:23:04
jwt implementation in node js
// index.js const express = require('express'); const jwt = require('jsonwebtoken'); const app = express(); // generate token for another API to use in req.header app.post('/login', (req, res) => { const user = { id: 1, username... Add solution -
Shell/Bash 2021-09-08 02:53:02
using personal access token github
git remote add origin https://[USERNAME]:[NEW TOKEN]@github.com/[USERNAME]/[REPO].git //how to generate token : https://docs.github.com/en/github/authenticating-to-github/keeping-your-account-and-data-secure/creating-a-personal-access-token //or if you ha... Add solution -
Shell/Bash 2021-08-31 10:13:01
delete a github repository using curl
winpty curl -X DELETE -H 'Authorization: token [GENERATED_TOKEN]' https://api.github.com/repos/[USER]/[REPO_NAME] # follow steps here to generate token: https://help.github.com/en/github/authenticating-to-github/creating-a-personal-access-token-for-the-c... Add solution -
Shell/Bash 2021-08-26 10:48:02
create github repo without browser
winpty curl -H 'Authorization: token [GENERATED_TOKEN]' https://api.github.com/user/repos -d '{"name":"[REPO_NAME_YOU_WANT]"}' # follow steps here to generate token: https://help.github.com/en/github/authenticating-to-github/creating-... Add solution