- Generate key
gpg --full-generate-key
- size 4096
- RSA and RSA
- Dont expire
- email = [email protected]
- name = Gaurav Chikhale
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
workflow "Build and Test" { | |
on = "push" | |
resolves = ["Run integration tests"] | |
} | |
action "Install dependencies" { | |
uses = "actions/npm@master" | |
runs = "npm install" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"scripts": { | |
"e2e": "testcafe chrome e2e/*.js --app 'yarn serve:build'", | |
"e2e:github": "testcafe chrome:headless e2e/*.js --app 'npm run serve:build'" | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ffmpeg -i future.mov -vcodec libvpx-vp9 -b:v 4M future.webm |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|----Tap Tap-------| |----EE EEE EE-----| | |
| | | | | |
| | | | | |
|----------------------------------------------------------------------------------| | |
| | | | | |
| | | | | |
|<--Sleep Begins-->|<----------------In Sleep------------------>|<---Sleep Ends--->| | |
| | | | | |
| | | | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Just for es6 */ | |
{ | |
"name": "webapp", | |
"version": "1.0.0", | |
"description": "", | |
"main": "index.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1", | |
"watch": "webpack --watch --progress", | |
"build": "webpack -p" |
Git Commit Messages
- Use the present tense ("Add feature" not "Added feature")
- Use the imperative mood ("Move cursor to..." not "Moves cursor to...")
- Limit the first line to 72 characters or less
- Reference issues and pull requests liberally
- When only changing documentation, include [ci skip] in the commit description
- Consider starting the commit message with an applicable emoji:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const handleRequest = (req, res) => { | |
console.log('new Request!') | |
let child = execFile('/Users/om/some-script.py', [req.body]) | |
child.stdout.on('data', data => console.log('data: ', data)) | |
child.on('error', (err) => console.log('error:', err)) | |
child.on('exit', (c, s) => console.log('child exit', c, s)) | |
res.statusCode = 200; | |
res.end(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
const http = require('http'); | |
const getBody = (req) => { | |
return new Promise(resolve => { | |
let body = ''; | |
req.on('data', chunk => { body += chunk }); | |
req.on('end', _ => resolve(body)); | |
}) |
NewerOlder