Skip to content

Instantly share code, notes, and snippets.

@m4vr0x
m4vr0x / Network_Initialization_Failed
Created March 29, 2021 03:33
Parallels - Fix for "Network Initialization Failed"
1) Close Parallels completely
2) In Terminal, type : sudo nano /Library/Preferences/Parallels/network.desktop.xml (this will open the Terminal text editor "nano")
3) Type your admin password to access the file
4) Locate this line <usekextless>-1</usekextless> it could be also value 1 and replace whatever value there with 0, so you should have <usekextless>0</usekextless>
5) Press Ctrl+O to ask for a save, then Ctrl+X to close the editor
In Terminal, type : sudo nano /Library/Preferences/Parallels/dispatcher.desktop.xml
find <usb>0</usb> and change 0 to 1
again Press Ctrl+O to ask for a save, then Ctrl+X to close the editor
6) Close Terminal and open Parallels like normal, your VM should load like on Catalina and before
#cloud-config
ssh_authorized_keys:
# bMac
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCl8PmwbPbBu/6/aIXkCyg16ul5RikRAqzSNsHjnIbyFp1E8jBEds1Ff2shn9qr5Oku/8P+A9SSYOo17v9K5guHHew6AwNnGpfsi4tho+0nn26lyvN39k5VJGJnvMZUsRyV+hyP/+CHmO1mKAnQRKQDoaRc9fqwr/VQEx0Oj64yo6n2RE13MTiUakzpTqwGfokvjcnSppvy8nAd45rDoOoC8LCIE25JQUlg+TG6mouhMX1dN9liHzasn2MvE6O8pitcLe4sxhIbY2UMjEHTaJR6ybKzI9gYjAzASmQv8NTqa/StFEhJsU4IyrM0GYKndex/uKy0Ehsowvr1g/RAKNEt bMac
ffmpeg -i INPUT.mkv -c:v libx265 -preset ultrafast -x265-params lossless=1 OUTPUT.mkv
find deluge/sonarr/ -iname TV_Show*.mkv -exec mv {} @ToMux/Vids/ \;
find deluge/sonarr/ -iname TV_Show*.srt -exec mv {} @ToMux/Subs/ \;
find . -name "*.mkv" -ctime -1 -exec cp {} ../../../SyncBox/ \;
@m4vr0x
m4vr0x / nslookup.bat
Created May 23, 2018 05:54
Basic nslookup loop script for Windows
//nslookup - subnet range
c:\>for /L %i in (1,1,255) do @nslookup 10.10.10.%i [server to resolve from] 2>nul | find "Name" && echo 10.10.10.%i && @echo [ctrl+g]
//nslookup - file of ip's
NAME c:\>for /F %i in ([file.txt]) do @nslookup %i [server to resolve from] 2>nul | find "Name" && echo %i
ADDRESS c:\>for /F %i in ([file.txt]) do @nslookup %i [server to resolve from] 2>nul | find "Address" && echo %i
@m4vr0x
m4vr0x / nslookup.sh
Last active May 23, 2018 05:55 — forked from gfoss/nslookup loops
Basic nslookup loop script for Linux
#!/bin/sh
for IP in `cat ./ips.txt`
do
printf "$IP\t"
LOOKUP_RES=`nslookup $IP`
FAIL_COUNT=`echo $LOOKUP_RES | grep "** server can't find " | wc -l`;
if [ $FAIL_COUNT -eq 1 ]
then
NAME='Bad FQDNS\n';
else
@m4vr0x
m4vr0x / iptables.sh
Last active March 27, 2024 23:39
Proxmox iptables rules script
#!/bin/sh
# ---------
# VARIABLES
# ---------
## Proxmox bridge holding Public IP
PrxPubVBR="vmbr0"
## Proxmox bridge on VmWanNET (PFSense WAN side)
PrxVmWanVBR="vmbr1"
chmod 000 /usr/syno/sbin/synoindexd /usr/syno/sbin/synoindexscand /usr/syno/sbin/synoindexworkderd /usr/syno/sbin/synoindexplugind /usr/syno/sbin/synomediaparserd /usr/syno/bin/synothumb /usr/syno/bin/synomkflv /usr/syno/bin/synomkthumb
@m4vr0x
m4vr0x / Deluge_1.3.14.client
Created May 10, 2017 22:11
RatioMaster 1.9.1 - Deluge 1.3.14 client definition
<client name="Deluge 1.3.14" author="Vinz" version="1.0">
<query>info_hash={infohash}&amp;peer_id={peerid}&amp;port={port}&amp;uploaded={uploaded}&amp;downloaded={downloaded}&amp;left={left}{event}&amp;key={key}&amp;compact=1&amp;numwant={numwant}&amp;supportcrypto=1&amp;no_peer_id=1</query>
<headers>Host: {host}_nl_User-Agent: Deluge 1.3.14_nl_Connection: close_nl_Accept-Encoding: gzip_nl_</headers>
<peer_id prefix="-DE13E0-" type="printable" length="12" urlencoding="false" upperCase="false" value="" />
<key type="hex" length="8" urlencoding="false" upperCase="false" lowerCase="true" value=""/>
<protocol value="HTTP/1.1"/>
<hash upperCase="false"/>
<urlencoding exceptions="." />
</client>