Skip to content

Instantly share code, notes, and snippets.

View h1kkan's full-sized avatar
🇺🇦
I may be slow to respond

Ivan h1kkan

🇺🇦
I may be slow to respond
View GitHub Profile
@h1kkan
h1kkan / gist:f18b7fadb87e7fc7df7e7b8fa93e2673
Created September 27, 2017 22:23 — forked from molotovbliss/gist:6c22ff02b50ccce3a643
sitemap.xml to .txt list of urls one liner, used with siege
php -r '$x=new SimpleXMLElement(file_get_contents("sitemap.xml"));foreach($x->url as $n) echo $n->loc.PHP_EOL;' > urls.txt
@h1kkan
h1kkan / easy_healthcheck.php
Created March 24, 2017 14:43
Easy way to test services with this file
<?php
$redis_server="";
$redis_port="";
$redis_connetion_timeout="5";
$redis_test_key="redis_check";
$redis_test_value="";
$mysql_server="";
$mysql_user="";
@h1kkan
h1kkan / init.sls
Created January 28, 2016 09:20
Salt state to install java 8 (Oracle repo from Webupd8team)
# Add the oracle jvm ppa, and install java8
# https://launchpad.net/~webupd8team/+archive/ubuntu/java
# This is used for all java installs
# This is slightly retooled due to a bug in Salt 2014.7 (Helium)
# ... and to not use cmd.run
oracle-ppa:
pkgrepo.managed:
- humanname: WebUpd8 Oracle Java PPA repository
- name: deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main
- dist: trusty