Skip to content

Instantly share code, notes, and snippets.

Avatar
🖥️
I write CODE

ashad nasim ashadnasim52

🖥️
I write CODE
View GitHub Profile
@bradtraversy
bradtraversy / node_nginx_ssl.md
Last active Sep 21, 2021
Node app deploy with nginx & SSL
View node_nginx_ssl.md

Node.js Deployment

Steps to deploy a Node.js app to DigitalOcean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt

1. Sign up for Digital Ocean

If you use the referal link below, you get $10 free (1 or 2 months) https://m.do.co/c/5424d440c63a

2. Create a droplet and log in via ssh

I will be using the root user, but would suggest creating a new user

@amitsin6h
amitsin6h / checkout-pull-request-locally.md
Last active Jun 6, 2019
How to checkout pull request locally and modify & resend, to master
View checkout-pull-request-locally.md

$ git fetch origin

*From github.com:username/repo*

* [new ref] refs/pull/1000/head -> origin/pr/1000

* [new ref] refs/pull/999/head -> origin/pr/999

To check out a particular pull request:
@SanderTheDragon
SanderTheDragon / postman-deb.sh
Last active Sep 20, 2021
A shellscript to create a Postman .deb file, for simple installation on Debian-based Linux distro's. Also creates a .desktop file.
View postman-deb.sh
#!/bin/sh
ls Postman*.tar.gz > /dev/null 2>&1
if [ $? -eq 0 ]; then
echo "Removing old Postman tarballs"
rm -f $(ls Postman*.tar.gz)
fi
curlExists=$(command -v curl)
@gokulkrishh
gokulkrishh / media-query.css
Last active Sep 21, 2021
CSS Media Queries for Desktop, Tablet, Mobile.
View media-query.css
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
/* CSS */