Skip to content

Instantly share code, notes, and snippets.

@o3bvv
o3bvv / Ubuntu_Vagrant_libvirt.md
Created June 6, 2024 17:28 — forked from PaulNeumann/Ubuntu_Vagrant_libvirt.md
How to Install the Vagrant libvirt Provider on Ubuntu 22.04.2 LTS Desktop or Server

How to Install the Vagrant libvirt Provider on Ubuntu 22.04.2 LTS Desktop or Server

This document describes how to install the Vagrant libvirt provider on Ubuntu 22.04.2 LTS Desktop or Server. Much of the content is based on a blog post by Philippe Vanhaesendonck of Oracle Corp. describing how to set up the Vagrant libvirt provider on Oracle Linux.

All of the commands shown should be run in a terminal window or SSH session.

Before You Start

Verify That Your CPU Supports Hardware Virtualization

@o3bvv
o3bvv / gist:f04f56ef355feda43c3f42682dbac840
Created February 29, 2024 09:51
xpath — table row with string
//*[@id="exampleTable"]/tr[td//text()[contains(., 'targetString')]]
@o3bvv
o3bvv / SolarizedDarkX.itermcolors
Created October 26, 2023 12:49
Custom iterm2 color profile
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.25882354378700256</real>
@o3bvv
o3bvv / exa_aliases.sh
Last active October 26, 2023 13:34
exa aliases
alias l="exa -l -F --group-directories-first -b --no-permissions --git --no-user --no-time"
alias lz='l -s size -r'
alias lZ='l -s size'
alias lx='l -s ext'
alias ls='exa'
alias l1='ls -1'
alias ll="exa -l -F --group-directories-first -b --no-permissions --git --no-user --time-style=long-iso --changed"
alias llt="ll -s changed -r"
alias llT="ll -s changed"
alias llz="ll -s size -r"
@o3bvv
o3bvv / post.py
Last active August 30, 2023 05:17
Export Apple Photos with meta sidecars
import datetime
import json
import os
from pathlib import Path
from typing import Callable
from osxphotos import ExportResults
from osxphotos import PhotoInfo
@o3bvv
o3bvv / .rsync-exclude
Last active July 22, 2022 06:51
Exclude items for rsync
.DS_Store
.tox
.pytest_cache
.egg-info
__pycache__
.vscode
.idea
Icon\r
Icon$\r
Icon?
@o3bvv
o3bvv / help-ukraine-stop-russia.md
Last active March 29, 2022 18:35
How YOU can help Ukraine right NOW

Help Ukraine! Stop Russia!

About

This document is a collection of links 🔗 people all over the world 🌐 can use to help Ukraine 🇺🇦 and Ukrainians to stand in the war started by Russian Federation (RF).

The list is deliberately made in a simplistic text-based version, so you can copy it, save, make a screenshot, print, etc and share it in case access to it is lost for any reason.

What YOU can do ⚡️:

@o3bvv
o3bvv / build-cache-for-existing.sh
Last active January 8, 2022 00:19
youtube-dl playlist
#!/usr/bin/env sh
for n in *.mp3
do if [[ "$n" =~ -[-_0-9a-zA-Z]{11}.mp3$ ]]
then echo "youtube ${n: -15: 11}" >> downloaded.txt
fi
done