This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Verifying that +amigus is my blockchain ID. https://onename.com/amigus |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The .bashrc adam at migus.org uses | |
test -s "$HOME/.config/envman/load.sh" && . "$HOME/.config/envman/load.sh" # For envman | |
javadir=/usr/lib64/jvm/javadir-openjdk; test -d $javadir && export JAVA_HOME=$javadir; unset javadir | |
mvndir="${HOME}/share/apache-maven-3.6.3"; test -d $mvndir && export MAVEN_HOME=$mvndir; unset mvndir | |
viexe=$(which vim); test -x $viexe && export EDITOR=$viexe; unset viexe | |
export LIBVIRT_DEFAULT_URI=qemu:///system | |
case "$-" in *i*) ;; *) return ;; esac # interactive |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// Use IntelliSense to learn about possible attributes. | |
// Hover to view descriptions of existing attributes. | |
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Python: AWX", | |
"type": "python", | |
"request": "launch", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# My $PROFILE; https://gist.github.com/amigus/26cfb6cc8578ef783668c0b9346bd26c #> | |
$ConfigDirectory = Get-Item $PROFILE | Select-Object -ExpandProperty DirectoryName | |
#region $env:Path | |
<# | |
The PSPaths.ps1 file is a list of expressions that evaluate to folder names e.g. | |
$env:USERPROFILE + '\.local\bin' | |
#> | |
foreach ($DirectoryExpression in Get-Content "${ConfigDirectory}\PSPaths.ps1") { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
program=$(basename $0) | |
DEFAULT_NAMESPACE="default" | |
DEFAULT_DIRECTORY=. | |
DEFAULT_BITS=2048 | |
usage() { | |
cat<<EOF |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# The NVIDIA Linux driver will not load under Secure Boot unless it is signed. | |
# This script signs the driver using a sign-signed certificate. | |
# The certificate must be loaded into the UEFI via `mokutil`. | |
# See https://docs.oracle.com/en/learn/sboot-module/index.html#enrolling-the-certificate-into-the-uefi-secure-boot-key-database | |
cert="${INSTALL_NVIDIA_DRIVER_CERT_DIR:-${INSTALL_NVIDIA_DRIVER_DIR}}cert.der" | |
key="${INSTALL_NVIDIA_DRIVER_CERT_DIR:-${INSTALL_NVIDIA_DRIVER_DIR}}cert.key" | |
if test ! -r "${cert}"; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
cat<<EOF>>/etc/bak.exclude | |
./etc/.pwd.lock | |
./etc/machine-id | |
./etc/mtab | |
./etc/multipath/bindings | |
./etc/openldap/schema | |
./etc/os-release | |
./etc/resolv.conf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# PowerShell on Linux hack to allow SSH to "exec" itself when using `ProxyJump` | |
# It must be in the path and named `exec` to work | |
case "$(basename $0)" in exec) $* ;; *) exec $* ;; esac |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CONF := /etc/openldap | |
BACKUP := $(CONF)/backup.ldif | |
DATA := $(CONF)/slapd.d | |
LIB := /var/lib/ldap | |
LDIF := ./data.ldif | |
INPUT := ./slapd.conf.custom | |
GROUP := ldap | |
OWNER := root |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function ConvertFrom-BytesByFactor { | |
[CmdletBinding()] | |
param( | |
[Parameter(Mandatory)][int]$Factor, | |
[Parameter(Mandatory, ValueFromPipeline)][Int64]$Amount | |
) | |
process { | |
Write-Debug ("Rounding the result of $Amount * 1024 ^ $Factor") | |
[Convert]::ToInt64([Math]::Round($Amount * [Math]::Pow(1024, $Factor))) | |
} |
OlderNewer