GPGPU particles using texture caches for position and velocity.
For more of these experiments, please see: https://codepen.io/collection/XEEaEa/
#!/usr/bin/env python3 | |
""" Convert a list of records from iptoasn.com to a firewalld ipset XML file. | |
Download https://iptoasn.com/data/ip2asn-v4.tsv.gz, uncompress, filter | |
with grep, and feed to this script to generate a file to place in | |
/etc/firewalld/ipsets for use in firewall rules. | |
Example: | |
wget -q -O - https://iptoasn.com/data/ip2asn-v4.tsv.gz | \ |
<?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); | |
} |
Param([Parameter(Mandatory=$false)][switch]$noGUI) | |
$Error.Clear() | |
################################################################################ | |
#### Configuration Start | |
################################################################################ | |
# WARNING: Use at your own risk! | |
$pathToRyzenAdjDlls = Split-Path -Parent $PSCommandPath | |
$monitorPowerSlider = $true |
: script for Windows 10 and above | |
wsl --shutdown | |
diskpart | |
:: opening window Diskpart | |
:: compact my Docker disk | |
select vdisk file="C:\Users\Alex\AppData\Local\Docker\wsl\data\ext4.vhdx" | |
attach vdisk readonly | |
compact vdisk | |
detach vdisk |
#!/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/,/' |
GPGPU particles using texture caches for position and velocity.
For more of these experiments, please see: https://codepen.io/collection/XEEaEa/
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
// ==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'); |
#!/bin/bash | |
# Script to take data.json from obsidian-5e-statblock plugin and make links of the spells in statblocks. Output will be written at the end to "$FILE.out" | |
# Usage: | |
# link_spells.bash data.json | |
# | |
set -e | |
FILE=$1 |
# 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' |