Skip to content

Instantly share code, notes, and snippets.

@paranoiq
paranoiq / index.php
Created November 29, 2022 12:25
Generator of the Supersymmetric Table of Cellular Automata
<?php
error_reporting(E_ALL);
function bin(int $n): string
{
$bin = str_pad(decbin($n), 8, '0', STR_PAD_LEFT);
return substr($bin, 0, 4) . ' ' . substr($bin, 4, 4);
}
@writzx
writzx / timerService.ps1
Last active July 19, 2023 06:53
Modified ryzenAdj PS Script for applying config periodically without monitoring. No dependency on inpoutx64.dll (no problem with anticheats).
Param([Parameter(Mandatory=$false)][switch]$noGUI)
$Error.Clear()
################################################################################
#### Configuration Start
################################################################################
# WARNING: Use at your own risk!
$pathToRyzenAdjDlls = Split-Path -Parent $PSCommandPath
$monitorPowerSlider = $true
@vyach-vasiliev
vyach-vasiliev / README.md
Last active October 30, 2024 19:30
Compact VDisk after Docker operations

Resolving Docker Hard Disk Image File Size Issues on Windows

Is Your Docker Hard Disk Image File Too Large?

Is Docker Image Still Taking Up Space After Deletion?

If you're a Windows OS user, you may have encountered the problem of Docker images consuming excessive disk space even after they've been deleted. This long-standing issue can significantly affect system performance and storage management.

Common Problem for Windows OS Users

Many Windows users have faced the challenge of Docker image files growing unexpectedly large. Even after removing images, the disk space is not always reclaimed efficiently, leading to frustration and reduced available storage.

@cam8001
cam8001 / service-regions.sh
Last active December 20, 2023 19:41
One liner to get list of services keyed to AWS region
#!/bin/bash
curl -s 'https://api.regional-table.region-services.aws.a2z.com/index.json' \
| jq '.prices[] | .attributes | .["aws:region"], .["aws:serviceName"]' \
| sed '$!N;s/\n/,/'
@conofor
conofor / coalesce-12-phosphorescence-6.markdown
Created October 29, 2022 01:42
Coalesce 12 - Phosphorescence 6
@Gemba
Gemba / bashwelcomeextra-README.md
Last active May 28, 2023 03:42
Bash Welcome Extra: Scriptmodule for RetroPie-Setup with additional versions output on bash start.

INSTALLATION

On RetroPie shell as user pi:

cd RetroPie-Setup
mkdir -p ext/local/scriptmodules/supplementary
pushd ext/local/scriptmodules/supplementary
wget -O bashwelcomeextra.sh https://gist.githubusercontent.com/Gemba/bc41f9b2570486b855d6bfa57b3cbdc5/raw/d03b9f101212a0acb37d8750f9006f8639fcc54e/bashwelcomeextra.sh
popd
# remove genuine scriptmodule and install this one
@adelton
adelton / bugzilla-favicon.js
Last active March 28, 2023 23:39
Violentmonkey scripts
// ==UserScript==
// @name Set bugzilla favicon
// @namespace Adelton Violentmonkey Scripts
// @include https://bugzilla.redhat.com/*
// @grant none
// ==/UserScript==
var link = document.querySelector("link[rel = 'shortcut icon']");
if (!link) {
link = document.createElement('link');
# Load git info module
autoload -Uz vcs_info
# Configure git info
local fmt_vcs_status='%F{yellow}‹%b%f%u%c%F{yellow}›%f'
zstyle ':vcs_info:*' enable git
zstyle ':vcs_info:git:*' check-for-changes true
zstyle ':vcs_info:git:*' unstagedstr '%F{red}●%f'
zstyle ':vcs_info:git:*' stagedstr '%F{green}+%f'
zstyle ':vcs_info:git:*' patch-format ' %p %n/%a'
@ppar
ppar / terraform_separate_environments.md
Last active April 21, 2023 12:31
How to use a single Terraform repo with multiple independent environments

Summary

This text demonstrates a pattern for using a single repository of Terraform code to manage multiple, completely independent environments that contain the same infrastructure.

It's based on simply overriding the terraform data and config files on each execution with:

  • $TF_DATA_DIR