curl -sL https://get.rke2.io | sh
systemctl daemon-reload
systemctl start rke2-server
Discover gists
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# NB this depends on devcon. you must install it from chocolatey with choco install -y devcon.portable | |
$devcon = "$ENV:ProgramData\Chocolatey\Lib\devcon.portable\Devcon$(if ($ENV:PROCESSOR_ARCHITECTURE -like '*64') {'64'} else {'32'}).exe" | |
Get-NetAdapter ` | |
| Where-Object {$_.Virtual} ` | |
| Where-Object {$_.DriverFileName -like 'VBox*.sys'} ` | |
| ForEach-Object { | |
Write-Host "Removing the $($_.InterfaceAlias) interface..." | |
$result = &$devcon remove "@$($_.PnPDeviceID)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ setlocal enableextensions | |
@ cd /d "%~dp0" | |
for /R %%a in (*.exe) do ( | |
netsh advfirewall firewall add rule name="Blocked with Batchfile %%a" dir=out program="%%a" action=block | |
) |
opcional - Yarn
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# CLI | |
sudo apt update -y | |
sudo apt install -y \ | |
git curl docker.io \ | |
build-essential pkg-config autoconf bison rustc cargo clang \ | |
libssl-dev libreadline-dev zlib1g-dev libyaml-dev libreadline-dev libncurses5-dev libffi-dev libgdbm-dev libjemalloc2 \ | |
libvips imagemagick libmagickwand-dev \ | |
redis-tools sqlite3 libsqlite3-0 libmysqlclient-dev \ | |
rbenv apache2-utils |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
python -c "import torch; print(torch.cuda.is_available())" |
NewerOlder