Skip to content

Instantly share code, notes, and snippets.

View DMeechan's full-sized avatar
🧑‍🌾
Building stuff

Daniel Meechan DMeechan

🧑‍🌾
Building stuff
View GitHub Profile
@DMeechan
DMeechan / playbook-example.yml
Last active July 3, 2018 14:39
DevOps Course Chapter 2 - Ansible
---
- hosts: mygroup
tasks:
- name: Installs Git version control
apt:
name: git
state: present
update-cache: true
- name: Installs GoAccess
apt:
@DMeechan
DMeechan / ansible-selenium-vars.yml
Created July 3, 2018 15:24
DevOps Course Chapter 2 - Ansible
selenium_install_firefox: yes
selenium_install_chrome: no
selenium_version: 3.12.0
@DMeechan
DMeechan / ansible-roles.yml
Last active July 25, 2018 15:58
DevOps Course Chapter 2 - Ansible
roles:
- arknoll.selenium
@DMeechan
DMeechan / node-js-ibm-cloud-manifest.yml
Created July 16, 2018 13:37
Manifest file to deploy Node.js application to IBM Cloud
---
applications:
- name: devops-todo-1-or-whatever-you-chose
memory: 128M
buildpack: sdk-for-nodejs
command: npm run start
env:
OPTIMIZE_MEMORY: true
@DMeechan
DMeechan / ansible-java-pre-task.yml
Last active July 27, 2018 12:55
DevOps Course Chapter 2: Ansible - Use Ansible's pre-tasks to install Java before our role installs Selenium
pre_tasks:
- name: Install Java
apt:
name: default-jre
state: present
update_cache: yes
@DMeechan
DMeechan / word-list.js
Last active December 7, 2025 19:14
BIP39 mnemonic phases word list (2048 words)
const WORDLIST = ["abandon","ability","able","about","above","absent","absorb","abstract","absurd","abuse",
"access","accident","account","accuse","achieve","acid","acoustic","acquire","across","act",
"action","actor","actress","actual","adapt","add","addict","address","adjust","admit",
"adult","advance","advice","aerobic","affair","afford","afraid","again","age","agent",
"agree","ahead","aim","air","airport","aisle","alarm","album","alcohol","alert",
"alien","all","alley","allow","almost","alone","alpha","already","also","alter",
"always","amateur","amazing","among","amount","amused","analyst","anchor","ancient","anger",
"angle","angry","animal","ankle","announce","annual","another","answer","antenna","antique",
"anxiety","any","apart","apology","appear","apple","approve","april","arch","arctic",
"area","arena","argue","arm","armed","armor","army","around","arrange","arrest",
@DMeechan
DMeechan / keybase.md
Created June 4, 2019 22:50
keybase.md

Keybase proof

I hereby claim:

  • I am dmeechan on github.
  • I am dmeechan1 (https://keybase.io/dmeechan1) on keybase.
  • I have a public key whose fingerprint is 0E1C BB5A 2C69 62B7 D5DD 365A 73F2 F9BF 5083 D4EF

To claim this, I am signing this object:

@DMeechan
DMeechan / using-gpg.md
Created June 12, 2019 15:03
Using GPG

Prerequisites (Mac)

  • brew install gnupg

Setting up GitHub / GitLab

  1. Check public key ID: gpg --list-secret-keys --keyid-format LONG
  2. Then where it says sec rsa4096/KEY_ID, take the KEY_ID and put it into the command below:
  3. Copy public key: gpg --armor --export KEY_ID | pbcopy
  4. Open up GitHub (or GitLab): open https://github.com/settings/keys
@DMeechan
DMeechan / es-client-get-all-indices.js
Created June 14, 2019 10:31
Get all indices in Elasticsearch Client
await client.indices.get({ index: "*" })
@DMeechan
DMeechan / handy-neo4j-commands.md
Created June 18, 2019 10:39
Handy Neo4j Commands