Skip to content

Instantly share code, notes, and snippets.

const wss = new ws.Server({ server: server });
_.broadcast = (data, room) => {
wss.clients.forEach(client => {
if (client.readyState === ws.OPEN) {
if (!room || client.room === room)
client.send(JSON.stringify(data), error => {
if (error) console.log(error);
});
}
@atomicbird
atomicbird / wwdc2019-online-sessions.md
Last active May 29, 2020 22:59
WWDC 2019 Online-only Sessions

At WWDC 2019 Apple released some videos directly online, with no corresponding live session. This is a list of those videos with links to the video pages.

Some sessions were presented during WWDC but then split into multiple videos when posted online. This list includes the online versions, since they don't appear in the WWDC schedule. For example WWDC included session 711, "Introducing Combine and Advances in Foundation". This was split into two online videos-- 722, "Introducing Combine", and 723, "Advances in Foundation". Both 722 and 723 are included here.

Usage:
single:
minecraft://?argument=value
or multiple:
minecraft://?argument=value&argument2=value2
@dktapps
dktapps / run.php
Last active February 15, 2023 04:52
A basic UDP proxy used to bypass client-side Xbox Live authentication in MCPE 1.2.
<?php
/*
*
* ____ _ _ __ __ _ __ __ ____
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
*
Name: Flash
Serial: eNrzzU/OLi0odswsqnHLSSzOqDGoca7JKCkpsNLXLy8v1ytJTczVLUotKNFLzs8FAJHYETc=
if anyone wants to thank ETH: 0x527c2aB55b744D6167dc981576318af96ed26676
Thank you!
@javajack
javajack / gist:04422d5a95d8e8dae1aa
Last active May 11, 2022 18:03 — forked from eogiles/gist:5718170
SOAP JAX WS Password Digest Nonce Date Created Handler generator
package sample;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.security.MessageDigest;
import java.security.SecureRandom;
import java.text.DateFormat;
import java.text.SimpleDateFormat;

How to generate a username for MCPE players

  1. For ?% chance, add the prefix xX and suffix Xx
  2. Choose a random item/mechanism/entity name from MCPE
  3. Choose a random word from the dictionary
  4. For ?% chance, choose a random from common given names
  5. For ?% chance, add the words girl or cute or cool or kid or boy
  6. For ?% chance, add the word MCPE
  7. For ?% chance, add the word Itz or Its
  8. For 99% chance, change all occurrences of s to z to make it sound like more professional/special while it isn't at all