Skip to content

Instantly share code, notes, and snippets.

@retendo
retendo / index.js
Created May 31, 2020 12:14
Supabase node.js proxy server
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')
@retendo
retendo / itc_create_sandbox_user.rb
Last active July 20, 2017 16:52
Script: Create iTunes Connect sandbox test user
#!/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