Skip to content

Instantly share code, notes, and snippets.

View artur9010's full-sized avatar
🍕
Anyone has pizza?

Artur Motyka artur9010

🍕
Anyone has pizza?
View GitHub Profile
@artur9010
artur9010 / kubedump.sh
Created October 18, 2022 16:35 — forked from negz/kubedump.sh
Dump Kubernetes cluster resources as YAML
#!/usr/bin/env bash
set -e
CONTEXT="$1"
if [[ -z ${CONTEXT} ]]; then
echo "Usage: $0 KUBE-CONTEXT"
exit 1
fi
### Keybase proof
I hereby claim:
* I am artur9010 on github.
* I am arturmotyka (https://keybase.io/arturmotyka) on keybase.
* I have a public key ASD6xQ8SwPlSHbrQMMj8LSRm2JRpbDOruRzNybxvfzD5rQo
To claim this, I am signing this object:
id: 1 <--- your server id (for minecraft-list.org/4131-kiwimc-pl it should be 4131)
requireonline: true <--- require player to be online to get rewarded (true/false)
commands: <--- here you put all the commands that should be executed on vote, use %player% for voter nickname
- "say %player% thank you for your vote at Minecraft-List.org"
- "give %player% dirt 1"
@artur9010
artur9010 / status.php
Last active January 24, 2021 09:55
Minecraft Server List PHP Minecraft-List.org
<?php
/*
Advertise your Minecraft server for free
https://minecraft-list.org
*/
$data = file_get_contents("https://minecraft-list.org/server/4131-kiwimc.pl/json");
$server = json_decode($data);
if($server->online){
echo "Address: {$server->address}<br/>";