Skip to content

Instantly share code, notes, and snippets.

View VityaSchel's full-sized avatar
🕶️
svelting

Viktor Shchelochkov VityaSchel

🕶️
svelting
View GitHub Profile
@VityaSchel
VityaSchel / at-dead-of-night-js-player.html
Created October 13, 2024 19:40
Based on window.vids. To run: place Hotel.m4v near this html file and start simple http server that hosts both of these files.
<html>
<head>
<title>Navigation test</title>
<script src="./data.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/lodash.min.js"></script>
<style>
body {
margin: 0;
padding: 0;
}
@VityaSchel
VityaSchel / tapochek-net-scraper.js
Created October 3, 2024 05:10
Tapochek.net HTML scraper that gets topics
// OPEN https://tapochek.net/viewforum.php?f=910&start=0 FIRST
// THEN RUN THIS SCRIPT:
async function start() {
const result = []
async function parsePage(url) {
const response = await fetch(url)
if (!response.ok) {
@VityaSchel
VityaSchel / unity-ui-kit.html
Last active October 2, 2024 01:19
Unity 2017 button, checkbox and button group with tailwind
<div class="flex flex-col items-start gap-8 p-8">
<!-- Checkbox -->
<div class="flex items-center gap-1.5">
<div class="relative">
<input type="checkbox" class="peer absolute z-[10] h-[12px] w-[12px] opacity-0" id="my_checkbox_1" />
<div class="h-[12px] w-[12px] rounded-[2px] bg-gradient-to-b from-[#808080] to-[#434343] p-px shadow-[0px_1px_1px_1px_#2B2B2B] peer-active:from-[#6B6B6B] peer-active:to-[#5E5E5E]"></div>
<div class="top-px left-px absolute z-[5] h-[10px] w-[10px] bg-gradient-to-b from-[#606060] to-[#3D3D3D] peer-active:from-[#525252] peer-active:to-[#5C5C5C]"></div>
<img src="data:image/svg+xml,%3Csvg width='28' height='28' viewBox='0 0 28 28' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cline x1='8.06066' y1='13.9393' x2='14.0607' y2='19.9393' stroke='white' stroke-width='3'/%3E%3Cline x1='11.9765' y1='19.9034' x2='26.9765' y2='5.90342' stroke='white' stroke-width='3'/%3E%3C/svg%3E" width="14" height="14" class="absolute -top-px -left-px hidden h-[14px] min-h
@VityaSchel
VityaSchel / run-this-with-bun-sh.ts
Last active July 2, 2024 22:45
Брутфорс кодового слова на zp.midpass.ru Запуск: bun run-this-with-bun-sh.ts
import crypto from 'node:crypto'
// вместо 4 подставьте предполагаемую длину пароля
const passwordLength = 4
// подставьте строку из localStorage -> DecryptTestMessage
const encryptedText = 'U2FsdGVkX19qOI7LCQdLXzD9HpujeJl7mNCrTNMrVzqWCKd7IcjTdg=='
function decrypt(password: Buffer) {
let bytes = Buffer.concat([password, salt])
@VityaSchel
VityaSchel / teachers.js
Last active May 20, 2024 14:37
Парсер сайта колледжа связи https://ks.psuti.ru/ и https://lk.ks.psuti.ru/
if(window.location.href !== 'https://ks.psuti.ru/about/teachers.html') throw new Error('Перейдите на страницу https://ks.psuti.ru/about/teachers.html')
const table = document.querySelector('form[action="https://ks.psuti.ru/about/teachers.html"')
const limitField = table.querySelector('select[name="limit"]')
if(limitField.options[limitField.selectedIndex].text !== 'Все') throw new Error('Выберете "Все" в "Количество строк"')
const teachers = Array.from(table.querySelectorAll('tbody > tr > td:last-child > a')).slice(1)
const getTeacherInfo = (url) => {
@VityaSchel
VityaSchel / macos-widget-to-ring-samsung-phones.md
Last active September 29, 2023 17:46
MacOS widget to ring samsung phones, reverse engineering samsung's smartthings find

hello gays

today we have a list of things to do to develop a widget for macos to ring samsung phones like on smartthings find

since no one developed it yet and I don't want to do that I'm just gonna leave it there for anyone and wait for anyone to develop it or tell me it exists

UPDATE: I actually was so bored I developed and published it: https://github.com/VityaSchel/samsung-pinger

number 1

@VityaSchel
VityaSchel / preview.md
Last active August 29, 2023 06:29
Show all IDs on screen in At Dead of Night or any other webpage (oneliner)
We couldn’t find that file to show.
@VityaSchel
VityaSchel / README.md
Created August 22, 2023 20:20
Люди о войне

Скрипт для получения списков с сайта https://human-nonhuman.info/

Получите два списка: humans и nonhumans

@VityaSchel
VityaSchel / README.md
Created May 13, 2023 17:15
Reset Steam achievements on MacOS without SAM

This took me a while to figure out, so here's all you need to know:

  1. To clear achievement we'll use Steam's client secret console and achievement_clear command
  2. You will need game id (number) and achievement id (string) in order to lock this particular achievement
  3. Since there is no "clear all achievements" command, we will use keyboard simulation to paste a long list of commands to steam console

How to do?

  1. Go to https://steamdb.info/ and find your game (I will use Terraria), then go to https://steamdb.info/app/105600/stats/ and find a table of achievements
  2. Scrap all achievements codes from 1st column into text array. You can use my script, just paste into browser console on steamdb page:
@VityaSchel
VityaSchel / index.html
Created April 30, 2023 20:13
Sucklabs browser matrix generator
<!DOCTYPE html>
<html lang="ru" dir="ltr">
<head>
<meta charset="utf-8">
<title>Sucklabs browser matrix generator</title>
</head>
<body>
<form id='form' style='display: flex; flex-direction: column; width: 182px;'>
<textarea name="name" rows="8" cols="10" id='text'>chrome: 95 windows 11, 95 windows 10, 95 windows8 8.1, 95 mac 11.4, 95 linux *, 94 windows 11, 94 windows 10, 94 windows8 8.1, 94 mac 11.4, 94 linux *, 93 windows 11, 93 windows 10, 93 windows8 8.1, 93 mac 11.4, 93 linux *, 93 android 11, 93 android 10
opera: 80 windows 11, 80 windows 10, 80 windows8 8.1, 80 windows8 8, 80 mac 11.4, 80 linux *, 63 android 11, 63 android 10