Skip to content

Instantly share code, notes, and snippets.

View Mr-Kumar-Abhishek's full-sized avatar

Abhishek Kumar Mr-Kumar-Abhishek

View GitHub Profile
sudo apt-get install libtool intltool
class TypesOfVehicles extends React.Component {
constructor(props) {
super(props);
}
render() {
return (
<div>
<h1>Types of Vehicles:</h1>
<Car />
<Motorcycle />
##
# 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.
# https://www.nginx.com/resources/wiki/start/
# https://www.nginx.com/resources/wiki/start/topics/tutorials/config_pitfalls/
# https://wiki.debian.org/Nginx/DirectoryStructure
#
# 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
Mr-Kumar-Abhishek / 2019-https-localhost.md
Created March 31, 2020 17:54 — forked from cecilemuller/2019-https-localhost.md
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).

@Mr-Kumar-Abhishek
Mr-Kumar-Abhishek / questerica.sh
Created December 22, 2019 06:47
questerica server data
[
{
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 October 18, 2019 14:35
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
Mr-Kumar-Abhishek / xstartup.sh
Created August 24, 2019 03:05
Old vnc startup script
#!/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
@Mr-Kumar-Abhishek
Mr-Kumar-Abhishek / Xstartup.sh
Created August 24, 2019 03:01
Start script vnc
#!/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 &
@Mr-Kumar-Abhishek
Mr-Kumar-Abhishek / vnc.sh
Last active August 24, 2019 02:46
vnc start
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