This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Taken from https://geohive.maps.arcgis.com/apps/opsdashboard/index.html#/29dc1fec79164c179d18d8e53df82e96 | |
curl -s -G https://services1.arcgis.com/eNO7HHeQ3rUcBllm/arcgis/rest/services/Covid19CountyStatisticsHPSCIrelandOpenData/FeatureServer/0/query -d "f=json" -d "where=1=1" -d "returnGeometry=false" -d "spatialRel=esriSpatialRelIntersects" -d "outFields=*&groupByFieldsForStatistics=CountyName" -d "outStatistics=[{\"statisticType\":\"sum\",\"onStatisticField\":\"ConfirmedCovidCases\",\"outStatisticFieldName\":\"value\"}]" -d "cacheHint=true" | jq '.features[].attributes | "\(.CountyName),\(.value)"' | sort -nr -k2 -t"," |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# Requires you to install "spark" with ports or homebrew + the below gems. | |
require "csv" | |
require 'time' | |
require 'httparty' | |
require 'colorize' | |
require 'tty-progressbar' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# Turns an AIB CSV export in to a Xero friendly import. | |
# This script is quick and dirty, feel free to DRY it up and improve.... | |
# Xero likes: https://central.xero.com/s/article/Import-a-CSV-bank-statement | |
# Date, Amount (-/+ prefix), Payee, Description, Reference, Cheque Number, Analysis Code, Transaction Type | |
# AIB : IB(Internet Banking) : Historical | |
# Posted Account, Posted Transactions Date, Description1, Description2, Description3, Debit Amount, Credit Amount,Balance,Posted Currency,Transaction Type,Local Currency Amount,Local Currency |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require "aws-sdk-rekognition" | |
require "catpix" | |
# Images from https://thispersondoesnotexist.com/image and https://archive.org/details/1mFakeFaces | |
p "Running face rekog script at #{Time.now.to_s}" | |
image_ids = Array.new(10) { rand(1...482) } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require "httparty" | |
p "Running iNOG Tito ticket script at #{Time.now.to_s}" | |
# Replace <replace_with_yours> with your specific tokens, data, or urls | |
slack_webhook_url = "<replace_with_yours>" | |
tito_token = "<replace_with_yours>" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html class="no-js" lang="en-us"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>YAML for Network and Cloud Engineers</title> | |
<meta name="author" content="irldexter"> | |
<link rel="canonical" href="https://yamlfornetworkengineers.com"> | |
<meta name="keywords" content="nre, sre, network reliability engineering, netdevops, technical recruitment, YAML, Yet Another Markup Language, yamllint, code, network automation, sdn, software defined networking, network function virtualization"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
## 'pycodestyle' and 'autopep8 --in-place' | |
# Labs from https://github.com/drandrewkane/AI_ML_Workshops | |
# All slides from all sessions https://www.slideshare.net/AmazonWebServices/tag/aws-builders-days | |
# AWS Builders Day 2018 in Dublin at the Aviva Stadium | |
# wget http://data.dmlc.ml/models/imagenet/inception-bn/Inception-BN-symbol.json | |
# wget -O Inception-BN-0000.params http://data.dmlc.ml/models/imagenet/inception-bn/Inception-BN-0126.params | |
# wget http://data.dmlc.ml/models/imagenet/synset.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# 'pycodestyle' and 'autopep8 --in-place' | |
# Imports | |
import ipaddress | |
import subprocess | |
from random import randint | |
from time import sleep |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Check https://www.reddit.com/r/freenas/comments/7s1cgb/pkg_repository_freebsd_contains_packages_for/ | |
freebsd-version -ku | |
11.0-RELEASE-p9 | |
11.0-RELEASE-p11 | |
pg_config --version | |
looking for 9.6.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form onsubmit="event.preventDefault(); secondstage('try_email');" novalidate="novalidate" class="quicksignup-box" accept-charset="UTF-8"> | |
<input type="email" name="try_email" id="try_email" placeholder="Enter your email"> | |
<input type="submit" value="Sign Up" style="cursor: pointer;"> | |
</form> | |
<p>10 free screens. No credit card required.</p> | |
HEADER | |
<script> | |
function secondstage (field_id) { |