I hereby claim:
- I am markoudev on github.
- I am mov (https://keybase.io/mov) on keybase.
- I have a public key whose fingerprint is 30FE 1501 5103 AC57 E782 6B43 6222 7229 0E30 E73B
To claim this, I am signing this object:
module DeepScrub | |
# From a hash or array, scrub or only include specified fields, and | |
# recursively go through any sub-arrays or sub-hashes. | |
def deep_scrub(hash_or_array, fields, mode: :safe) | |
unless [:safe, :scrub].include?(mode) | |
raise ArgumentError, "mode must be one of :safe or :scrub" | |
end | |
if hash_or_array.is_a?(Array) |
# config/initializers/types.rb | |
require 'types/uuid' | |
ActiveModel::Type.register(:uuid, Types::UUID) |
#!/bin/bash | |
while true; do | |
nice -n 19 rpi-rf_receive -g 23 2>&1 | { | |
while read -r LINE; do | |
code=`echo ${LINE} | awk '{print $6}'` | |
if [[ "$code" =~ ^[0-9]+$ ]] | |
then | |
mosquitto_pub -h localhost -t rfrx -m ${code} | |
fi |
I hereby claim:
To claim this, I am signing this object: