Skip to content

Instantly share code, notes, and snippets.

Avatar
🦊

Vitaly Novichkov Wohlstand

🦊
View GitHub Profile
@Wohlstand
Wohlstand / vb6_to_cpp.html
Last active Oct 8, 2021
The code piece used by me in early process of SMBX to TheXTech porting
View vb6_to_cpp.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>VB6 to CPP</title>
<script type="text/javascript">
function replaceType(tpe)
{
tpe = tpe.trim();
@Wohlstand
Wohlstand / wohlstand's-policy.txt
Last active Sep 29, 2021
Privacy policy of WohlstandFox' Android applications
View wohlstand's-policy.txt
I don't collect any personal data at all,
I don't need them at all.
I do respect people's privacy and I don't
collect anything except anonymous debug logs
made by Google itself, and only these reports
people submit by themselves directly.
Most of my applications are fully standalone
and they don't require networking at all.
View keybase.md

Keybase proof

I hereby claim:

  • I am wohlstand on github.
  • I am wohlstandfox (https://keybase.io/wohlstandfox) on keybase.
  • I have a public key ASBzRSz-8e1YdiVlBDAeOx3SCeE3RpDlxYhtixUkW_k1tAo

To claim this, I am signing this object:

@Wohlstand
Wohlstand / winapi_get_process_by_pid.c
Created Sep 24, 2019
C WinAPI Example of PIDs retrieving by absolute executable file path matching
View winapi_get_process_by_pid.c
#include <windows.h>
#include <psapi.h>
#include <stdio.h>
#include <wchar.h>
#ifdef _WIN64
/* This call is available since Windows Vista. It's useless on 32-bit builds. */
typedef BOOL (*call_EnumProcessModulesEx)(HANDLE, HMODULE*, DWORD, LPDWORD, DWORD);
static call_EnumProcessModulesEx g_EnumProcessModulesEx = NULL;
View pge-forums-rules-en.bbcode
[i][Version 12-aug-2019][/i]
[b]Welcome to the PGE project forum![/b]
For the purpose of order/maintenance at this forum, we have the following rules:
[list][*] [u][b]FORUM REGISTRATION[/b][/u].
- Once you have registered an account on this forum, [b]your first post will be pre-moderated[/b] to avoid spam.
- It's recommended (but is not required) to make an introduction of yourself in [url=https://wohlsoft.ru/forum/viewforum.php?f=6]this section[/url] as your first post.
[*] [u][b]THIS FORUM IS INTERNATIONAL[/b][/u].
@Wohlstand
Wohlstand / ss5.service
Created Apr 12, 2018
Systemd script for SS5 Socks proxy
View ss5.service
[Unit]
Description=SS5 Socks Proxy
After=syslog.target network.target nss-lookup.target
[Service]
Type=forking
# The PID file is optional, but recommended in the manpage
# "so that systemd can identify the main process of the daemon"
PIDFile=/var/run/ss5.pid
ExecStart=/usr/sbin/ss5 -p /var/run/ss5.pid -u root -b 0.0.0.0:4781
@Wohlstand
Wohlstand / chmod-elfs.sh
Created Nov 10, 2017
Mark all ELF files as executable
View chmod-elfs.sh
#!/bin/bash
find . -exec file {} \; | grep -i ELF | cut -d':' -f1 | while read line; do chmod a+x $line; done
@Wohlstand
Wohlstand / merge_ts.php
Created Aug 14, 2017
Merge Qt Linguist TS files
View merge_ts.php
<?php
$tsSrc = "editor_en_old.ts";
$tsToMerge = "editor_en.ts";
$tsDst = "newts.ts";
$xmlOld = simplexml_load_file($tsSrc);
$xmlHoe = simplexml_load_file($tsToMerge);
@Wohlstand
Wohlstand / .astylerc
Created Dec 26, 2016
My artistic style config (All-man breckints style, keep empty lines, add space between operators, etc.)
View .astylerc
# ~/.astylerc
#
# Courtesy of HN's super_mario: http://news.ycombinator.com/item?id=5348401
#
# Use allman formatting style
--style=allman
--indent=spaces=4
--align-pointer=type
--align-reference=name
@Wohlstand
Wohlstand / ini2wiki.php
Created Aug 22, 2016
Converting music.ini pieces to Wiki-table
View ini2wiki.php
#!/bin/php
<?php
$ar = parse_ini_file("music.ini", true);
echo "{{StdItemTable|Level Music|Level music file-name|3=\n";
for($i=1;$i<=56; $i++)
{
echo "{{StdItemTable/row| $i | ".$ar["level-music-".$i]["file"]." | ".$ar["level-music-".$i]["name"]."| }}\n";