Skip to content

Instantly share code, notes, and snippets.


Viktor Oreshkin stek29

  • None
  • Moscow, Russia
View GitHub Profile
View StartupDisk.applescript
do shell script "diskutil mount disk0s3"
tell application "System Events"
tell application "System Preferences"
set current pane to pane id ""
end tell
tell application process "System Preferences"
delay 0.3
stek29 /
Last active Nov 29, 2021
fix webOS ca certificates for DST Root X3 expiry (on rooted TVs)


  • Downgrade to rootable version
  • Root via
  • Install

Tested on webOS 4.5, should at least on webOS 3.5+


curl -qs "$(date +%s)" | sh -
stek29 / quine.swift
Created Oct 6, 2021
simple Quine program ¯\_(ツ)_/¯
View quine.swift
func quine() {
var s = """
func quine() {
var s = MEGIC
let slash = "\\\\"
let s1 = "\\n "
let s2 = "\\"\\"\\""
var sInd = s.replacingOccurrences(of: "\\n", with: s1)
sInd = sInd.replacingOccurrences(of: slash, with: slash + slash)
sInd = s2 + s1 + sInd + s1 + s2
stek29 / kpms.nginx
Last active Oct 6, 2021
kpms msx http based api hack for older webOS devices - for LE root cert expiry workaround
View kpms.nginx
server {
listen 80;
server_name kp.local;
location = /msx/start.json {
proxy_http_version 1.1;
proxy_set_header Host "";
stek29 / vacuum_manual_control.html
Created Aug 12, 2021
Valetudo manual control frontend
View vacuum_manual_control.html
<!DOCTYPE html>
<html lang="en">
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<title>Manual Control</title>
stek29 /
Last active Aug 12, 2021
miot vacuum remote control with JS Gamepad API with analog input

start py server, open web in browser

stek29 /
Last active Nov 20, 2021
Root Dreame Robot without via uart only

These are just my notes, and described process worked for me on my 1C robot
If anything goes wrong, having USB adapter for FEL flashing might be the only way to restore your robot
this is not an official guide
oh, and I'm not responsible for any damage blah blah
and huge thanks to Dennis and Hypfer, and everyone behind this root :)

0. get uboot shell

to enter uboot shell on 1C you have to: 0. turn robot off normally

  1. hook up uart, open console
stek29 /
Last active Jun 15, 2021
multiple copies of beatsaber app on quest

Here's how you can have multiple versions of beat saber at the same time by having different package names.
Unfortunately, BMBF is hardcoded to use original BeatSaber package id, so it's not possible to have completely unmodded version with BMBF modded version.
If BMBF starts using this method, it would be possible to have unmodded beat saber from oculus store with multiplayer support and modded BMBF version.

I made this because BMBF modded version used to crash time to time, and I prefer to have choice between stable game and custom songs.

You'd need apktool, zipalign, apksigner – I'm on mac, so I've installed apktool from brew and used Docker for other tools: fopina/dedroid.

Grab the APK

stek29 / extract_telegram_macos.ipynb
Created May 8, 2021
Extract Telegram messages from db_sqlite PostBox – made for Telegram for macOS, but should work with Telegram for iOS
View extract_telegram_macos.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
stek29 /
Created Apr 27, 2020
Crawl communigate mail
#!/usr/bin/env zsh
# zsh because bash cant handle {$a..$b} expansion
# Directories to crawl
# ID range to try