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 / 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 = "[email protected]"
$emailTo = "[email protected]"
$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
@FleXoft
FleXoft / linux_pv_vg_lv_mkfs
Created May 14, 2021 12:04
linux pv vg lv mkfs
pvcreate /dev/sdc1
vgcreate vtl-media /dev/sdc1
lvcreate -n lv_vtl-media vtl-media --size 1500G
mkfs.xfs -L vtl-media /dev/mapper/vtl--media-lv_vtl--media
cat /etc/fstab
@FleXoft
FleXoft / Db2 delete archive logs in every 10 minutes
Created April 30, 2021 09:38
Db2 delete archive logs in every 10 minutes
while :; do find /tsmarchlog/tsminst1/TSMDB1/NODE0000/LOGSTREAM0000/C0000001/ -name '*.LOG' -mmin +1 -exec echo "{}" \; -exec rm -rf {} \; ; date; echo "Sleeping..."; sleep 600; done
@FleXoft
FleXoft / X after sudo
Created March 11, 2021 09:34
X after sudo
xauth add $(xauth -f ~flex/.Xauthority list|tail -1)