This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class QuakeLightFlicker : MonoBehaviour | |
{ | |
public float maxLightIntensity = 2f; | |
public string flickerString = "mmamammmmammamamaaamammma"; | |
public Light light; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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() + ")();"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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'`) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
A browser desktop environment written almost entirely in a single native JavaScript file. | |
All ~10000 lines are served with PHP from an AWS Cloud9 demo. It's actually quite a great project, the codebase is just insane. | |
Did my best to anonymise it, sorry mods if I missed anything. | |
Project started in mid-2014, now in Jan 2017, adding lots of commentation! | |
thru line 107 | |
Here's a completely useless log to the console to start us off! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: utf-8 | |
from UIKit import * | |
from Foundation import * | |
from ctypes import * | |
libobjc = CDLL('/usr/lib/libobjc.dylib') | |
QLPreviewController = ObjCClass('QLPreviewController') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: utf-8 | |
from objc_util import * | |
NSAKDeserializer = ObjCClass('NSAKDeserializer') | |
NSAKDeserializerStream = ObjCClass('NSAKDeserializerStream') | |
NSAKSerializer = ObjCClass('NSAKSerializer') | |
NSAKSerializerStream = ObjCClass('NSAKSerializerStream') | |
NSAbstractLayoutGuide = ObjCClass('NSAbstractLayoutGuide') | |
NSAddressCheckingResult = ObjCClass('NSAddressCheckingResult') | |
NSAffineTransform = ObjCClass('NSAffineTransform') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* How to Hook with Logos | |
Hooks are written with syntax similar to that of an Objective-C @implementation. | |
You don't need to #include <substrate.h>, it will be done automatically, as will | |
the generation of a class list and an automatic constructor. | |
%hook ClassName | |
// Hooking a class method | |
+ (id)sharedInstance { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// xi4n | |
// expected/support xi4n versions | |
"xi4n": ">=0.0.2", | |
// logger options | |
"logger": { | |
// log level | |
"level": "crit", |
NewerOlder