Skip to content

Instantly share code, notes, and snippets.

Erik Bročko ericek111

Block or report user

Report or block ericek111

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 keybase.md

Keybase proof

I hereby claim:

  • I am ericek111 on github.
  • I am ericek111 (https://keybase.io/ericek111) on keybase.
  • I have a public key whose fingerprint is F94A DF63 B3B2 0183 A719 ACA7 F850 D032 0BA8 02C9

To claim this, I am signing this object:

@ericek111
ericek111 / hl_activity.js
Created Oct 20, 2018
HLstatsX activity (sessions) total connection time calculator
View hl_activity.js
javascript: (function(e, s) {
e.src = s;
e.onload = function() {
jQuery.noConflict();
$ = jQuery;
doStuff();
};
document.head.appendChild(e);
})(document.createElement('script'), '//code.jquery.com/jquery-latest.min.js')
@ericek111
ericek111 / steamid.pl
Last active Oct 20, 2018
Perl SteamID64 parser
View steamid.pl
#!/usr/bin/perl
use bigint;
die "Usage: $0 (steamID64)\n" if @ARGV < 1;
# https://developer.valvesoftware.com/wiki/SteamID
my $sid = @ARGV[0];
my $up = ($sid >> 32) & (2**32 - 1);
@ericek111
ericek111 / first.nut
Last active Aug 31, 2018
[Squirrel] CS:GO CHIP-8 emulator
View first.nut
// ent_fire first_script runscriptfile first_map/first.nut;ent_fire first_script callscriptfunction ButtonPressed
// http://devernay.free.fr/hacks/chip8/C8TECH10.HTM
::toHex <- function (val) {
return format("%04X", val);
}
DoIncludeScript("first_map/data.nut", this)
class CPU {
scope = null;
stack = null;
@ericek111
ericek111 / index2.html
Created May 18, 2018
CS:GO Bhop Detector 3000
View index2.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<script src="./browser/bundle.js"></script>
</head>
<body>
@ericek111
ericek111 / linked_list.c
Last active Mar 12, 2018
[C] Double linked list
View linked_list.c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/* Linked list entry */
typedef struct llEntry {
struct llEntry* prev;
struct llEntry* next;
void* data;
} llEntry;
@ericek111
ericek111 / median.c
Last active Nov 13, 2017
Find average of random numbers in array
View median.c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
int find_median(int* arr, size_t count);
size_t median_count(int* arr, size_t count, int median);
int find_median(int* arr, size_t count) {
int sum = 0;
@ericek111
ericek111 / record.sh
Last active Sep 12, 2017
LiveATC archive
View record.sh
#!/bin/bash
# https://gist.github.com/ericek111/7463aa1c2367683e51578789767a583a
# Check if SOX is installed
if ! hash "${SOX:-sox}" 2>/dev/null; then
echo "ERROR: SOX was not found in path ${SOX:-sox}"
echo "Run: sudo apt-get install sox libsox-fmt-mp3"
exit 1
fi
View xoverlay.cpp
#include <iostream>
#include <stdlib.h>
#include <climits>
#include <chrono>
#include <X11/Xos.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <X11/Xatom.h>
#include <X11/extensions/shape.h>
#include <X11/extensions/Xcomposite.h>
You can’t perform that action at this time.