Skip to content

Instantly share code, notes, and snippets.

Lurking again .....

Abhishek Kumar Mr-Kumar-Abhishek

Lurking again .....
View GitHub Profile
View etc-nginx-sites-available-default
# You should look at the following URL's in order to grasp a solid understanding
# of Nginx configuration files in order to fully unleash the power of Nginx.
# In most cases, administrators will remove this file from sites-enabled/ and
# leave it as reference inside of sites-available where it will continue to be
# updated by the nginx packaging team.
Mr-Kumar-Abhishek /
Created Mar 31, 2020 — forked from cecilemuller/
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).

result: 'success',
URL: '',
'NS Records (Nameservers)': [ '', '' ],
'A Record': ''
Mr-Kumar-Abhishek /
Created Oct 18, 2019
remove binaries from git history
git filter-branch --index-filter 'git rm --cached --ignore-unmatch ./path/to/resource/*.ext' --tag-name-filter cat -- --all
Mr-Kumar-Abhishek /
Created Aug 24, 2019
Old vnc startup script
OS=`uname -s`
if [ $OS = 'Linux' ]; then
if [ -e /etc/SuSE-release ]; then
# Start Gnome 3 Desktop
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
vncconfig -iconic &
dbus-launch --exit-with-session gnome-session &
x0vncserver -passwordfile ~/.vnc/passwd -display :0 -rfbport 5080 SecurityTypes=VeNCrypt,plain -PlainUsers=sebastiaanRemote
pi@IBM5200:~/Documents/projects $ cd now-cli
pi@IBM5200:~/Documents/projects/now-cli $ lls
bash: lls: command not found
pi@IBM5200:~/Documents/projects/now-cli $ npm install --unsafe-perm
pi@IBM5200:~/Documents/projects/now-cli $ npm install -g --unsafe-perm
npm ERR! path /home/pi/.config/versions/node/v12.0.0/lib/node_modules/now/download/dist/now
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall chmod
Mr-Kumar-Abhishek /
Created Mar 9, 2019 — forked from xero/
irc cheat sheet

#IRC Reference

Not intended as a guide for newbies, more like a "cheat sheet" for the somewhat experienced IRC user, especially one who wields some power over a channel.

##The Basics

  • /join #channel
    • Joins the specified channel.
  • /part #channel
    • Leaves the specified channel.
Mr-Kumar-Abhishek / new empty git
Created Feb 23, 2019 — forked from ozh/new empty git
Create a new empty branch in Git
View new empty git
$ git checkout --orphan NEWBRANCH
$ git rm -rf .

--orphan creates a new branch, but it starts without any commit. After running the above command you are on a new branch "NEWBRANCH", and the first commit you create from this state will start a new history without any ancestry.

You can then start adding files and commit them and they will live in their own branch. If you take a look at the log, you will see that it is isolated from the original log.

You can’t perform that action at this time.