Skip to content

Instantly share code, notes, and snippets.

View GermanAizek's full-sized avatar
:shipit:
No war, make The Wired.

Herman Semenoff GermanAizek

:shipit:
No war, make The Wired.
View GitHub Profile
#!/bin/bash
SERVER_PASSWORD=""
HUB_NAME=""
SHARED_KEY=""
USER=""
echo -n "Set Hub Name to create: "
read HUB_NAME
echo -n "Set VPN Username to create: "
read USER
@GermanAizek
GermanAizek / README.MD
Last active November 7, 2024 22:12
Crucial MX500 Linux Upgrade Firmware

My home server runs on two Crucial MX500 drives. I’d selected those drives because of the price/performance/reliability.

However, upgrading the firmware turned out to be nearly impossible. If you’re looking for an SSD for a Linux server, one thing I’d add to this selection matrix is to find a manufacturer that supports decent online firmware updates.

A small rant: Crucial’s upgrade process is notoriously difficult on Linux. The Windows firmware update can be done from Windows itself, but the provided Linux update only works via a bootable ISO that also requires legacy BIOS (and therefore no AHCI). Converting this to USB works poorly, on many attempts the kernel can’t find its own system disk, or can’t find the SSD hardware. The Internet is full with tutorials on this problem, and you’ll even find advise to [customize the bootloader] (http://pyropus.ca/personal/writings/crucial-m550-firmware-update.html). Given that a typical server takes 2 minutes to boot, the debugging cycle is slow; I spend a good 2 days

in main.cpp
#ifdef Q_OS_ANDROID
engine->rootContext()->setContextProperty("Back_Key", 0x01000061); // SAMSUNG S7
#else
engine->rootContext()->setContextProperty("Back_Key", 0x01000003);
#endif
in qml files
@GermanAizek
GermanAizek / README.md
Last active August 31, 2025 17:58
Openwrt - Extend disk space for apps

Instructions for expanding space for openwrt programs. In most cases, 2Gb will be enough. We will install the necessary packages for working with USB devices

root@OpenWrt:~# opkg update
root@OpenWrt:~# opkg install nano kmod-usb-core block-mount kmod-fs-ext4 kmod-usb-storage-extras e2fsprogs blkid

After install fdisk package

Hardware specs

Chinese Brand "ITworks" , Model TW891, distributed in France and Belgium by Darty

  • CPU: Intel(R) Atom(TM) CPU Z3735F @ 1.33GHz
  • Video: Intel® HD Graphics for Intel Atom® Processor Z3700 Series
  • Screen: 1280x800
  • WiFi + BT: Realtek RTL8723BS_BT
  • Disks: mmcblk1: mmc1:0001 DF4032 29.1 GiB
  • RAM: 2GB DDR3 @ 1333 MHz
@GermanAizek
GermanAizek / NETHUNTEROS.MD
Created August 12, 2022 15:26 — forked from binkybear/NETHUNTEROS.MD
Nethunter ROM on Nexus 5 & 6P with Nexmon (testing only)

Nethunter OS on Nexus 5/Nexus 6P

Here are instructions to install Nethunter (as a ROM) with working native monitor mode in the chroot using Nexmon. The ROM is a modified CM 14.1 (nougat) base with custom kernel which supports: HID, Drivedroid, Kexec, and external wireless.

What you need

You will need the following 3 items (maybe 4):

Nexus 5 Devices:

@GermanAizek
GermanAizek / cs16_spamchat_server.py
Created September 18, 2022 10:51
Attempt random steamid, client identify and hwid after write message chat cs 1.6 on Windows
import time, os, random, sys
from pywinauto.application import Application
from pywinauto.keyboard import send_keys
from pywinauto.mouse import click
import winreg, glob
from sha256 import *
def filebrowser(path, ext=""):
"Returns files with an extension"
return [f for f in glob.glob(path + "*{0}".format(ext))]
@GermanAizek
GermanAizek / hotkey.sh
Last active October 9, 2022 20:11
Shift + Alt IBus gsettings linux (Shift + Alt, Alt + Shift, Alt and Shift)
gsettings set org.freedesktop.ibus.general.hotkey triggers "['<Alt>Shift_L', '<Shift>Meta_L']"
@GermanAizek
GermanAizek / README.md
Created October 10, 2022 13:02
Разъем антенны для смартфона под крышкой или на плате

image

Вопрос:

  • Кто может определить, как называется этот разъем и где можно купить к нему папу\адаптер?

Ответ:

  • Такой разъем не только на самсунгах. Дома рассмотрел на всех телефонах, в т.ч. китайских. В СЦ используют для диагностики, да.
  • Есть в продаже в интернете и SMA-MS162 и SMA-MS156. Здесь явно указывают, что подключается оно к диагностическому разъему, и то, что легко можно сломать не тем коннектором.

Подробнее о порте MS-156HF тут:

@GermanAizek
GermanAizek / README.md
Last active May 17, 2024 00:41
Wine cannot find the FreeType font library. To enable Wine to use TrueType fonts please install a version of FreeType greater than or equal to 2.0.5.

Wine cannot find the FreeType font library. To enable Wine to use TrueType fonts please install a version of FreeType greater than or equal to 2.0.5.

Debian/Ubuntu/Linux Mint

For stable work Wine any disto needed 32 libs:

sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install libgnutls30:i386 libldap-2.4-2:i386 libgpg-error0:i386 libxml2:i386 libasound2-plugins:i386 libsdl2-2.0-0:i386 libfreetype6:i386 libdbus-1-3:i386 libsqlite3-0:i386