Skip to content

Instantly share code, notes, and snippets.

Avatar
:bowtie:
Not wearing a bowtie

Joar Wandborg joar

:bowtie:
Not wearing a bowtie
View GitHub Profile
View fcc-unlock.c
#include <dlfcn.h>
#include <syslog.h>
#include <stdio.h>
#include <unistd.h>
typedef struct FCC_OPS FCC_OPS;
typedef void *HDMOVERMBIMTOSARHANDLE;
typedef int BOOL;
View Minecraft.ahk
#SingleInstance, Force
#KeyHistory, 0
SetBatchLines, -1
ListLines, Off
;SendMode Input ; Forces Send and SendRaw to use SendInput buffering for speed.
; SetTitleMatchMode, 3 ; A window's title must exactly match WinTitle to be a match.
SetWorkingDir, %A_ScriptDir%
SplitPath, A_ScriptName, , , , thisscriptname
#MaxThreadsPerHotkey, 1 ; no re-entrant hotkey handling
; DetectHiddenWindows, On
View stadt-der-toten.reverse-engineered.ow
settings
{
main
{
Description: "READ ME! Call of Duty Zombies! Gain points by dealing damage and getting kills. Spend points on buyable items around the map. Don't worry about the timer, it'll reset once it hits 0. Controls: M&KB: Buy Item: Hold (Interact). Switch Hero: Tap (Interact). Controller: Buy Item: Hold (Reload). Switch Hero: Tap (Ultimate). Use Ultimate: Hold (Ultimate). Made by APM."
}
lobby
{
Map Rotation: Paused
@joar
joar / Eichenwalde Zombies.ow
Last active March 10, 2020 17:25
Overwatch Workshop mode: "COD Zombies" on eichenwalde
View Eichenwalde Zombies.ow
settings
{
lobby
{
Max Spectators: 12
Max Team 2 Players: 0
}
modes
{
View Zombies.ow
variables
{
global:
0: roundCount
1: roundKills
2: C_canBuyReinhardtIfMoreThan_3
3: bool_ShowConnectPower
4: arrSlot_PlayerDead
9: arrEntity_TeleporterActive
10: int_TeleporterPhase
View flask_middleware.py
import flask
from opencensus.ext.flask.flask_middleware import FlaskMiddleware
from opencensus.trace import utils, execution_context
from opencensus.trace.blank_span import BlankSpan
ATTR_REQUEST_BLACKLISTED = "request_blacklisted"
class FixedFlaskMiddleware(FlaskMiddleware):
def _before_request(self):
View lobby_stats.py
import json
import multiprocessing
import datetime as dt
import logging
import time
from queue import Empty
import pandas as pd
from colorama import Fore
import pydivert
View utils.sh
#!/usr/bin/env bash
# This section should be copied to any script that uses it.
# BEGIN UTILS
# Utility functions ⚠ Do not edit ⚠ Automatically inserted by scripts/utils.sh
# ==============================================================================
# Does not capture stdout, prints helpful info to stderr
function show_call_passthrough {
View devtools-mark-vendor-as-viewed.js
fileHeaders = Array.slice(document.querySelectorAll(".file-header"))
MARK_AS_VIEWED_FILENAME_REGEX = /vendor\//
CAREFULNESS = 300
if (typeof AUTO_VIEWED_INTERVAL_HANDLE !== "undefined") {
clearInterval(AUTO_VIEWED_INTERVAL_HANDLE)
}
AUTO_VIEWED_INTERVAL_HANDLE = setInterval(() => {
View deadlock_pipeline.py
import logging
import apache_beam as beam
from apache_beam.options.pipeline_options import PipelineOptions, SetupOptions
_log = logging.getLogger(__name__)
def main(argv=None):
logging.basicConfig(level=logging.INFO)