git init
git add .
The following command will open git config file in terminal editor (vim or nano)
git config --global --edit
git init
git add .
The following command will open git config file in terminal editor (vim or nano)
git config --global --edit
| #!/usr/bin/env python3 | |
| import requests | |
| from curl_cffi import requests | |
| from bs4 import BeautifulSoup | |
| ''' | |
| requirements.txt | |
| #!/usr/bin/env python3 | |
| import csv | |
| def write_row_to_csv(filename, row_data_as_list, file_mode): | |
| with open(filename, file_mode, newline='') as csvfile: | |
| # creating a csv writer object | |
| csvwriter = csv.writer(csvfile, delimiter=',', quotechar='"', quoting=csv.QUOTE_ALL) | |
| # writing the data rows | |
| csvwriter.writerow(row_data_as_list) |
| #!/usr/bin/env python3 | |
| import time | |
| import uncurl | |
| ''' | |
| This script uses: https://github.com/spulec/uncurl | |
| To install: Setup virtualenv, then run: |
| #!/usr/bin/env python3 | |
| from datetime import datetime | |
| import os | |
| now = datetime.now() | |
| now_str = now.strftime("%m-%d-%Y_%H-%M-%S-%f") | |
| # This will create a directory similar to this path: | |
| # ./logs/04-20-2022_19-37-08/ | |
| temp_path="logs/" + now_str |
| #!/usr/bin/env python3 | |
| monthly_installment = 30000 | |
| # 36 means one installment every month for 3 years | |
| number_of_installments = 36 | |
| # Annual rate of interest | |
| # e.g. 9.25% | |
| r = 9.25 |
| #!/usr/bin/env python3 | |
| principal = 200000 | |
| # Annual rate of interest | |
| # e.g. 9.25% | |
| r = 9.25 | |
| # number of compounding periods per year | |
| # |
| {"shop_id":84644, | |
| "vendor_id":62414, | |
| "img_URL":null, | |
| "user_preferred_domain":null, | |
| "shipping_cost":0, | |
| "shop_description":"my test shop", | |
| "domain_identifier":"test59", | |
| "shop_name":"Test", | |
| "shop_logo_URL":null, | |
| "shop_contact_number":"9769110914", |
| #!/bin/bash | |
| # ABOUT: | |
| # | |
| # Use this set of commands to: | |
| # - Change password of root account | |
| # - Create a new user account, set it's password and grant sudo privileges | |
| # on Ubuntu Linux. | |
| # Change password of currently logged in 'root' account: |
| #!/bin/bash | |
| # | |
| # Bash script to setup headless Selenium (uses Xvfb and Chrome) | |
| # (Tested on Ubuntu 12.04) | |
| # Add Google Chrome's repo to sources.list | |
| echo "deb http://dl.google.com/linux/chrome/deb/ stable main" | sudo tee -a /etc/apt/sources.list | |
| # Install Google's public key used for signing packages (e.g. Chrome) | |
| # (Source: http://www.google.com/linuxrepositories/) |