Skip to content

Instantly share code, notes, and snippets.

View pantsarny's full-sized avatar

Aliaksandr Pantsarny pantsarny

View GitHub Profile
<?php //version my202
//set allowTestMenu to false to disable System/Server test page
$allowTestMenu = true;
$use_mysqli = function_exists("mysqli_connect");
header("Content-Type: text/plain; charset=x-user-defined");
error_reporting(0);
set_time_limit(0);
#!/bin/bash
BALANCE=$(yarn --cwd ~/ironfish/ironfish-cli/ start accounts:balance)
AMOUNT=$(echo $BALANCE | grep -Eo 'spend\: \$IRON ([0-9]+\.[0-9]+)' | cut -c 13-)
if (( $(echo "$AMOUNT >= 0.10000001" |bc -l) )); then
$(yarn --cwd ~/ironfish/ironfish-cli/ start deposit --confirm)
fi
#!/bin/bash
BALANCE=$(yarn --cwd /root/ironfish/ironfish-cli/ start accounts:balance)
AMOUNT=$(echo $BALANCE | grep -Eo 'spend\: \$IRON ([0-9]+\.[0-9]+)' | cut -c 13-)
if (( $(echo "$AMOUNT >= 0.10000001" |bc -l) )); then
$(yarn --cwd /root/ironfish/ironfish-cli/ start deposit --confirm)
fi
#!/bin/bash
BALANCE=$(yarn --cwd /root/ironfish/ironfish-cli/ start accounts:balance)
AMOUNT=$(echo $BALANCE | grep -Eo 'spend\: \$IRON ([0-9]+\.[0-9]+)' | cut -c 13-)
if (( $(echo "$AMOUNT >= 0.10000001" |bc -l) )); then
$(yarn --cwd /root/ironfish/ironfish-cli/ start deposit)
fi
#!/bin/bash
exists()
{
command -v "$1" >/dev/null 2>&1
}
service_exists() {
local n=$1
if [[ $(systemctl list-units --all -t service --full --no-legend "$n.service" | sed 's/^\s*//g' | cut -f1 -d' ') == $n.service ]]; then
return 0
{
"port":443,
"secret":"e13d0063bcb58dbdd13576ca760749d3"
}
{
"port":1984,
"secret":"e3095bafa2e03884de07fe6a7bcb8a85"
}
#!/usr/bin/env php
<?php
$debug = true; // Set this to true to avoid automatic updates of this script
echo "mtproxyd - Copyright by Daniil Gentili, licensed under AGPLv3\n\n";
if (!isset($argv[2])) {
echo "Usage: ".$argv[0]." seed port\n\nseed is any string or word that will be used as seed to generate the proxy secret\nport is the port where to start listening for connections\n";
exit(1);
}
@pantsarny
pantsarny / digital-ocean-promo-code-june-jule-2018-free-trial.md
Created May 26, 2018 08:20
Digitalocean Coupon June / Jule 2018 / Free Trial / 35USD

25 USD / ALL 2018 YEAR ❤️

  1. Follow this link http://bit.ly/DIGITAL25 and finish registration ($10)
  2. In your profile enter code LOWENDBOX ($15)
  3. Your total balance will be 25 USD

Have a good day!

@pantsarny
pantsarny / digitalocean-promo-cupon-code-free-trial.md
Last active November 1, 2022 13:55
DigitalOcean Coupon Code $25 / All 2018 Year / May 2018 / June 2018

alt text

Digital Ocean Promo Coupon Code $25

** Get $25 / $20 / $15 / $10 free DigitalOcean Credit.**

Steps To Get Free Credit

  1. First open this link and Sign Up to get your $10 credit.
  2. While filling your billing info, click on "Have a Promo Code?" at the bottom of the page.