Skip to content

Instantly share code, notes, and snippets.

View bkanhu's full-sized avatar

B Kanhu Charan bkanhu

View GitHub Profile
@bkanhu
bkanhu / Discrete_Mathematics.md
Created May 25, 2021 19:22
Discrete Mathematics Syllabus for MCA

Discrete Mathematics

Modules

  • Number Systems
  • Propositions and Logical Operations
  • Counting
  • Relations
  • Graph theory
  • Group theory
  • Lattice theory
@bkanhu
bkanhu / settings.json
Created May 25, 2021 19:16
My VS Code Settings 2021
{
"[html]": {
"editor.defaultFormatter": "vscode.html-language-features"
},
"[css]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"liveServer.settings.donotShowInfoMsg": true,
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
@tanaypratap
tanaypratap / tanay-links.md
Last active March 3, 2024 09:05
Links for all of Tanay's Initiatives at one place
@aslamdoctor
aslamdoctor / wsl-lamp.md
Last active May 31, 2024 07:53
Windows 10 - WSL LAMP Stack Setup
@bradtraversy
bradtraversy / node_nginx_ssl.md
Last active June 3, 2024 13:51
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

@bkanhu
bkanhu / beginners_ubuntu.md
Last active June 2, 2024 14:13
A Beginners Guide on Things To Do After Installing Ubuntu.

Beginners Ubuntu

A Beginners Guide To Things To Do After Installing Ubuntu.

1. Check For Updates

sudo apt update && sudo apt upgrade

2. Enable additional repositories for more software

Ubuntu has several repositories from where it provides software for your system. Enabling all these repositories will give you access to more software and proprietary drivers.

@bradtraversy
bradtraversy / node_cheerio_scraping.js
Created August 6, 2018 02:55
Simple example to scrape some posts and put into a CSV file using Node & Cheerio
const request = require('request');
const cheerio = require('cheerio');
const fs = require('fs');
const writeStream = fs.createWriteStream('post.csv');
// Write Headers
writeStream.write(`Title,Link,Date \n`);
request('http://codedemos.com/sampleblog', (error, response, html) => {
if (!error && response.statusCode == 200) {
@opus-x
opus-x / Spotify_Eliminate_Advertisements
Last active May 30, 2024 11:48
Eliminate Spotify Advertisements + Complete Server List
##################################################################################
# ELIMINATE SPOTIFY ADS (VERSION 1.2 - 8.5) - ABANDONED FOR NOW #
##################################################################################
#
# NOTE: SOMETIMES ONLY ANNOUNCEMENT OF AN AD WHILE USING APP VERSION 7.5-7.9?-8.x.
# USING AN OFFICIAL OLDER VERSION SOLVES THIS. TEST IT (APKMIRROR). THIS WILL NOT
# OCCUR USING CHROMECAST / GOOGLE HOME.
#
# COULD NOT SOLVE THE AUDIO AD INRO/OUTRO IN THE APP.
# SUGGESTIONS? WRITE A COMMENT BELOW.
@umidjons
umidjons / youtube-dl-download-audio-only-on-best-quality.md
Last active March 9, 2024 07:54
Download Audio from YouTube with youtube-dl

Download Audio from YouTube

-i - ignore errors

-c - continue

-t - use video title as file name

--extract-audio - extract audio track