Skip to content

Instantly share code, notes, and snippets.

Viktor Oreshkin stek29

Block or report user

Report or block stek29

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View maze.py
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
View spiral.py
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 Mar 1, 2017
null created by stek291 - https://repl.it/GDHf/1
View GDHf-1.cpp
#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"\
View tl_master.py
# 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
SpeakToGo toys
View SpeakToGo.md

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.

View vk_no_cyrillic.php
<?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 Feb 27, 2018
Google Earth View wallpapers
View Google Earth WP.md

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
Frida Script to tweak PIP window alpha level on macOS
View pip-alpha.js
'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));
}
View listwindows.mm
// 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 Dec 30, 2019
UntetherHomeDepot offsets
View 0info.md

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.
You can’t perform that action at this time.