Skip to content

Instantly share code, notes, and snippets.

Run powershell as administrator:
-posh-gvm installation:
Execute (new-object Net.WebClient).DownloadString('https://raw.githubusercontent.com/flofreud/posh-gvm/master/GetPoshGvm.ps1') | iex
Execute Import-Module posh-gvm
// if you have problems with execution policy (https://msdn.microsoft.com/powershell/reference/5.1/Microsoft.PowerShell.Core/about/about_Execution_Policies)
// Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
// later return to old value
Execute gvm help to get started!
-sdkman installation:
@qwfys
qwfys / macos_on_ubuntu.md
Created July 5, 2020 17:38 — forked from tieubao/macos_on_ubuntu.md
Install macOS in a VirtualBox machine on Ubuntu

Important: I'm writing this when the last version of macOS (and the one I have installed) is Mojave. There is already a script which installs Mojave in a virtual machine here https://github.com/img2tab/okiomov. But if you are curios how to do everything manually to install High Sierra, then this guide may be useful.

After reading a few articles I ended up with these steps:

  1. On macOS, download the High Sierra installer (even if you have Mojave installed): https://itunes.apple.com/us/app/macos-high-sierra/id1246284741?ls=1&mt=12
  2. If the High Sierra Installer starts, quit it.
  3. Open "Disk Utility".
  4. Click on "File" > "New Image" > "Blank image...". Or just press cmd+N.
@qwfys
qwfys / 202005282158.md
Last active May 28, 2020 14:01
Linux mint 19.3 apt list
deb http://mirrors.aliyun.com/ubuntu bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu bionic-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu/ bionic partner
@qwfys
qwfys / 202005281327.md
Last active May 1, 2024 04:24
国内拉取google kubernetes镜像
echo "192.168.121.9 centos-master
192.168.121.65 centos-minion" >> /etc/hosts
@qwfys
qwfys / virt-install
Created November 27, 2019 08:13 — forked from smurugap/virt-install
Virt Install to start a VM with macvtap interface
virt-install \
--name=centos-compute-$i \
--ram=32768 \
--vcpus=16 \
--cpu host-model-only \
--os-type linux \
--os-variant centos7.0 \
--import \
--disk path=/var/lib/libvirt/images/centos74-compute-$i.qcow2,bus=virtio,cache=none,format=qcow2,bus=virtio \
--network type=direct,source=enp6s0f0,source_mode=bridge,model=virtio \