Skip to content

Instantly share code, notes, and snippets.

@SimoTod
SimoTod / Genny Installer
Last active October 13, 2023 12:19
Genny Installer
#!/usr/bin/env bash
expandPath() {
case $1 in
~[+-]*)
local content content_q
printf -v content_q '%q' "${1:2}"
eval "content=${1:0:2}${content_q}"
printf '%s\n' "$content"
;;
@SimoTod
SimoTod / Test
Last active January 15, 2020 22:23
<?php
//https://codepen.io/SimoTod/pen/RwNYNXm
$str_needle = 's6tbdfgj222dJGk';
$str_seed = str_repeat("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ", 10);
foreach ([10000, 1000, 100, 10] as $int_number_of_item) {
echo "N={$int_number_of_item}\n";
//Populate array
$arr_heystack = [];