Skip to content

Instantly share code, notes, and snippets.

View hotheadhacker's full-sized avatar
:octocat:
Rocking GitHub

Salman Qureshi hotheadhacker

:octocat:
Rocking GitHub
View GitHub Profile
@hotheadhacker
hotheadhacker / initReactProject.sh
Last active March 3, 2023 13:37
My quick start folder structure for react native apps
npx react-native@latest init <APP_NAME> && cd <APP_NAME> && mkdir src && cd src && mkdir Screens && mkdir Components && mkdir Providers && mkdir Config
#!/bin/bash
# dependency: apt install whois
if [ "$#" == "0" ]; then
echo "You need tu supply at least one argument!"
exit 1
fi
echo "starting..."
DOMAINS=( '.link' '.ly' '.com' '.co.uk' '.net' '.info' '.mobi' \
'.org' '.tel' '.biz' '.tv' '.cc' '.eu' '.ru' \
@hotheadhacker
hotheadhacker / random_unique.php
Last active November 7, 2021 17:31
PHP file to generate random 6 digit unique Alpha Numeric Based a number (id)
// Algo that generates unique number from id of php
// Algo V1.0 by Salman Qureshi (@hotheadhacker) date 08/11/2021
// TODO: Future add timestamp base uniqueness too
public function codeGenerator($id){
// for len 6
//Step 1: Get Base64
$code = base64_encode($id);
@hotheadhacker
hotheadhacker / quotes.json
Created January 21, 2021 07:45 — forked from nasrulhazim/quotes.json
Quotes List in JSON Format
{
"quotes": [
{
"quote":"Life isn’t about getting and having, it’s about giving and being.","author":"Kevin Kruse"},
{
"quote":"Whatever the mind of man can conceive and believe, it can achieve.","author":"Napoleon Hill"},
{
"quote":"Strive not to be a success, but rather to be of value.","author":"Albert Einstein"},
{