Skip to content

Instantly share code, notes, and snippets.

View yogendratamang48's full-sized avatar

Yogendra Tamang yogendratamang48

  • Bremen, Germany
View GitHub Profile
@yogendratamang48
yogendratamang48 / parser.py
Last active September 7, 2023 16:00
Example Script
import requests
from lxml import html
LINKS = [
"https://livingcost.org/cost/united-states/ny",
"https://livingcost.org/cost/netherlands/amsterdam"
]
EXTRACTOR_XPATH = '//th[contains(text(), "Total with rent")]/following-sibling::td[1]/div/span/text()'
@yogendratamang48
yogendratamang48 / Options.js
Last active June 6, 2023 16:58
Options.js
const schools = [
{
"label": "A Better U Beauty Barber Academy",
"id": 493868
},
{
"label": "A T Still University of Health Sciences",
"id": 177834
},
{
@yogendratamang48
yogendratamang48 / ex.md
Created March 2, 2023 20:26
Just a test

Working with json

Write a JavaScript program to do following

  1. Who is the oldest super hero ?
  2. Which Superheroes have the power Teleportation ?
  3. Show the table with each super hero name and the number of powers they have in a table.
@yogendratamang48
yogendratamang48 / courses.csv
Created January 31, 2023 21:06
aclouguru-statemachines
name provider skill-level
Introduction to Amazon Athena AWS Apprentice
Processing Serverless Data Using Lambda AWS Practitioner
@yogendratamang48
yogendratamang48 / README.md
Last active February 7, 2023 16:18
haat to squarefeet

How to run ?

>python haat.py -l 40 -b 20

Show simple information about your AWS

Requirements

pip install boto3
pip install tabulate
mysql -u $DB_USER -h $MYSQL_HOST -p
mysqldump -u $DB_USER -h $MYSQL_HOST --no-tablespaces -p $B_NAME > dbFull.sql
mysql -u $DB_USER -h $MYSQL_HOST -p"<PASS>" mydb < ~/winhome/Downloads/dbFull.sql
@yogendratamang48
yogendratamang48 / Free-Udemy-Courses-Crawler.md
Last active September 14, 2021 10:50
Udemy Free Course

Install Dependencies

pip3 install requests
pip3 install lxml

Run script

>python3 smartybro.py

@yogendratamang48
yogendratamang48 / .zshenv
Last active June 4, 2021 11:26
Kubectl Aliases
# eksctl
alias ek="eksctl"
alias ekcc="eksctl create cluster"
alias ekccf="eksctl create cluster -f"
alias ekrm="eksctl delete cluster"
alias ekrmf="eksctl delete cluster -f"
# Stack Master
alias sm="stack_master"
alias sma="stack_master apply"
alias smo="stack_master outputs"
@yogendratamang48
yogendratamang48 / track_git_single_file.sh
Last active September 17, 2020 12:22
Gist Track File from particular branch using script
#! /bin/bash
cd "$(dirname "$0")"
echo "Starting file sync program..."
echo "Start time: $(date)"
GIT_TOKEN=""
GIT_OWNER=""
GIT_BRANCH=""
GIT_REPO=""
GIT_FILE="<git_file_you_want_to_track>"
TMP_FILE="/var/tmp/file_sync.txt"