Skip to content

Instantly share code, notes, and snippets.

from enum import Enum
class CellState(Enum):
non_visited, block, visited, last_cell = range(4)
def __repr__(self):
return self.name[0].upper()
class Done(Exception):
pass
from __future__ import print_function
if 3/2 == 1:
input = raw_input
range = xrange
pretty_print = True
N = int(input())
@stek29
stek29 / GDHf-1.cpp
Last active March 1, 2017 19:40
null created by stek291 - https://repl.it/GDHf/1
#include <iostream>
#include <string>
using namespace std;
int main(void) {
cout <<
"#include <iostream>\n"\
"#include <string>\n"\
"using namespace std;\n"\
"template < size_t N > struct Q { \n"\
# for json
import json
from collections import OrderedDict
# for tl
import re
import struct
import binascii
__all__ = [
@stek29
stek29 / SpeakToGo.md
Last active May 2, 2017 13:07
SpeakToGo toys

remote-control.js and node-server.js

  • npm install websocket, node node-server.js
  • Open your-pc-ip:8980 on mobile phone (lock portrait orientation on it).
  • Paste remote-control.js to Console
  • Tilt to look around, tap to click in center

pure-luck.js

I'm feeling lucky just picks location from 55 hardcoded ones. But with this it would pick random coords, and open them, when you say I'm feeling so lucky.

<?php
if (!isset($_REQUEST)) {
return;
}
class ConfigSomeGroup {
public function shouldDelete($object) {
/* delete cyrillic text */
$comment_text = $object->text;
@stek29
stek29 / Google Earth WP.md
Last active April 18, 2021 20:13
Google Earth View wallpapers

Downloads all wallpapers from https://g.co/ev and annotates them with nice and clean link (like g.co/ev/1207)

imageIds.json were taken from imageIds.js from Google Chrome Extension json_to_img.py takes path to imageIds.json as first argument and downloads all images in it annotate.sh annotates $1

also see launcher.sh for example

@stek29
stek29 / pip-alpha.js
Created May 4, 2017 03:21
Frida Script to tweak PIP window alpha level on macOS
'use strict';
const getExport = function (module, name) {
const addr = Module.findExportByName(module, name);
if (!addr) throw ("Can't find export " + name);
else return addr;
}
const getCGFunction = function (name, returnType, argTypes) {
return (new NativeFunction(getExport('CoreGraphics', name), returnType, argTypes));
}
// Very simple program to print all windows
// Obviously needs `-framework CoreGraphics -framework Foundation`
#import "CoreGraphics/CoreGraphics.h"
#import "Foundation/Foundation.h"
int main(void) {
NSArray *arr = [(NSArray *) CGWindowListCopyWindowInfo(kCGWindowListOptionAll, kCGNullWindowID) copy];
NSLog(@"%@", arr);
return 0;
}
@stek29
stek29 / 0info.md
Last active January 22, 2024 22:06
UntetherHomeDepot offsets

Update

I was tired of waiting so I've just crawled kernelcaches for all avaliable devices and made one big offsets.json containing all offsets. However, they are untested. They *should* work, but refer to table below if you're afraid of bootloops.


MESSAGE TO jk9357 OR WHOEVER IS MAINTAINING WALL.SUPPLIES

Some offsets are wrong/missing on wall.supplies.