Skip to content

Instantly share code, notes, and snippets.

View AndreiHondrari's full-sized avatar
🌊
surfin' them life waves

Andrei-George Hondrari AndreiHondrari

🌊
surfin' them life waves
View GitHub Profile

QEMU essential commands

Observations

  • KVM acceleration is for Linux machines
  • HVF acceleration is for MacOS Hypervisor.Framework

qemu-img options explained

  • -f specify disk format
@AndreiHondrari
AndreiHondrari / useful_commands.txt
Last active June 17, 2021 14:44
Useful terminal commands
# 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
@AndreiHondrari
AndreiHondrari / generate_django_secret_key.py
Last active January 4, 2021 14:42
Useful python scripts
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.

 

@AndreiHondrari
AndreiHondrari / books.md
Created May 27, 2020 15:59 — forked from krusynth/books.md
A list of useful books to improve your skills

Recommended Books

A list of useful books to improve your skills

Recommendations from others are noted in (parentheses). The rest are my personal recommendations.

Programming

Building your core

  • The Pragmatic Programmer - Hunt & Thomas
function isIEBrowser() {
const userAgent = window.navigator.userAgent;
if (userAgent.includes("MSIE") || userAgent.includes("Trident"))
return true;
return false;
}
document.addEventListener('DOMContentLoaded', function(e) {

Useful JavaScript Libraries

Utilities

  • Lodash - utility functions for arrays, strings, objects, etc.
  • Underscore - utility functions for arrays, strings, objects, etc.
  • ImmutableJS - immutable data structures
  • RamdaJS - practical functional library
  • MathJS - extensive math library
  • MomentJS - Parse, validate, manipulate, and display dates