Skip to content

Instantly share code, notes, and snippets.

View EagleEyeJohn's full-sized avatar

John Nicholls EagleEyeJohn

  • Eagle Eye Solutions
  • Guildford
View GitHub Profile
@olivertappin
olivertappin / versioning-ranges.txt
Last active April 8, 2020 20:32
Semantic Versioning Ranges
For a simplistic view on what versioning ranges look like, see below:
Version Range
>=1.0 1.0.0 - *.*.*
>=1.0 <2.0 1.0.0 - 1.*.*
>=1.0 <1.1 || >=1.2 1.0.0 - 1.*.* || 1.2.0 - *.*.*
>=1.0 <1.1 1.0.0 - 1.*.*
>=1.0.0 <2.1 1.0.* - 2.0.*
>=1.0.0 <=2.1.0 1.0.0 - 2.1.0
~1.2 1.2.0 - 1.*.*
@karlbaillie
karlbaillie / docker-compose.yml
Last active October 7, 2022 15:18
Self-Hosted Stack w/Traeik Front End
version: "2.4"
networks:
frontend:
external: true
backend:
external: true
vlan30:
driver: macvlan
driver_opts:
@olivertappin
olivertappin / consul-kv-export.php
Created February 13, 2019 14:21
Export all data from the Consul KV store into consul kv put commands
<?php
$output = shell_exec('consul kv export');
if (null === $output) {
echo 'Could not run `consul kv export`. Is consul installed?' . PHP_EOL;
exit(1);
}
$data = json_decode($output, true);
@olivertappin
olivertappin / create-large-file.sh
Last active May 29, 2025 22:47
Create a large file for testing
# Please note, the commands below will create unreadable files and should be
# used for testing file size only. If you're looking for something that has
# lines in it, use /dev/urandom instead of /dev/zero. You'll then be able to
# read the number of lines in that file using `wc -l large-file.1mb.txt`
# Create a 1MB file
dd if=/dev/zero of=large-file-1mb.txt count=1024 bs=1024
# Create a 10MB file
dd if=/dev/zero of=large-file-10mb.txt count=1024 bs=10240
@diemuzi
diemuzi / README
Created October 7, 2012 19:44
Apache 2.2.x / 2.4.x FPM Configuration
This configuration is a working copy which I have tested on Apache 2.2.x and 2.4.x
I highly recommend you use this version of mod_fastcgi as it works with Apache 2.4.x, fastcgi.com version does not!
https://github.com/ByteInternet/libapache-mod-fastcgi
The fastcgi.com version is 2.4.6, the version I am recommending registers as 2.4.7
To patch mod_fastcgi for use with Apache 2.4.x look at the debian/patches folder. It's not specific to Debian OS so don't let that fool you. I personally use Archlinux.
Of course to compile mod_fastcgi:
@rajraj
rajraj / es.sh
Created January 3, 2012 20:07 — forked from aaronshaf/es.sh
Install ElasticSearch on CentOS 6
cd ~
sudo yum update
sudo yum install java-1.7.0-openjdk.i686 -y
wget https://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.19.9.tar.gz -O elasticsearch.tar.gz
tar -xf elasticsearch.tar.gz
rm elasticsearch.tar.gz
mv elasticsearch-* elasticsearch
sudo mv elasticsearch /usr/local/share