Skip to content

Instantly share code, notes, and snippets.

View FleXoft's full-sized avatar
😃

FLEISCHMANN György, _flex, Gyurci, FleXoft FleXoft

😃
View GitHub Profile
@FleXoft
FleXoft / LLDP
Last active April 15, 2026 13:11
LLDP
tcpdump -nn -v -xx -i ent1 -s 1500 -c 1 'ether dst 01:00:0c:cc:cc:cc and (ether[24:2] = 0x2000 or ether[20:2] = 0x2000)'
@FleXoft
FleXoft / big-endian_testing.c
Last active April 3, 2026 15:43
big-endian_testing.c
#include <stdint.h>
#include <stdio.h>
int main(void)
{
uint32_t x = 0x12345678;
int i;
for (i = 0; i < sizeof(x); i++) {
printf("mem[%d] = 0x%02x\n", i, ((char*)&x)[i]);
@FleXoft
FleXoft / gallery_generator.py
Created March 18, 2026 08:27
My Python3 gallery generator
@FleXoft
FleXoft / vh.sh
Created June 10, 2023 05:54
vh.sh
#!/bin/bash
export SYNOPKG_PKGDEST=/volume1/\@appstore/VirtualHere/
/var/packages/VirtualHere/scripts/start-stop-status stop; echo $?
> /var/log/virtualhere.log
rm /volume1/@appstore/VirtualHere/config.ini
/var/packages/VirtualHere/scripts/start-stop-status start; echo $?
@FleXoft
FleXoft / Install gnuradio on macOS
Created April 6, 2023 17:09
Install gnuradio on macOS
brew uninstall gdk-pixbuf librsvg adwaita-icon-theme cppzmq fftw gsl atk gsettings-desktop-schemas hicolor-icon-theme libepoxy gtk+3 berkeley-db aften jack log4cpp portaudio py3cairo pygobject3 qt@5 pyqt@5 pyyaml qwt-qt5 soapysdr soapyrtlsdr fmt spdlog uhd orc cpu_features volk
@FleXoft
FleXoft / github username search
Last active March 22, 2023 16:43
github username search
import soco
from soco import SoCo
speaker_list = list(soco.discovery.scan_network())
speaker_list[0].player_name
speaker_list[0].mute
speaker_list[0].mute()
speaker_list[0]
my_zone = SoCo('192.168.0.2')
@FleXoft
FleXoft / Microsoft Autoupdate in MacOS v4.xx Update Error
Last active November 25, 2021 19:38
Microsoft Autoupdate in MacOS v4.xx Update Error (Updates are temporarily unavailable.)
/bin/launchctl stop /Library/LaunchAgents/com.microsoft.update.agent.plist
/bin/launchctl unload -w /Library/LaunchAgents/com.microsoft.update.agent.plist
/bin/launchctl load -w /Library/LaunchAgents/com.microsoft.update.agent.plist
@FleXoft
FleXoft / PowerShell SMTP sender
Created July 27, 2021 12:29
PowerShell SMTP sender
$emailSmtpServer = "smtp.xxxx.hu"
$emailSmtpServerPort = "25"
$emailSmtpUser = ""
$emailSmtpPass = ""
$emailFrom = "HpOneTouch-Teszt@xxxx.hu"
$emailTo = "gyorgy.fleischmann@fnxs.hu"
$emailcc="CC"
$emailMessage = New-Object System.Net.Mail.MailMessage( $emailFrom , $emailTo )
@FleXoft
FleXoft / Linux increase root xfs partition size
Created July 6, 2021 07:36
Linux increase root xfs partition size
# Base source: https://www.miarec.com/doc/administration-guide/doc1012
fdisk /dev/sda
poweroff
increase disk size at VMware side
fdisk /dev/sda
n
p