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
# frozen_string_literal: true | |
require 'progress_bar' | |
require 'json' | |
require 'open-uri' | |
namespace :pseudo do | |
desc 'Pseudonymize user data' | |
task :perform => :environment do | |
count = User.count # get count of users currently in DB | |
bar = ProgressBar.new(count) # prepare some nice output |
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
### Keybase proof | |
I hereby claim: | |
* I am steviee on github. | |
* I am steviee77 (https://keybase.io/steviee77) on keybase. | |
* I have a public key ASDMYz6BTIRxGZX4z3TX6OoKI0I5omZ1b9955ha_E1DtXAo | |
To claim this, I am signing this object: |
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/share/X11/xorg.conf.d/99-calibration.conf | |
Section "InputClass" | |
Identifier "calibration" | |
MatchProduct "Goodix Capacitive TouchScreen" | |
MatchIsTouchscreen "1" | |
Driver "evdev" | |
Option "MinX" "65409" | |
Option "MaxX" "-216" | |
Option "MinY" "474" | |
Option "MaxY" "65279" |
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
#!/bin/bash | |
# Update system | |
sudo apt-get update && sudo apt-get dist-upgrade | |
# Install Java | |
sudo apt-get install default-jdk-headless | |
# Download & Install Hadoop | |
wget http://apache.mirrors.tds.net/hadoop/common/hadoop-2.8.2/hadoop-2.8.2.tar.gz -P ~/Downloads |
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
#include <RF24.h> | |
#include <SPI.h> | |
// PIR variables | |
byte pirPin = 2; | |
int pirCalibrationTime = 30; | |
// Radio with CE & CSN connected to pins 7 & 8 | |
RF24 radio(7, 8); |