Skip to content

Instantly share code, notes, and snippets.

View ApOgEE's full-sized avatar
💭
code n learn

M. Fauzilkamil Zainuddin ApOgEE

💭
code n learn
View GitHub Profile
@linuxmalaysia
linuxmalaysia / clustercontrol-podman-setup-20231209.md
Last active May 12, 2024 00:58
Clustercontrol v2 in Podman

Podman Container Configuration for ClusterControl with Custom User and SSH

This document outlines how to configure a Podman container for ClusterControl with a custom user and SSH access.

1. Pulling the Image:

podman pull docker.io/severalnines/clustercontrol:latest
@hschnegg
hschnegg / PostgreSQL test if text can be cast to numeric
Created January 28, 2014 15:08
PostgreSQL: Test if text can be cast to numeric
select (mytext ~ '^([0-9]+[.]?[0-9]*|[.][0-9]+)$');
@searbe
searbe / parse_xlsx.php
Created August 7, 2012 09:48
Parse simple XLSX in PHP with SimpleXML and ZipArchive
<?php
/**
* I had to parse an XLSX spreadsheet (which should damn well have been a CSV!)
* but the usual tools were hitting the memory limit pretty quick. I found that
* manually parsing the XML worked pretty well. Note that this, most likely,
* won't work if cells contain anything more than text or a number (so formulas,
* graphs, etc ..., I don't know what'd happen).
*/