Skip to content

Instantly share code, notes, and snippets.

View gu3st's full-sized avatar
🥃
Just gotta get through this week

Dustin Dawes gu3st

🥃
Just gotta get through this week
View GitHub Profile
@gu3st
gu3st / d2_summarize_enemy.py
Created September 26, 2018 17:40 — forked from nims11/d2_summarize_enemy.py
[Dota2] Helps you ban heroes by summarizing past games of the enemy
# Change the variables MY_ID and SERVER_FILE_PATH, and run this file
# The summary will be generated as soon as a game starts
import sys
import time
import os
import re
import requests
from multiprocessing import Pool
from watchdog.observers import Observer
from watchdog.events import FileSystemEventHandler
@gu3st
gu3st / helpful.js
Last active April 22, 2019 03:30
Helpful script!
#!/usr/bin/env node
const childProcess = require('child_process')
const warning = "THIS IS A LESSON. DON'T EXECUTE ARBITRARY SCRIPTS";
const open = (process.platform === 'linux' ? "xdg-open" : "open");
console.log(warning);
try{
childProcess.exec(`${open} "https://www.youtube.com/watch?v=dQw4w9WgXcQ"`);
if(process.platform === 'darwin') {
childProcess.exec(`osascript -e 'set Volume 50'`)
rofi usage:
rofi [-options ...]
Command line only options:
-no-config Do not load configuration, use default values.
-v,-version Print the version number and exit.
-dmenu Start in dmenu mode.
-display [string] X server to contact.
${DISPLAY}
-h,-help This help message.
@gu3st
gu3st / protest.js
Created May 10, 2019 20:09
Userscript to add a button to automatically submit an iRacing protest after a delay
// ==UserScript==
// @name Automatically submit protest after a delay
// @namespace st.gu3
// @match https://members.iracing.com/membersite/member/protest/file_protest.jsp
// @grant none
// ==/UserScript==
//
var script = document.createElement("script");
script.textContent = "(" + protestMagic.toString() + ")();";
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class QuakeLightFlicker : MonoBehaviour
{
public float maxLightIntensity = 2f;
public string flickerString = "mmamammmmammamamaaamammma";
public Light light;