Skip to content

Instantly share code, notes, and snippets.

@smopro
smopro / seasonvar_howto.txt
Created February 9, 2021 03:07
Seasonvar parser
1. Открывает Dev Tools (F12 в большинстве браузеров).
2. Выбираем Network и начинаем записывать все запросы.
3. Находим нужную страницу с нужным сериалом и сезоном.
4. Открываем её, дожидаемся загрузки плеера.
5. Во вкладке Network ищем запрос: XXXXXXXX/list.xml?rand=XXXXXXX
6. ПКМ -> Copy URL
7. Открываем ссылку в новой вкладке, сохраняем файл.
8. Запускаем парсер: `node parser.js ПутьКСкачанномуФайлу`
9. После завершение работы парсера, рядом с скачанным файлом будет находиться файл с расширением .dwnl
10. Данный файл содержит прямые ссылки на медиафайлы с сериями.
@smopro
smopro / install_tools.sh
Created December 12, 2020 19:54 — forked from allenyllee/install_tools.sh
mount vhdx in linux
#!/bin/bash
# install qemu utils
sudo apt install qemu-utils
# install nbd client
sudo apt install nbd-client
@smopro
smopro / mount_qcow2.md
Created December 6, 2020 15:43 — forked from shamil/mount_qcow2.md
How to mount a qcow2 disk image

How to mount a qcow2 disk image

This is a quick guide to mounting a qcow2 disk images on your host server. This is useful to reset passwords, edit files, or recover something without the virtual machine running.

Step 1 - Enable NBD on the Host

modprobe nbd max_part=8
#!/usr/bin/ruby
#
# This tool is only used to "decrypt" the github enterprise source code.
#
# Run in the /data directory of the instance.
require "zlib"
require "byebug"
KEY = "This obfuscation is intended to discourage GitHub Enterprise customers "+
@smopro
smopro / openwrt-qemu.md
Created September 27, 2020 17:43 — forked from extremecoders-re/openwrt-qemu.md
Running OpenWRT ARM under QEMU

Environment

The steps shown below are done on a Ubuntu VM using Qemu 3.0

$ qemu-system-arm -version
QEMU emulator version 3.0.0
Copyright (c) 2003-2017 Fabrice Bellard and the QEMU Project developers

To quit Qemu at any time press Ctrl+a x, i.e. Ctrl+a and then x