lscpu | grep -i Virtualization
VT-x
for IntelAMD-Vi
for AMD
# | |
# Automatically generated file; DO NOT EDIT. | |
# Linux/x86 6.1.0-rc6 Kernel Configuration | |
# | |
CONFIG_CC_VERSION_TEXT="gcc (Debian 12.2.0-9) 12.2.0" | |
CONFIG_CC_IS_GCC=y | |
CONFIG_GCC_VERSION=120200 | |
CONFIG_CLANG_VERSION=0 | |
CONFIG_AS_IS_GNU=y | |
CONFIG_AS_VERSION=23900 |
# | |
# Automatically generated file; DO NOT EDIT. | |
# Linux/x86 5.15.62.1 Kernel Configuration | |
# | |
CONFIG_CC_VERSION_TEXT="gcc (Debian 12.2.0-1) 12.2.0" | |
CONFIG_CC_IS_GCC=y | |
CONFIG_GCC_VERSION=120200 | |
CONFIG_CLANG_VERSION=0 | |
CONFIG_AS_IS_GNU=y | |
CONFIG_AS_VERSION=23890 |
# | |
# Automatically generated file; DO NOT EDIT. | |
# Linux/x86 5.10.60.1 Kernel Configuration | |
# | |
CONFIG_CC_VERSION_TEXT="gcc (Debian 11.2.0-9) 11.2.0" | |
CONFIG_CC_IS_GCC=y | |
CONFIG_GCC_VERSION=110200 | |
CONFIG_LD_VERSION=236010000 | |
CONFIG_CLANG_VERSION=0 | |
CONFIG_LLD_VERSION=0 |
Lima (Linux virtual machines, on macOS) installation guide for M1 Mac.
Sep. 27th 2021 UPDATED
Now we can install patched version of QEMU via Homebrew (thank you everyone for the info!). Here is the updated instruction with it:
Used M1 Mac mini 2020 with macOS Big Sur Version 11.6.
mines ubuntu 20.04 based, WSL2 | |
in windows | |
wsl --list -v | |
* Ubuntu-20.04 Stopped 2 | |
in wsl | |
# the old update routine | |
sudo apt-get update -y | |
# add tools to build kernel, apologies if i missed anything as i already have a bunch of dev stuff setup | |
sudo apt-get install -y autoconf bison build-essential flex libelf-dev libncurses-dev libssl-dev libtool libudev-dev |
This is a cheat sheet for how to perform various actions to ZSH, which can be tricky to find on the web as the syntax is not intuitive and it is generally not very well-documented.
Description | Syntax |
---|---|
Get the length of a string | ${#VARNAME} |
Get a single character | ${VARNAME[index]} |
# token.pickle stores the user's credentials from previously successful logins | |
if os.path.exists('token.pickle'): | |
print('Loading Credentials From File...') | |
with open('token.pickle', 'rb') as token: | |
credentials = pickle.load(token) | |
# Google's Request | |
from google.auth.transport.requests import Request |
Base OS = Ubuntu 19.10
Relevant config item : https://docs.ansible.com/ansible/latest/reference_appendices/config.html#default-vault-id-match
$ sudo apt install ansible python3-passlib python3-keyring python3-keyrings.alt wget curl
$ python3 -V
module Hooks | |
@@before_methods = [] | |
@@after_methods = [] | |
def before(*method_names, **actions) | |
# create a Module for preprend to exisitng class | |
to_prepend = Module.new do | |
method_names.each do |method| | |
@@before_methods << method | |
define_method(method) do |*args, &block| | |
send(actions[:do]) if @@before_methods.include? method |