Skip to content

Instantly share code, notes, and snippets.

View arn-ob's full-sized avatar
☠️
__worker__

Arnob arn-ob

☠️
__worker__
View GitHub Profile
@arn-ob
arn-ob / node_nginx_ssl.md
Created November 6, 2020 07:47 — forked from bradtraversy/node_nginx_ssl.md
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

@arn-ob
arn-ob / Months.json
Created January 30, 2020 06:09 — forked from enriqueornelas/Months.json
Month Names (With Abbreviations) in JSON
[
{
"abbreviation": "Jan",
"name": "January",
"id": "01"
},
{
"abbreviation": "Feb",
"name": "February",
"id": "02"
@arn-ob
arn-ob / urlscrap.js
Last active December 22, 2019 12:59
Scrap All the url from the site
const request = require('request');
const cheerio = require('cheerio');
const ld = require('lodash')
let base_url = 'https://khaasfood.com'
let urls = []
let count = -1;
let threshold = 2000
@arn-ob
arn-ob / app.js
Created December 22, 2019 10:40
Request Scrap problem Solved
// const axios = require('axios');
// const cheerio = require('cheerio');
// const url = 'https://khaasfood.com';
// axios(url)
// .then(response => {
// const html = response.data;
// const s = cheerio.load(html);
// console.log(html)
@arn-ob
arn-ob / Certbot.Readme.txt
Last active October 23, 2020 17:59
Certbot Nginx Proxy link for API setup
Step 1 — Installing Certbot
The first step to using Let’s Encrypt to obtain an SSL certificate is to install the Certbot software on your server.
Certbot is in very active development, so the Certbot packages provided by Ubuntu tend to be outdated. However, the Certbot developers maintain a Ubuntu software repository with up-to-date versions, so we’ll use that repository instead.
First, add the repository:
sudo add-apt-repository ppa:certbot/certbot
You’ll need to press ENTER to accept.
@arn-ob
arn-ob / scroll.html
Created September 25, 2019 04:58
Page Scroll while mouse moving
<html>
<head>
<title> Track Mouse </title>
<script type="text/javascript">
var x, y;
(function() {
@arn-ob
arn-ob / cloudSettings
Last active October 27, 2020 10:08
vsconfig.txt
{"lastUpload":"2020-10-27T10:08:12.403Z","extensionVersion":"v3.4.3"}
@arn-ob
arn-ob / z390.txt
Created September 7, 2019 16:45
Aorus Z390 Master Debug LED Codes
Aorus Z390 Master Debug LED Codes
Code Description
10 PEI Core is started.
11 Pre-memory CPU initialization is started.
12~14 Reserved.
15 Pre-memory North-Bridge initializations is started.
16~18 Reserved.
19 Pre-memory South-Bridge initializations is started.
1A~2A Reserved.
@arn-ob
arn-ob / generate_pdf_ref.js
Last active July 4, 2020 02:26
A ref for jspdf
import React, { PureComponent } from 'react';
import { Button, } from 'antd';
// npm i jspdf
import jsPDF from 'jspdf'
// npm i jspdf-autotable
import 'jspdf-autotable';
export default class pdfGenerate extends PureComponent {
@arn-ob
arn-ob / pdf_generate.js
Created June 21, 2019 11:42
Generate PDF with React
import React, { PureComponent } from 'react';
import { Button, } from 'antd';
import jsPDF from 'jspdf'
export default class pdfGenerate extends PureComponent {
constructor(props){
super(props)
this.state ={}
}