Skip to content

Instantly share code, notes, and snippets.

:octocat:
Lurking again .....

Abhishek Kumar Mr-Kumar-Abhishek

:octocat:
Lurking again .....
Block or report user

Report or block Mr-Kumar-Abhishek

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Mr-Kumar-Abhishek
Mr-Kumar-Abhishek / 2019-https-localhost.md
Created Mar 31, 2020 — forked from cecilemuller/2019-https-localhost.md
How to create an HTTPS certificate for localhost domains
View 2019-https-localhost.md

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).

View questerica.sh
[
{
result: 'success',
URL: 'http://questerica.tk/',
'NS Records (Nameservers)': [ 'ns1.vultr.com', 'ns2.vultr.com' ],
'A Record': '45.73.46.230'
}
]
@Mr-Kumar-Abhishek
Mr-Kumar-Abhishek / remove-binary-git.sh
Created Oct 18, 2019
remove binaries from git history
View remove-binary-git.sh
git filter-branch --index-filter 'git rm --cached --ignore-unmatch ./path/to/resource/*.ext' --tag-name-filter cat -- --all
@Mr-Kumar-Abhishek
Mr-Kumar-Abhishek / xstartup.sh
Created Aug 24, 2019
Old vnc startup script
View xstartup.sh
#!/bin/sh
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
OS=`uname -s`
if [ $OS = 'Linux' ]; then
case "$WINDOWMANAGER" in
*gnome*)
if [ -e /etc/SuSE-release ]; then
View Xstartup.sh
#!/bin/sh
# 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 &
View vnc.sh
x0vncserver -passwordfile ~/.vnc/passwd -display :0 -rfbport 5080 SecurityTypes=VeNCrypt,plain -PlainUsers=sebastiaanRemote
View zeit-now-cli-error.sh
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
Mr-Kumar-Abhishek / irc.md
Created Mar 9, 2019 — forked from xero/irc.md
irc cheat sheet
View irc.md

#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
Mr-Kumar-Abhishek / new empty git branch.md
Created Feb 23, 2019 — forked from ozh/new empty git branch.md
Create a new empty branch in Git
View new empty git branch.md
$ 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.

@Mr-Kumar-Abhishek
Mr-Kumar-Abhishek / hnl.mobileConsole.js
Created Dec 13, 2018 — forked from c-kick/hnl.mobileConsole.js
hnl.mobileConsole.js - extends JavaScript's console to display a visual console inside the webpage. Very usefull for debugging JS on mobile devices with no real console. Info and demo: http://www.hnldesign.nl/work/code/mobileconsole-javascript-console-for-mobile-devices/
View hnl.mobileConsole.js
/*!
* hnl.mobileConsole - javascript mobile console - v1.3.4 - 6/9/2018
* Adds html console to webpage. Especially useful for debugging JS on mobile devices.
* Supports 'log', 'trace', 'info', 'warn', 'error', 'group', 'groupEnd', 'table', 'assert', 'clear'
* Inspired by code by jakub fiala (https://gist.github.com/jakubfiala/8fe3461ab6508f46003d)
* Licensed under the MIT license
*
* Original author: @hnldesign
* Further changes, comments: @hnldesign
* Copyright (c) 2014-2016 HN Leussink
You can’t perform that action at this time.