This opens an elevated Notepad process for editing the hosts
file on Windows.
- Open a run box with Win+R
- Enter the following:
powershell Start-Process -Verb RunAs notepad C:\Windows\system32\drivers\etc\hosts
This opens an elevated Notepad process for editing the hosts
file on Windows.
powershell Start-Process -Verb RunAs notepad C:\Windows\system32\drivers\etc\hosts
import subprocess | |
import sys | |
import os | |
glsl_extensions = {'v': '.vert', 'f': '.frag', 'g': '.geom'} | |
if len(sys.argv) != 2: | |
print("Usage: cg2glsl.py something.sha") | |
sys.exit(1) |
REM place this on your desktop and click whenever GPG agent dies | |
gpgconf --kill gpg-agent | |
gpg-connect-agent reloadagent /bye | |
pause |
# sudo su | |
# crontab -e | |
2 * * * * mkdir -p -m777 /tmp/cores && echo "/tmp/cores/core.%e.%p.%h.%t" > /proc/sys/kernel/core_pattern |
cd $env:TEMP | |
Invoke-WebRequest -Uri "https://aka.ms/vs/16/release/vs_buildtools.exe" -OutFile vs_buildtools.exe | |
vs_buildtools.exe --wait --norestart --nocache ` | |
--installPath C:\BuildTools ` | |
--add Microsoft.VisualStudio.Workload.MSBuildTools ` | |
--add Microsoft.VisualStudio.Workload.VCTools ` | |
--add Microsoft.VisualStudio.Component.TestTools.BuildTools ` | |
--add Microsoft.VisualStudio.Component.VC.CMake.Project ` | |
--add Microsoft.VisualStudio.Component.Windows10SDK.18362 ` |
credit https://github.com/DaanDeMeyer/reproc/blob/master/.github/workflows/vsenv.ps1
raw terminal:
echo ::set-env name=NAME::VALUE
apt install python ffmpeg | |
curl -L http://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl | |
chmod a+rx /usr/local/bin/youtube-dl | |
youtube-dl -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/bestvideo+bestaudio' --merge-output-format mp4 https://youtube.com/watch?v=fVLDxmjeyVo |
Recently, while setting up a personal MacOS VM using OSX-KVM, I came across an error trying to sign into the Mac App Store and iCloud saying "Validation Error. There was an error connecting to the Apple ID Server".
Many existing threads related to this issue, such as on the tonymacx86 forum, instruct you to make sure your ethernet device is on interface en0
, but this was already a thing for my Virtual Machine, so I had to look elsewhere.
Thankfully, "jwegman" from the Unraid forums has instructions for a fix.
Basically, you need to replace the model type vmxnet3
with e1000-82545em
, which makes Apple load a different Kext for intel ethernet devices.
<interface type='bridge'>
#!/usr/bin/env bash | |
if [ -z "$1" ] | |
then | |
echo "$0 client-name" | |
exit 1 | |
fi | |