Skip to content

Instantly share code, notes, and snippets.

View KeironO's full-sized avatar
😀

Keiron O'Shea KeironO

😀
View GitHub Profile
@KeironO
KeironO / teams.owl
Created March 21, 2019 19:13
Teams Ontology
Namespace(rdf = <http://www.w3.org/1999/02/22-rdf-syntax-ns#>)
Namespace(xsd = <http://www.w3.org/2001/XMLSchema#>)
Namespace(rdfs = <http://www.w3.org/2000/01/rdf-schema#>)
Namespace(owl = <http://www.w3.org/2002/07/owl#>)
Namespace(a = <http://owl.man.ac.uk/2005/sssw/teams#>)
Ontology( <http://owl.man.ac.uk/2005/sssw/teams>
ObjectProperty(a:hasMember
inverseOf(a:isMemberOf))
<?xml version="1.0"?>
<rdf:RDF xmlns="http://xmlns.com/foaf/0.1/"
xml:base="http://xmlns.com/foaf/0.1/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:vs="http://www.w3.org/2003/06/sw-vocab-status/ns#"
xmlns:owl="http://www.w3.org/2002/07/owl#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:wot="http://xmlns.com/wot/0.1/"
xmlns:xml="http://www.w3.org/XML/1998/namespace"
xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
@KeironO
KeironO / data.tsv
Created June 2, 2019 20:08
Welsh EU voting + Child Poverty
Council Conservative Labour Liberal Democrats Plaid Cymru Brexit Party Green UKIP Change UK Severe Child Poverty Relative Child Poverty
Angelsey 5.8 9.5 8.1 35.9 34.1 4.7 3.4 1.9 14 18
Blaenau Gwent 3 23 6.6 12.9 37.4 4 5 3.1 20 29
Bridgend 6.1 18.4 11.8 15.1 35.7 5.4 3.6 3.5 15 22
Caerphilly 2.7 19.9 9 18 37.6 5.5 4.4 2.8 18 25
Cardiff 6.4 17.4 20.9 20.2 21.2 5.5 2.2 3.2 16 26
Camarthernshire 4.9 12.5 7.8 31.1 32.8 4.9 3.2 2.7 16 19
Ceredigion 3.7 5.1 16.3 37.2 32.9 6.8 2.4 1.4 12 16
Conwy 8 10.1 13.1 20 35.8 5.8 3.4 2.8 14 19
Denbighshire 10 14 12 18 34 6 4 3 15 20
@KeironO
KeironO / SOC2010.tsv
Created August 14, 2019 16:42
SOC2010 Codes
1115 Chief executives and senior officials
1116 Elected officers and representatives
1121 Production managers and directors in manufacturing
1122 Production managers and directors in construction
1123 Production managers and directors in mining and energy
1131 Financial managers and directors
1132 Marketing and sales directors
1133 Purchasing managers and directors
1134 Advertising and public relations directors
1135 Human resource managers and directors
<record>
<boolean id="preload" value="false"/>
<boolean id="amap" value="false"/>
<list id="maps">
<record from="2082082528" to="graphics/pictures/club/2082082528/logo"/>
<record from="2082082528_s" to="graphics/pictures/club/2082082528/icon"/>
</list>
</record>
{
"components": {
"schemas": {
"NewUserAccount": {
"properties": {
"access_control": {
"enum": [
"ADM",
"MOD",
"PRI",
{
"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"
@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:

[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
...
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)))