This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { Socket } = require('@supabase/realtime-js'); | |
const WebSocket = require('ws'); | |
const wss = new WebSocket.Server({ port: 3000 }); | |
wss.on('connection', function connection(ws) { | |
ws.send('Connection established.'); | |
}); | |
const socket = new Socket(process.env.REALTIME_URL || 'http://localhost:4000/socket') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
require 'spaceship' | |
def create_password | |
'Gist1234' | |
# ('A'..'Z').to_a[rand(26)] + rnd_str6 + ('0'..'9').to_a[rand(10)] | |
end | |
def rnd_str6 |