Skip to content

Instantly share code, notes, and snippets.

@sknv
sknv / roobet-crash.js
Created July 29, 2022 15:35
Roobet crash game source code
const crypto = require("crypto");
const crashHash = "";
// Hash from bitcoin block #610546. Public seed event: https://twitter.com/Roobet/status/1211800855223123968
const salt = "0000000000000000000fa3b65e43e4240d71762a5bf397d5304b2596d116859c";
function saltHash(hash) {
return crypto.createHmac("sha256", hash).update(salt).digest("hex");
}
package main
import (
"crypto/ecdsa"
"crypto/rand"
"crypto/sha256"
"encoding/hex"
"fmt"
"math/big"
@sknv
sknv / sessions.go
Created September 1, 2017 14:03
Gorilla sessions modified to use the standard context.
// Copyright 2012 The Gorilla Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package sessions
import (
"context"
"encoding/gob"
"fmt"
@sknv
sknv / clearance.ru.yml
Last active May 24, 2016 16:28
A russian translation for Clearance.
ru:
activerecord:
attributes:
user:
password: 'Пароль'
clearance:
models:
clearance_mailer:
change_password: Выбор нового пароля
clearance_mailer: