I hereby claim:
- I am ricfeatherstone on github.
- I am ricfeatherstone (https://keybase.io/ricfeatherstone) on keybase.
- I have a public key ASDoCXDi862nYL9TFsUc3LeyqEcUve-HzbkQWAXt5T5z_wo
To claim this, I am signing this object:
#!/bin/bash | |
dir=$1 | |
device=$2 | |
partition=$3 | |
start=$4 | |
end=$5 | |
umount /$dir | |
parted /dev/$device <<EOF |
#!/bin/bash | |
config=$(gdisk /dev/xvda <<EOF | |
p | |
q | |
EOF | |
) | |
disk_guid=$(echo $config | awk '{print($45)}') |
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'net/http' | |
require 'json' | |
iam_info_uri = URI 'http://169.254.169.254/latest/meta-data/iam/info' | |
iam_info_response = Net::HTTP.get_response(iam_info_uri) | |
iam_info = JSON.parse(iam_info_response.body) | |
profile_name = iam_info['InstanceProfileArn'].split('/')[1] |
<?xml version="1.0" ?> | |
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | |
<!-- IdentityTransform --> | |
<xsl:template match="/ | @* | node()"> | |
<xsl:copy> | |
<xsl:apply-templates select="@* | node()" /> | |
</xsl:copy> | |
</xsl:template> | |
</xsl:stylesheet> |
//console | |
//setup | |
//hide | |
[source,cypher] | |
---- | |
CREATE (losail:Circuit {name:'Losail', length:'5.380', width:'12'}), | |
(losail)-[:STARTS_AT]->(sf:Point {name:'Start/Finish'}), |
= MotoGp Graph Gist | |
These queries are my first attempts at Cypher and using Neo4j, I am just begining my journey so if you can identify ways to improve the queries then please post a comment to help me improve. | |
OK with that out of the way where did I begin? I love bike racing and thought the interrelated domains of championships, circuits, riders and teams would be a great place to start. I thought it would be cool to come up with a model that allowed to me to extrapolate bizarre facts from this years MotoGP championship (just in case anyone asked me to commentate on a upcoming race). | |
What sort of facts would I want to dazzle people with? | |
* What is the total race distance for the year? | |
* Which is the longest race? |
systemctl show docker --property Environment |
echo | openssl s_client -showcerts -connect <host>:<port> 2>/dev/null | openssl x509 -inform pem -noout -text |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/python | |
from __future__ import print_function | |
import fileinput | |
in_start_extras_section = False | |
for line in fileinput.input("/etc/yum.repos.d/redhat-rhui.repo", inplace=True): | |
if line.find("[rhui-REGION-rhel-server-extras]") != -1: | |
in_start_extras_section = True |