Skip to content

Instantly share code, notes, and snippets.

zilveer

Block or report user

Report or block zilveer

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View IPTV-big-list.m3u
#EXTM3U
#EXTINF:-1,TELEMUNDO
http://iphone-streaming.ustream.tv/ustreamVideo/21733416/streams/live/playlist.m3u8
#EXTINF:0,TELEMUNDO
http://iphone-streaming.ustream.tv/ustreamVideo/21733416/streams/live/playlist.m3u8
#EXTINF:-1,UNIVISION
http://iphone-streaming.ustream.tv/ustreamVideo/21680354/streams/live/playlist.m3u8
#EXTINF:0,UNIVISION 1
@zilveer
zilveer / jobserver.lua
Created Feb 4, 2020 — forked from rybakit/jobserver.lua
tarantool/queue config example
View jobserver.lua
queue = require('queue')
local function start(config)
box.once('jobserver:v0.1.0', function()
local tube = queue.create_tube('default', 'fifottl', {if_not_exists = true})
end)
end
local function stop()
end
View example-gun.user-id-problem-idea-fix.js
var bitHex = 8;
//idea is that when a pub key gets created, the user stores this int32 in its profile.
//then when you go to fetch the list of pubkeys, hash the key and also fetch the int32 from the profile
//compair the alias + int32 and show the user profile(s) to the requesting user for decision
//when user has decided save the pubkey and any other meta data you wish
var sha256_toint_test = "something like a publickey that has a reference of the output int32";
@zilveer
zilveer / IslandECN_Source_Code
Last active Jan 20, 2020
Island ECN 10th Birthday Source Code Release!
View IslandECN_Source_Code
SET TALK OFF
SET CURSOR OFF
SET SAFETY OFF
SET MEMOWIDTH TO 80
CLEAR ALL
CLOSE ALL
CLEAR
CLEAR MACRO && Get rid of F keys typing commands
SET HELP OFF && Needed to clear out F1 key too
@zilveer
zilveer / engine.c
Created Jan 19, 2020 — forked from druska/engine.c
Quant Cup 1's winning order book implementation
View engine.c
/*****************************************************************************
* QuantCup 1: Price-Time Matching Engine
*
* Submitted by: voyager
*
* Design Overview:
* In this implementation, the limit order book is represented using
* a flat linear array (pricePoints), indexed by the numeric price value.
* Each entry in this array corresponds to a specific price point and holds
* an instance of struct pricePoint. This data structure maintains a list
@zilveer
zilveer / gunjstrustsharekeyv2.js
Created Jan 17, 2020 — forked from Lightnet/gunjstrustsharekeyv2.js
add share key graph node for gunjs for more options
View gunjstrustsharekeyv2.js
/*
Self contain Sandbox Gun Module:
Created by: Lightnet
Credit: amark ( https://github.com/amark/gun)
License: MIT
View clientprototype.js
//===============================================
// CLEAR GUN DATABASE
localStorage.clear();
//(function() {
//===============================================
// INIT GUN DATABASE
let gunurl = window.location.origin+'/gun';
//console.log(gunurl);
var gun = Gun(gunurl);
gun.on('hi', peer => {//peer connect
View bitcoin-encrypt-decrypt-sign-verify.js
var crypto = require('crypto');
var bitcoin = require('bitcoinjs-lib')
var bitcoinMessage = require('bitcoinjs-message')
function doVerify() {
var wif;
@zilveer
zilveer / gunDBChangePassword.js
Created Dec 16, 2019
GunDB change password with PrivKey!
View gunDBChangePassword.js
const changePasswordWithPriv = this.changePasswordWithPriv = async (pub, priv, epriv, newPassword) => {
const id = `~${pub}`
const key = 'auth'
const salt = Gun.text.random(64)
const proof = await new Promise(res => SEA.work(newPassword, salt, res))
const encrypted = await new Promise(res => SEA.encrypt({ priv, epriv }, proof, res, {raw: 1 }))
const value = JSON.stringify({ek: encrypted, s: salt})
const signed = await SEA.sign(
{
"#": id,
You can’t perform that action at this time.