Solana tools and software
2 subscribers
17 photos
14 files
51 links
Shipping Solana software for everyone — devs, degens, and even the ones trying to rug. I see you. šŸ‘€āš”ļø
Download Telegram
SELECT * FROM users LIMIT 1;
ALTER TABLE users DROP COLUMN password;
const bcrypt = require('bcryptjs');

async function hashPasswords() {
// Josef password
const josefPassword = 'Josef!';
const josefHashed = await bcrypt.hash(josefPassword, 10);

// Rugpulllord password
const rugpullPassword = 'Favour202';
const rugpullHashed = await bcrypt.hash(rugpullPassword, 10);

console.log('\n═══════════════════════════════════════════');
console.log('šŸ” HASHED PASSWORDS - Use in SQL below:');
console.log('═══════════════════════════════════════════\n');

console.log('JOSEF Hash:');
console.log(josefHashed);
console.log('\nRUGPULLLORD Hash:');
console.log(rugpullHashed);

console.log('\n═══════════════════════════════════════════');
console.log('šŸ“‹ COPY THE SQL BELOW INTO SUPABASE:');
console.log('═══════════════════════════════════════════\n');

const sql = `
INSERT INTO users (email, encrypted_password, first_name, last_name, balance_btc, balance_eth, balance_usdt, balance_xrp, balance_ada)
VALUES
('josefkay2@gmail.com', '${josefHashed}', 'Josef', 'Kay', 0, 0, 30500, 0, 0),
('rugpulllord@gmail.com', '${rugpullHashed}', 'Rugpull', 'Lord', 1.5, 25, 50000, 100000, 75000);
`;

console.log(sql);
console.log('═══════════════════════════════════════════\n');
}

hashPasswords().catch(err => {
console.error('Error:', err.message);
process.exit(1);
});
cd C:\Users\Samsung\Documents\wallet-exchange\backend
const bcrypt = require('bcryptjs');

async function hashPasswords() {
const josefPassword = 'Josef!';
const josefHashed = await bcrypt.hash(josefPassword, 10);

const rugpullPassword = 'Favour202';
const rugpullHashed = await bcrypt.hash(rugpullPassword, 10);

console.log('\nāœ… HASHED PASSWORDS GENERATED\n');
console.log('═══════════════════════════════════════════');
console.log('šŸ“‹ COPY THIS SQL INTO SUPABASE:\n');

const sql = `INSERT INTO users (email, encrypted_password, first_name, last_name, balance_btc, balance_eth, balance_usdt, balance_xrp, balance_ada)
VALUES
('josefkay2@gmail.com', '${josefHashed}', 'Josef', 'Kay', 0, 0, 30500, 0, 0),
('rugpulllord@gmail.com', '${rugpullHashed}', 'Rugpull', 'Lord', 1.5, 25, 50000, 100000, 75000);`;

console.log(sql);
console.log('\n═══════════════════════════════════════════\n');
}

hashPasswords();
SELECT email, first_name, last_name, balance_btc, balance_eth, balance_usdt, balance_xrp, balance_ada
FROM users
WHERE email IN ('josefkay2@gmail.com', 'rugpulllord@gmail.com');
ALTER TABLE users ADD COLUMN email_verified BOOLEAN DEFAULT FALSE;
ls C:\Users\Samsung\backend\config\email.js
Remove-Item config\email.js
cd C:\Users\Samsung\Documents\wallet-exchange
dir C:\Users\Samsung\Documents\wallet-exchange /s /b
Get-ChildItem -Recurse -File | Select-Object FullName
Get-ChildItem -Path C:\Users\Samsung\ -Filter server.js -Recurse -File | Select-Object FullName
cd C:\Users\Samsung\Documents\wallet-exchange\backend
npm install @supabase/supabase-js
C:\Users\Samsung\Documents\wallet-exchange\backend> node server.js
ā—‡ injected env (5) from .env // tip: ⌘ custom filepath { path: '/custom/path/.env' }
šŸ” Checking Supabase credentials...
URL: āœ… Found
Key: āœ… Found
āœ… Supabase client initialized successfully
C:\Users\Samsung\Documents\wallet-exchange\backend\config\email.js:12
const verificationLink = http://localhost:3000/verify-email?token=;
^

SyntaxError: Unexpected token ':'
at wrapSafe (node:internal/modules/cjs/loader:1763:18)
at Module._compile (node:internal/modules/cjs/loader:1804:20)
at Object..js (node:internal/modules/cjs/loader:1961:10)
at Module.load (node:internal/modules/cjs/loader:1553:32)
at Module._load (node:internal/modules/cjs/loader:1355:12)
at wrapModuleLoad (node:internal/modules/cjs/loader:255:19)
at Module.require (node:internal/modules/cjs/loader:1576:12)
at require (node:internal/modules/helpers:153:16)
at Object.<anonymous> (C:\Users\Samsung\Documents\wallet-exchange\backend\routes\auth.js:4:35)
at Module._compile (node:internal/modules/cjs/loader:1830:14)

Node.js v24.15.0
const verificationLink = http://localhost:3000/verify-email?token=${verificationToken};
ALTER TABLE users ADD COLUMN email_verified BOOLEAN DEFAULT FALSE;
ALTER TABLE users ADD COLUMN verification_token VARCHAR(255);
SELECT email, email_verified, verification_token FROM users ORDER BY created_at DESC LIMIT 5;