Skip to content

Instantly share code, notes, and snippets.

View Spiikesan's full-sized avatar

Spiikesan Spiikesan

View GitHub Profile
@Spiikesan
Spiikesan / killFeedEvent.js
Last active January 22, 2022 17:28
KillFeed event generator using tail logs of Pavlov server.
Tail = require('tail').Tail
const net = require('net')
util = require('util');
const connectMessage = '{"ServerName":"' + process.argv[4] + '"}\n';
if (process.argv.length < 3) {
console.log("Usage: " + process.argv[1] + " <PavlovServerLogFile> <ServerListeningPort> <ServerName>");
process.exit(1);
}
@Spiikesan
Spiikesan / SleepSort.go
Last active April 16, 2019 21:58
Sort algorithm with no condition in golang.
package main
import (
"fmt"
"time"
)
func sleepSort(tab []int) ([]int) {
out := make([]int, len(tab))
waiter := make(chan int, len(tab))