Skip to content

Instantly share code, notes, and snippets.

View parag-thoughti's full-sized avatar
:shipit:

Parag Patil parag-thoughti

:shipit:
View GitHub Profile
# GET VERSION
yarn -v (or --version)
# GET HELP
yarn help
# CREATE PACKAGE.JSON
yarn init
yarn init -y // Use defaults
@parag-thoughti
parag-thoughti / npmcrashcourse.txt
Created May 8, 2019 09:48 — forked from bradtraversy/npmcrashcourse.txt
NPM Crash Course Commands
# GET VERSION
npm -v (or --version)
# GET HELP
npm help
npm
# CREATE PACKAGE.JSON
npm init
npm init -y (or --yes)
@parag-thoughti
parag-thoughti / cloudSettings
Created June 25, 2019 12:24
Visual Studio Code Settings Sync Gist
{"lastUpload":"2019-06-20T09:27:03.168Z","extensionVersion":"v3.2.9"}
@parag-thoughti
parag-thoughti / index.js
Created August 22, 2019 12:29 — forked from adrianhajdin/index.js
HTML Template
module.exports = ({ name, price1, price2, receiptId }) => {
const today = new Date();
return `
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>PDF Result Template</title>
<style>
.invoice-box {
/**
* Print Stylesheet fuer Deinewebsite.de
* @version 1.0
* @lastmodified 16.06.2016
*/
@media print {
/* Inhaltsbreite setzen, Floats und Margins aufheben */
/* Achtung: Die Klassen und IDs variieren von Theme zu Theme. Hier also eigene Klassen setzen */
@parag-thoughti
parag-thoughti / findUser.js
Created September 21, 2019 15:47 — forked from paigen11/findUser.js
Passport local and Passport JWT authentication with custom callbacks examples with a user registration MERN service.
import passport from 'passport';
module.exports = app => {
app.get('/findUser', (req, res, next) => {
passport.authenticate('jwt', { session: false }, (err, user, info) => {
if (err) {
console.log(err);
}
if (info != undefined) {
console.log(info.message);
@parag-thoughti
parag-thoughti / AdbCommands
Created November 5, 2019 07:11 — forked from Pulimet/AdbCommands
Adb useful commands list
== Adb Server
adb kill-server
adb start-server
== Adb Reboot
adb reboot
adb reboot recovery
adb reboot-bootloader
== Shell
@parag-thoughti
parag-thoughti / vscode_shortcuts.md
Created November 5, 2019 07:13 — forked from bradtraversy/vscode_shortcuts.md
Helpful shortcuts for VSCode

VSCode Shortcuts

List of helpful shortcuts for faster coding

If you have any other helpful shortcuts, feel free to add in the comments of this gist :)

Official List of all commands

@parag-thoughti
parag-thoughti / user_aliases.cmd
Created December 25, 2019 13:42 — forked from parag60288/user_aliases.cmd
Cmder User Alias for windows
;= @echo off
;= rem Call DOSKEY and use this file as the macrofile
;= %SystemRoot%\system32\doskey /listsize=1000 /macrofile=%0%
;= rem In batch mode, jump to the end of the file
;= goto:eof
;= Add aliases below here
e.=explorer .
gl=git log --oneline --all --graph --decorate $*
ls=ls --show-control-chars -F --color $*
pwd=cd
@parag-thoughti
parag-thoughti / 2019-https-localhost.md
Created February 5, 2020 07:45 — forked from cecilemuller/2019-https-localhost.md
How to create an HTTPS certificate for localhost domains

How to create an HTTPS certificate for localhost domains

This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.

Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).