For this we are going to be using lxc-create, which comes pre-installed on Proxmox but needs further dependencies to fetch the OCI images from Docker:
apt update && apt -y install skopeo umoci jq| function Invoke-KqlQuery | |
| { <# | |
| .SYNOPSIS | |
| This command runs a KQL Query against an Azure Data Explorer cluster. | |
| .DESCRIPTION | |
| This command runs a KQL Query against an Azure Data Explorer cluster using the Azure AD User | |
| Authentication method, unless an access token is passed in with the -AccessToken parameter. | |
| .PARAMETER ClusterUrl |
LOCATION=$(curl -s https://api.github.com/repos/<YOUR ORGANIZTION>/<YOUR REPO>/releases/latest \
| grep "zipball_url" \
| awk '{ print $2 }' \
| sed 's/,$//' \
| sed 's/"//g' ) \
; curl -L -o <OUTPUT FILE NAME> $LOCATIONfor example:
Sven Axelsson 24 Nov 2001
How to create an output stream that writes to the debug terminal.
There are many different schools of how to debug a program (yeah, I know - write it correctly from the start), but whatever tools you prefer it is often very convenient just to use the printf approach. Well, since you are a modern C++ kind of person, you don't really want printf, you want to use an output stream, like cerr.
This is a guide for Scala and Java development on Windows, using Windows Subsystem for Linux, although a bunch of it is applicable to a VirtualBox / Vagrant / Docker subsystem environment. This is not complete, but is intended to be as step by step as possible.
Read the entire Decent Security guide, and follow the instructions, especially:
| # https://github.com/chocolatey/choco/wiki/CommandsReference#how-to-pass-options--switches | |
| # Powershell specific argument passing | |
| # You must be on the latest beta of chocolatey for this to work properly (redownload files) | |
| choco upgrade chocolatey -pre | |
| $originalPath = $env:PATH | |
| choco install ruby --version 1.9.3.55100 -my --install-arguments '/verysilent /dir=""c:\tools\ruby193"" /tasks=""assocfiles""' --override-arguments | |
| # DevKit for Ruby 1.x |
| using System.Text.RegularExpressions; | |
| using GeoTimeZone; // Import from Nuget package "GeoTimeZone" (https://github.com/mattjohnsonpint/GeoTimeZone) | |
| using TimeZoneConverter; // Import from Nuget package "TimeZoneConverter" (https://github.com/mattjohnsonpint/TimeZoneConverter) | |
| namespace AirportTimeZones; | |
| internal static class Program | |
| { | |
| private static void Main() | |
| { |
| /** | |
| * progress.c - Progress bar and progress percentage in C. | |
| * This program uses ANSI escape codes to show an always updating progress line in the terminal. | |
| * Author: Shubhanshu Mishra | |
| **/ | |
| #include <stdio.h> | |
| #include <string.h> | |
| #include <stdlib.h> |
| # Description: Boxstarter Script | |
| # Author: Rich Turner <rich@bitcrazed.com> | |
| # Last Updated: 2019-07-08 | |
| # | |
| # Run this Boxstarter by calling the following from an **ELEVATED PowerShell instance**: | |
| # `set-executionpolicy Unrestricted` | |
| # `. { iwr -useb https://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force` | |
| # `Install-BoxstarterPackage -DisableReboots -PackageName <URL-TO-RAW-GIST>` | |
| #---- TEMPORARY --- |
| import requests | |
| class HoverException(Exception): | |
| pass | |
| class HoverAPI(object): | |
| def __init__(self, username, password): | |
| params = {"username": username, "password": password} | |
| r = requests.post("https://www.hover.com/api/login", params=params) |