Skip to content

Instantly share code, notes, and snippets.

View runningman84's full-sized avatar

Philipp Hellmich runningman84

View GitHub Profile
@runningman84
runningman84 / cubi001.txt
Created June 18, 2020 17:40
longhorn fs full
root@cubi001:/var/longhorn# find . | grep snap
./replicas/pvc-06c9f07f-83e2-4d6b-8277-efda46cfc95d-d4a275d4/volume-snap-66d6f322-3bf2-41d0-9195-79efd8bf3f81.img
./replicas/pvc-06c9f07f-83e2-4d6b-8277-efda46cfc95d-d4a275d4/volume-snap-66d6f322-3bf2-41d0-9195-79efd8bf3f81.img.meta
./replicas/pvc-06c9f07f-83e2-4d6b-8277-efda46cfc95d-d4a275d4/volume-snap-c-hn1109-5ae4df91.img
./replicas/pvc-06c9f07f-83e2-4d6b-8277-efda46cfc95d-d4a275d4/volume-snap-be7cf082-7726-40e6-8411-14cb632f449b.img.meta
./replicas/pvc-06c9f07f-83e2-4d6b-8277-efda46cfc95d-d4a275d4/volume-snap-81e0befb-73ec-4ad8-b099-d9f62e6737b5.img
./replicas/pvc-06c9f07f-83e2-4d6b-8277-efda46cfc95d-d4a275d4/volume-snap-7d0148c0-662c-4263-be85-9ccc7c6bbfe4.img.meta
./replicas/pvc-06c9f07f-83e2-4d6b-8277-efda46cfc95d-d4a275d4/volume-snap-0b52d081-3e7f-41bf-81c0-04403334bffa.img.meta
./replicas/pvc-06c9f07f-83e2-4d6b-8277-efda46cfc95d-d4a275d4/volume-snap-81e0befb-73ec-4ad8-b099-d9f62e6737b5.img.meta
./replicas/pvc-06c9f07f-83e2-4d6b-8277-efda46cfc95d-d4a275d
@runningman84
runningman84 / test.php
Created January 14, 2020 14:04
test.php
<?php
phpinfo();
<?php
define('WP_ALLOW_MULTISITE', getenv('WP_ALLOW_MULTISITE') ? 'true' : 'false');
echo WP_ALLOW_MULTISITE;
@runningman84
runningman84 / activate.sh
Created September 26, 2019 12:25
wp-plugin
#!/bin/bash
if [ "$WP_PLUGINS" = "" ]
then
echo "please define WP_PLUGINS"
exit 1
fi
cd /app
#!/usr/bin/env bats
@test "Check that we have a /tmp directory" {
run stat /tmp
[ $status = 0 ]
}
@test "Check that we get redirected from http to https" {
run curl -I http://$WP_DEFAULT_HOST/
[ $status = 0 ]
#!/bin/bash
set -e
if [ "$WP_IMPORT_DUMP" = "" ]
then
echo "please define WP_IMPORT_DUMP"
exit 1
fi
if [ "$WP_SITE_ID" = "" ]
@runningman84
runningman84 / wp_local_domains.php
Last active May 27, 2019 15:13
wp_local_domains.php
<?php
$domains = array();
$mydomains = array();
if (getenv('WP_OFFLOAD_LOCAL_DOMAINS')) {
$mydomains = explode(' ', getenv('WP_OFFLOAD_LOCAL_DOMAINS'));
}
if ($_SERVER['HTTP_HOST']) {
$mydomains[] = $_SERVER['HTTP_HOST'];
<?php
phpinfo();
?>
@runningman84
runningman84 / alarm.py
Last active February 10, 2018 22:10
Appdaemon AlarmSystem
import appdaemon.appapi as appapi
#
# AlarmSystem App
#
# Args:
#
class AlarmSystem(appapi.AppDaemon):
Recipe: sensu::default
* ruby_block[sensu_service_trigger] action nothing[2017-08-31T08:15:30+00:00] INFO: Processing ruby_block[sensu_service_trigger] action nothing (sensu::default line 20)
(skipped due to action :nothing)
Recipe: sensu::_linux
* yum_repository[sensu] action add[2017-08-31T08:15:30+00:00] INFO: Processing yum_repository[sensu] action add (sensu::_linux line 48)
(up to date)
* yum_package[sensu] action install[2017-08-31T08:15:30+00:00] INFO: Processing yum_package[sensu] action install (sensu::_linux line 61)
[2017-08-31T08:15:30+00:00] WARN: Yum executable not found or doesn't start with #!. Using default python.