Skip to content

Instantly share code, notes, and snippets.

View ajohnsen's full-sized avatar

Amund Johnsen ajohnsen

View GitHub Profile
# to run: docker-compose run
#
# Create a .evn file in the same folder as this file and change the variables.
# MOUNT_POINT=/tmp/
# VPN_PROVIDER=changeme
# VPN_CONFIG=changeme
# VPN_USERNAME=changeme
# VPN_PASSWORD=changeme
#
#
// Little code to update every players VAC status on headshotbox
function getData(offset) {
console.log("Fetching new data, offset: " + offset);
$.ajax("http://" + window.location.host + "/api/players?limit=100&offset=" + offset).done(
function(data) {
if (data.player_count > offset) {
var players = data.players.map(
function(p) {
return p.steamid;