Executable and Linkable Format (ELF), is the default binary format on Linux-based systems.
| #!/bin/sh | |
| # install tools | |
| apt update -y && apt install nano wget curl libguestfs-tools -y | |
| # remove old image | |
| rm -rfv current/noble-server-cloudimg-amd64.img | |
| # remove old template container - WILL DESTROY COMPLETELY | |
| qm destroy 9000 --destroy-unreferenced-disks 1 --purge 1 | |
| # download new image | |
| wget https://cloud-images.ubuntu.com/noble/current/noble-server-cloudimg-amd64.img | |
| # add agent to image |
| #!/bin/env perl | |
| # This file was shamelessly copied from | |
| # https://collaborating.tuhh.de/alex/latex-git-cookbook/-/blob/4174942b6674588d016189c708327dccbaac5b8d/.latexmkrc | |
| # Shebang is only to get syntax highlighting right across GitLab, GitHub and IDEs. | |
| # This file is not meant to be run, but read by `latexmk`. | |
| # ====================================================================================== | |
| # Perl `latexmk` configuration file |
| // you need this in your cargo.toml | |
| // reqwest = { version = "0.11.3", features = ["stream"] } | |
| // futures-util = "0.3.14" | |
| // indicatif = "0.15.0" | |
| use std::cmp::min; | |
| use std::fs::File; | |
| use std::io::Write; | |
| use reqwest::Client; | |
| use indicatif::{ProgressBar, ProgressStyle}; |
As a developer I have noticed a trend in libraries where the library developer will write this amazing
library that does everything you need it to except that it has a .run() or .start() method. The
intent is for the user of said library to do the initialization code in the application entry point
and then do something like return app.run();. Whether it's in Python, Java, C++, or Rust they all
abstratct away the application's main event loop.
What is an event loop?
Occasionally we will deploy a virtual instance into our KVM infrastructure and realize after the fact that we need more local disk space available. This is the process we use to expand the disk image. This process assumes the following:
- You're using legacy disk partitions. The process for LVM is similar and I will describe that in another post.
- The partition you need to resize is the last partition on the disk.
This process will work with either a qcow2 or raw disk image. For
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
| <title>Canvas</title> |
| #include <iostream> | |
| #include <string> | |
| #include <queue> | |
| #include <unordered_map> | |
| using namespace std; | |
| // A Tree node | |
| struct Node | |
| { | |
| char ch; |
| $path = $args[0] | |
| Add-Type -AssemblyName PresentationFramework | |
| [System.Windows.MessageBox]::Show("Hello $path") |
