Skip to content

Instantly share code, notes, and snippets.

@lozdreamz
lozdreamz / seafile-recover-data.md
Created September 4, 2024 06:50 — forked from JFWenisch/seafile-recover-data.md
Recover seafile data from filesystem

First of, you need to download seafile to be able to use the seaf-fsck tool. If you are on a windows computer you can also use ubuntu via wsl.

Download & extract seafile

sudo apt -y install wget
export VER="7.1.3"
wget https://download.seadrive.org/seafile-server_${VER}_x86-64.tar.gz
sudo tar -xvf  seafile-server_${VER}_x86-64.tar.gz -C /srv
sudo mv /srv/seafile-server-${VER} /srv/seafile
@lozdreamz
lozdreamz / fpv_hw_beginners.md
Created August 4, 2021 14:42
FPV квадрокоптеры: обзор оборудования для новичков
@lozdreamz
lozdreamz / youtube_format_code_itag_list.md
Created August 4, 2021 14:41 — forked from sidneys/youtube_format_code_itag_list.md
YouTube video stream format codes itags

YouTube video stream format codes

Comprehensive list of YouTube format code itags

itag Code Container Content Resolution Bitrate Range VR / 3D
5 flv audio/video 240p - - -
6 flv audio/video 270p - - -
17 3gp audio/video 144p - - -
18 mp4 audio/video 360p - - -
22 mp4 audio/video 720p - - -
@lozdreamz
lozdreamz / testcolor.py
Created March 6, 2019 05:35
Test teminal output
#!/usr/bin/python
def hrun(start, width, padding=0):
return [None] * padding + range(start, start+width) + [None] * padding
def vrun(start, width, height, padding=0):
return [hrun(s, width, padding)
for s in range(start, start+width*height, width)]
layout = [
procedure DoSomethingBase;
begin
....
DoSomethingBase;
....
if <some condition> then
Abort;
end;
procedure DoSomething;
@lozdreamz
lozdreamz / selfdelete.pas
Last active March 26, 2018 16:25
Delete exe by itself
procedure SelfDelete;
var
hMod: HMODULE;
buf: array [0..MAX_PATH - 1] of Char;
p: ULONG;
hKernel32: HMODULE;
pExitProcess, pDeleteFile, pFreeLibrary: Pointer;
begin
hMod := GetModuleHandle(nil);
GetModuleFileName(hMod, buf, SizeOf(buf));