Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View ashadnasim52's full-sized avatar
🖥️
I write CODE

ashad ashadnasim52

🖥️
I write CODE
  • Charzera Tech
  • India
View GitHub Profile
@gokulkrishh
gokulkrishh / media-query.css
Last active April 23, 2024 08:01
CSS Media Queries for Desktop, Tablet, Mobile.
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
/* CSS */
@SanderTheDragon
SanderTheDragon / postman-deb.sh
Last active April 3, 2024 05:30
A shellscript to create a Postman .deb file, for simple installation on Debian-based Linux distro's. Also creates a .desktop file.
#!/bin/sh
# SPDX-FileCopyrightText: 2017-2022 SanderTheDragon <sanderthedragon@zoho.com>
#
# SPDX-License-Identifier: MIT
curlExists=$(command -v curl)
echo "Testing Postman version"
@amitsin6h
amitsin6h / checkout-pull-request-locally.md
Last active June 6, 2019 04:35
How to checkout pull request locally and modify & resend, to master

$ 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:
@bradtraversy
bradtraversy / node_nginx_ssl.md
Last active April 23, 2024 12:23
Node app deploy with nginx & SSL

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

@rahularity
rahularity / work-with-multiple-github-accounts.md
Last active April 23, 2024 04:35
How To Work With Multiple Github Accounts on your PC

How To Work With Multiple Github Accounts on a single Machine

Let suppose I have two github accounts, https://github.com/rahul-office and https://github.com/rahul-personal. Now i want to setup my mac to easily talk to both the github accounts.

NOTE: This logic can be extended to more than two accounts also. :)

The setup can be done in 5 easy steps:

Steps:

  • Step 1 : Create SSH keys for all accounts
  • Step 2 : Add SSH keys to SSH Agent