Skip to content

Instantly share code, notes, and snippets.

View KeironO's full-sized avatar
😀

Keiron O'Shea KeironO

😀
View GitHub Profile
@KeironO
KeironO / results.csv
Created July 7, 2024 17:53
2024 General Election Results CSV
Code Party Votes
E14001263 Conservative 19671
E14001263 Liberal Democrat 14869
E14001263 Labour 8753
E14001263 Reform UK 8216
E14001263 Green 2310
E14001263 Hampshire Independents 185
E14001264 Labour 24073
E14001264 Conservative 8783
E14001264 Green 4468
@KeironO
KeironO / uploadfhir.sh
Created June 15, 2024 18:42
Upload UK Core to HAPI FHIR hack script - run twice.
#!/bin/bash
# Define variables
ZIP_FILE="hl7fhirukcorer4.zip"
FHIR_SERVER_URL="http://localhost:8080/fhir"
# Create a temporary directory to extract the zip file
TEMP_DIR=$(mktemp -d)
# Unzip the file
Computer Information:
Manufacturer: ASRock
Model: B550M Phantom Gaming 4
Form Factor: Desktop
No Touch Input Detected
Processor Information:
CPU Vendor: AuthenticAMD
CPU Brand: AMD Ryzen 5 5600X 6-Core Processor
CPU Family: 0x19
Computer Information:
Manufacturer: ASRock
Model: B550M Phantom Gaming 4
Form Factor: Desktop
No Touch Input Detected
Processor Information:
CPU Vendor: AuthenticAMD
CPU Brand: AMD Ryzen 5 5600X 6-Core Processor
CPU Family: 0x19
CPU Model: 0x21
@KeironO
KeironO / started.sparql
Created September 13, 2022 10:19
Getting Started SPARL
prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>
prefix snomedct: <http://purl.bioontology.org/ontology/SNOMEDCT/>
SELECT ?x
WHERE {
}
import random
import string
def misspell(phrase, p):
new_phrase = []
words = phrase.split(' ')
for word in words:
outcome = random.random()
if outcome <= p:
ix = random.choice(range(len(word)))
[keo7@shitter fiotest]$ sudo fio --name=write_throughput --directory=$TEST_DIR --numjobs=8 \
> --size=10G --time_based --runtime=60s --ramp_time=2s --ioengine=libaio \
> --direct=1 --verify=0 --bs=1M --iodepth=64 --rw=write \
> --group_reporting=1
^[[D^C
[keo7@shitter fiotest]$ ^C
[keo7@shitter fiotest]$ sudo fio --name=write_throughput --directory=. --numjobs=8 --size=10G --time_based --runtime=60s --ramp_time=2s
--ioengine=libaio --direct=1 --verify=0 --bs=1M --iodepth=64 --rw=write --group_reporting=1
write_throughput: (g=0): rw=write, bs=(R) 1024KiB-1024KiB, (W) 1024KiB-1024KiB, (T) 1024KiB-1024KiB, ioengine=libaio, iodepth=64
...
@KeironO
KeironO / keybase.md
Created October 12, 2021 19:43
keybase.md

Keybase proof

I hereby claim:

  • I am keirono on github.
  • I am keirono (https://keybase.io/keirono) on keybase.
  • I have a public key ASAewBOhh-pOEwEcLAZHgTWO1LBeNvJUiJViIJK5rIPvJQo

To claim this, I am signing this object:

{
"A": {
"subheadings": {
"A01": {
"codes": {
"A01.1": "Hemispherectomy",
"A01.2": "Total lobectomy of brain",
"A01.3": "Partial lobectomy of brain",
"A01.8": "Other specified",
"A01.9": "Unspecified"
{
"components": {
"schemas": {
"NewUserAccount": {
"properties": {
"access_control": {
"enum": [
"ADM",
"MOD",
"PRI",