- KVM acceleration is for Linux machines
- HVF acceleration is for MacOS Hypervisor.Framework
-f
specify disk format
# Docker | |
# dummy docker containers | |
docker create --name ubuntu_can ubuntu /bin/bash -c "sleep infinity" | |
docker create --name alpine_box alpine /bin/sh -c "sleep infinity" | |
# Image conversion | |
find . -name "*.jpg" -print0 | xargs -0 -I xx convert xx -resize 1920 -quality 85 xx | |
find . -type f -name "*.png" | xargs -I xx basename -s .png xx | xargs -I xx convert xx.png -resize 960 -quality 90 output/xx.jpg |
import secrets | |
def generate_django_secret_key(length=50): | |
allowed_chars=( | |
'abcdefghijklmnopqrstuvwxyz' | |
'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789' | |
) | |
return ''.join(secrets.choice(allowed_chars) for i in range(length)) |
This is a collection of books that I've researched, scanned the TOCs of, and am currently working through. The books are selected based on quality of content, reviews, and reccommendations of various 'best of' lists.
The goal of this collection is to promote mastery of generally applicable programming concepts.
Most topics are covered with Python as the primary language due to its conciseness, which is ideal for learning & practicing new concepts with minimal syntactic boilerplate.
JavaScript & Kotlin are listed in the Tooling
section; as they allow extension of VS Code
and the IntelliJ
suite of IDEs, which cover most development needs.
function isIEBrowser() { | |
const userAgent = window.navigator.userAgent; | |
if (userAgent.includes("MSIE") || userAgent.includes("Trident")) | |
return true; | |
return false; | |
} | |
document.addEventListener('DOMContentLoaded', function(e) { |