Skip to content

Instantly share code, notes, and snippets.

View jplomas's full-sized avatar

JP Lomas jplomas

View GitHub Profile

Keybase proof

I hereby claim:

  • I am jplomas on github.
  • I am jplomas (https://keybase.io/jplomas) on keybase.
  • I have a public key ASCLjpqstiH6mCqEliA9ORciNDkx958io2YoyE1YO9vC2Ao

To claim this, I am signing this object:

@jplomas
jplomas / github labels.json
Created March 12, 2018 12:35
JSON sensible GitHub labels
[
{
"name": "Priority: Critical",
"color": "e11d21"
},
{
"name": "Priority: High",
"color": "eb6420"
},
{
@jplomas
jplomas / index.html
Created March 27, 2018 15:44
Validate QRL address
<div class="ui centered grid">
<div class="row">
<div class="eight wide column">
<form class="ui form">
<h1 class="ui header">QRL Address validator</h1>
<div class="field">
<input class="ui input q" value="Q01060060d974fd1faf2c2b0c91d9e33cae9f1b42208c62169f946373ae64198b97b6479f6c8ce5"></input>
</div>
<button class="ui primary button">Check</button>
</form>
@jplomas
jplomas / Eslint QRL
Created July 14, 2018 16:07
Linting setup for QRL meteor.js projects
npm install -g babel-eslint eslint-config-airbnb eslint-plugin-import eslint-plugin-meteor eslint-plugin-react eslint-plugin-jsx-a11y eslint-import-resolver-meteor eslint @meteorjs/eslint-config-meteor eslint-config-airbnb-base
@jplomas
jplomas / pgp.asc
Created August 27, 2018 19:10
PGP public key -- jp@theqrl.org
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBFkaEMcBEACrziClLf9lZBEa+j5w1wIw6WUOSGB9eEDnNrgB+JumpsYUcIQI
vDvAkgkxcGcgGu9W4En4fXkRJ2WPvZKd0URsyEgq7bsxBYy/LjPJUMtqd3dStDR+
6pPJq573ZL5UAOWkuxNAwLLeE1k3YZjlWQGKASB1TRvXd5XyCPortvokZ1vMZFx4
nZVrA2bVx3o5lWv8Ggv9gtqBjfwrVLs/a5VeV9pZqgAOVVtT4k/sGoAlhkmVLC0W
mz1EcFmgBK4J7HB4S2GSP3UlLaN0ADCla6Xgq9yF+s7Bmwuj3FAfbhh/VxU1hPrK
+j//Vma9SGJEgCmgL/56slyy0QBbqyRuHY0OKnY3V4g9OVCV67RDXX8Nq84+/mrw
j4jyHUZfpoalxs98kEwP9aJujDxCgZ+KZAAki1Vl94vKxbS6xvuNKQDXeG4QBYVU
zV6TNbStTNH1qD9NsYzm4TNLNwNOPLGAO+ODz1GL7HkbtodiwCq884ULv60VUBsQ
which cmake
... probably shows version 3.12.4 -- which has some breaking changed. To fix:
brew remove cmake
brew install wget
wget https://cmake.org/files/v3.10/cmake-3.10.3-Darwin-x86_64.tar.gz
tar xf cmake-3.10.3-Darwin-x86_64.tar.gz
export PATH="`pwd`/cmake-3.10.3-Darwin-x86_64/CMake.app/Contents/bin:$PATH"
which cmake
@jplomas
jplomas / gmc.sh
Last active April 13, 2021 06:39
Shell script to validate GMC number
#!/bin/sh
if [ $# -eq 0 ]; then
echo "No argument (GMC number) provided"
exit 1
fi
RES=$(cURL -s https://www.gmc-uk.org/doctors/$1 | grep -A2 "<div class=\"c-dr-details__status-description\">" | grep -E ' {20,}' | sed -e 's/^[ \t]*//')
if [ -z "$RES" ]; then
echo "Not found"
exit 1
else
@jplomas
jplomas / gen_hash.sh
Created January 20, 2022 13:53
Hash [shasum (512)] all files in current directory
for file in ./*
do
shasum -a 512 "$file" | sed 's@./@@g' >> "$file.shasum.asc"
done
@jplomas
jplomas / starship.toml
Last active April 12, 2022 09:39
Starship config
# Inserts a blank line between shell prompts
add_newline = true
# Replace the "❯" symbol in the prompt with "➜"
[character] # The name of the module we are configuring is "character"
success_symbol = "[➜](bold green)" # The "success_symbol" segment is being set to "➜" with the color "bold green"
# Disable the package module, hiding it from the prompt completely
[package]
disabled = true
#!/bin/bash
inRepo=`git rev-parse --is-inside-work-tree 2> /dev/null;`
echo $inRepo
if [[ $inRepo != "true" ]]
then
echo 'Not in a repo'
exit 1
fi