Skip to content

Instantly share code, notes, and snippets.

View jishanshaikh4's full-sized avatar
🌿

Jishan Shaikh jishanshaikh4

🌿
View GitHub Profile
@jishanshaikh4
jishanshaikh4 / hcaptcha.user.js
Created June 15, 2022 03:54
Tampermonkey script to solve Hcaptcha
// ==UserScript==
// @name Hcaptcha Solver with Browser Trainer(Automatically solves Hcaptcha in browser)
// @namespace Hcaptcha Solver
// @version 10.0
// @description Hcaptcha Solver in Browser | Automatically solves Hcaptcha in browser
// @match https://*.hcaptcha.com/*hcaptcha-challenge*
// @match https://*.hcaptcha.com/*checkbox*
// @grant GM_xmlhttpRequest
// @grant GM_setValue
// @grant GM_getValue
@jishanshaikh4
jishanshaikh4 / tailwind-webpack-setup.md
Created June 15, 2022 03:50 — forked from bradtraversy/tailwind-webpack-setup.md
Setup Webpack with Tailwind CSS

Webpack & Tailwind CSS Setup

Create your package.json

npm init -y

Create your src folder

Create a folder called src and add an empty index.js file. The code that webpack compiles goes in here including any Javascript modules and the main Tailwind file.

@jishanshaikh4
jishanshaikh4 / currency-code.ts
Created June 15, 2022 03:48 — forked from g4rcez/currency-code.ts
Typing the locale and currency in NumberFormat
// https://www.currency-iso.org/dam/downloads/lists/list_one.xml
export type CurrencyCode =
| "AFN"
| "EUR"
| "ALL"
| "DZD"
| "USD"
| "EUR"
| "AOA"
| "XCD"
@jishanshaikh4
jishanshaikh4 / delete-element.js
Created June 15, 2022 03:41
Remove elements from an array in JavaScript
// Remove n elements from the index in_dex
let myArray = ['a', 'b', 'c', 'd', 'e', 'f'];
console.log(myArray.splice(2, 3)); // n = 2, in_dex = 3
// Removes single element
Array.prototype.delete = function(element_to_be_deleted) {
const index = this.indexOf(element);
if (index > -1) {
this.splice(index, 1);
}
@jishanshaikh4
jishanshaikh4 / recaptcha.user.js
Created June 15, 2022 03:35
Tampermonkey script for Recaptcha (Archive)
// ==UserScript==
// @name Recaptcha Solver (Automatically solves Recaptcha in browser)
// @namespace Recaptcha Solver
// @version 2.1
// @description Recaptcha Solver in Browser | Automatically solves Recaptcha in browser
// @author engageub
// @match *://*/recaptcha/*
// @connect engageub.pythonanywhere.com
// @connect engageub1.pythonanywhere.com
// @grant GM_xmlhttpRequest
@jishanshaikh4
jishanshaikh4 / defi-roadmap.md
Created June 15, 2022 03:18
DeFi Developer Roadmap (@OfficerCIA/DeFi-Developer-Road-Map)

Roadmap

@jishanshaikh4
jishanshaikh4 / backup-database.sh
Created June 15, 2022 03:12
Generate a logical backup of your database to a file
# dependency
sudo apt install mysqldump
mysqldump -u username -p --default-character-set=utf8 --result-file=dumpFileName.sql databaseName
@jishanshaikh4
jishanshaikh4 / rsync-demo-old.sh
Created June 15, 2022 03:10
Synchronise file(s) to remote host using `rsync`
# Sync file to the remote
rsync -azP file username@remote_host:/home/dir/file
# Sync the file from the remote
rsync -azP username@remote_host:/home/dir/file file
@jishanshaikh4
jishanshaikh4 / empty-tables.sql
Created June 15, 2022 03:08
Find empty tables in MySQL server
select
t.name table_name
from
sys.tables t
join sys.schemas s on (t.schema_id = s.schema_id)
join sys.partitions p on (t.object_id = p.object_id)
where p.index_id in (0, 1)
group by t.name,s.name
having sum(p.rows) = 0;
@jishanshaikh4
jishanshaikh4 / clear-git.sh
Created June 15, 2022 03:03
Script to remove sensitive file(s) from your public GitHub repository
-- Remove the history from
rm -rf .git
-- recreate the repos from the current content only
git init
git add .
git commit -m "Initial commit"
-- push to the github remote repos ensuring you overwrite history
git remote add origin [email protected]:<YOUR ACCOUNT>/<YOUR REPOS>.git