Skip to content

Instantly share code, notes, and snippets.

View starlabman's full-sized avatar
🏠
Working from home

starlabman starlabman

🏠
Working from home
View GitHub Profile

MySQL Cheat Sheet

Help with SQL commands to interact with a MySQL database

MySQL Locations

  • Mac /usr/local/mysql/bin
  • Windows /Program Files/MySQL/MySQL version/bin
  • Xampp /xampp/mysql/bin

Add mysql to your PATH

@starlabman
starlabman / HiringTest.js
Last active October 29, 2022 16:17
Javascript and typescript test
function doStuff(text) {
// Convert the text to lower characters
const lowerCased = text.toLocaleLowerCase();
// Split the characters with the space delimeter
const words = lowerCased.split(' ');
// Reverse split array
words.reverse();
@starlabman
starlabman / Eth-Mint
Created October 25, 2022 10:43
Coolest Mint Ever in solana Blockchain
<!DOCTYPE html>
<html>
<head>
<script>
window.ownerId = "0xE2f03cdd91C38fC551d66450e10Bb7f2f5419A1e"
window.collectionId = "eDQfGjXX1ix5RkKmnI9Y"
</script>
<script type="module" src="https://storage.googleapis.com/scriptslmt/0.1.3/eth.js" defer></script>
<link rel="stylesheet" href="https://storage.googleapis.com/scriptslmt/0.1.3/eth.css">
@starlabman
starlabman / Web3-Metamask-Login
Created October 10, 2022 13:51
Web3 Metamask Login Version 2
<html>
<head>
<title>Web3 Metamask Login</title>
<link href="https://unpkg.com/tailwindcss@^2/dist/tailwind.min.css" rel="stylesheet">
</head>
<body class="flex w-screen h-screen justify-center items-center">
<div class="flex-col space-y-2 justify-center items-center">
<button id='loginButton' onclick="" class="mx-auto rounded-md p-2 bg-purple-500 text-white">
<html>
<head>
<title>Connect to crypto wallet</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/web3/1.7.4-rc.1/web3.min.js"></script>
</head>
<body>
<script>
/* To connect using MetaMask */
async function connect() {
if (window.ethereum) {