Skip to content

Instantly share code, notes, and snippets.

View anegrin's full-sized avatar

alessandro negrin anegrin

View GitHub Profile
@anegrin
anegrin / ffmpeg_m4a_2_flac.md
Created March 27, 2021 08:53
ffmpeg m4a to flac

linux:

for file in *.m4a; do fname=$(basename "$file" .m4a); ffmpeg -i "$file" "$fname".flac; done

windows:

for %a in (*.m4a) do "c:\Program Files\ffmpeg\bin\ffmpeg" -i "%a" "%~na.flac" && del "%a"

@anegrin
anegrin / remove-NetworkList-Profiles-duplicates.vbs
Created September 19, 2016 15:55
vbs script to remove windows 10 network profiles duplicates (i.e. Network 2, Network 3 etc.); run as administrator at your own risk; make a backup of HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkList\Profiles\ before proceeding
Const HKEY_LOCAL_MACHINE = &H80000002
Set WSHShell = CreateObject("WScript.Shell")
Set oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\.\root\default:StdRegProv")
strKeyPath = "SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkList\Profiles"
oReg.EnumKey HKEY_LOCAL_MACHINE, strKeyPath, arrSubKeys
For Each subkey In arrSubKeys
@anegrin
anegrin / genymotionwithplay.txt
Created July 14, 2016 10:43 — forked from wbroek/genymotionwithplay.txt
Genymotion with Google Play Services
Download the following ZIPs:
ARM Translation Installer v1.1 (http://www.mirrorcreator.com/files/0ZIO8PME/Genymotion-ARM-Translation_v1.1.zip_links)
Download the correct GApps for your Android version:
Google Apps for Android 6.0 (https://www.androidfilehost.com/?fid=24052804347835438 - benzo-gapps-M-20151011-signed-chroma-r3.zip)
Google Apps for Android 5.1 (https://www.androidfilehost.com/?fid=96042739161891406 - gapps-L-4-21-15.zip)
Google Apps for Android 5.0 (https://www.androidfilehost.com/?fid=95784891001614559 - gapps-lp-20141109-signed.zip)
Google Apps for Android 4.4.4 (https://www.androidfilehost.com/?fid=23501681358544845 - gapps-kk-20140606-signed.zip)
Google Apps for Android 4.3 (https://www.androidfilehost.com/?fid=23060877490000124 - gapps-jb-20130813-signed.zip)