Skip to content

Instantly share code, notes, and snippets.

View vi4hu's full-sized avatar
☀️
Praise the Sun

Ashutosh Yadav vi4hu

☀️
Praise the Sun
View GitHub Profile
@vi4hu
vi4hu / updatepat.md
Last active June 3, 2023 18:25
How to reset you github Personal Acess Token (PAT) in linux terminal

if you are doing first time with this method

The most simple and working solution i was able to find is removing the config file itself, git will generate it again so its fast and simple.

don't push till the very end.

rm ~/.gitconfig

Note: after doing this git will forget about your username and email so, run this command.

git will prompt this on your first fresh commit anyway, but don't forget to do this. the relation between you signed commit(via email) to account is very important.

@iam-hussain
iam-hussain / default HTTP
Last active June 10, 2024 22:10
Serve nextJS app from a port through NGINX reverse proxy HTTP and HTTPS
# Serve nextJS app from a port through NGINX reverse proxy (HTTP)
# Path: /etc/nginx/sites-available/default
# Default server configuration for HTTP
server {
server_name www.DOMAINNAME.com DOMAINNAME.com;
# Serve any static assets with NGINX
location /_next/static {
alias /home/ubuntu/PROJECT_FOLDER/.next/static;
@dashed
dashed / github-pandoc.css
Created September 26, 2013 13:42
GitHub-like CSS for pandoc standalone HTML files (perfect for HTML5 output). Based on Marked.app's GitHub CSS. Added normalize.css (v2.1.3) in the prior to GitHub css.
/*! normalize.css v2.1.3 | MIT License | git.io/normalize */
/* ==========================================================================
HTML5 display definitions
========================================================================== */
/**
* Correct `block` display not defined in IE 8/9.
*/