Skip to content

Instantly share code, notes, and snippets.

Albert Armea aarmea

Block or report user

Report or block aarmea

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
aarmea / config.yaml
Last active Jan 17, 2018
AlexaPi config.yaml
View config.yaml
# See here for a detailed discussion:
# See
# to get a better idea of how to set things in here
# Level of log output
# default: INFO
# set to DEBUG for verbose logging
logging: INFO
aarmea /
Last active Mar 10, 2019
Open and close an animatronic mouth on a Raspberry Pi GPIO pin
#!/usr/bin/env python
This script animates a motorized mouth on a Raspberry Pi GPIO pin so that it
appears to be speaking alongside the audio on the specified PulseAudio source
(which usually should be a sink's monitor).
Find PA_SOURCE with `pactl list` and look for a monitor device that corresponds
aarmea /
Last active Feb 14, 2020
OpenCV Python example
aarmea /
Created Aug 16, 2017
OpenCV sample stereo camera usage
import numpy as np
import cv2
# Set up specifically for the ELP 1.0 Megapixel Dual Lens Usb Camera Module ...
# This camera enumerates as two separate cameras, hence the separate `left` and
# `right` VideoCapture instances. For a proper stereo camera with a common
# clock, use one VideoCapture instance and pass in whether you want the 0th or
# 1st camera in retrieve().

Keybase proof

I hereby claim:

  • I am aarmea on github.
  • I am aarmea ( on keybase.
  • I have a public key whose fingerprint is 39AC BDA7 9EF6 6E60 8651 5881 6643 7436 E180 7300

To claim this, I am signing this object:

aarmea / makewin10greatagain.reg
Created Oct 22, 2016
Disable automatic reboots with logged in users
View makewin10greatagain.reg
Windows Registry Editor Version 5.00
aarmea / CapsCtrlEsc.ahk
Last active May 17, 2016
Caps Lock to Control and Escape
View CapsCtrlEsc.ahk
; Maps {Caps Lock}+key to {Ctrl}+key and {Caps Lock} by itself to {Esc}.
; Does nothing on Remote Desktop windows to prevent conflicts.
; Modified from
SetCapsLockState Off ; This doesn't work on mstsc, so we don't attempt to resend CapsLock manually
SetTitleMatchMode, 2 ; String passed to IfWinActive can be anywhere in the window title
SetTitleMatchMode, Fast
aarmea / bash.bat
Last active Aug 29, 2015
Invoke msysGit Bash anywhere
View bash.bat
@ Creates a msysGit Bash instance in your Windows shell session while keeping its environment variables.
@ Requires msysGit (obviously), which can be installed either from their website or through choco.
@ Put this file somewhere in your %PATH%, like C:\Windows\System32 (if you put it there, you'll also want it in C:\Windows\SysWOW64).
"C:\Program Files (x86)\Git\bin\sh.exe" --login -i
aarmea /
Last active Dec 14, 2015
An attempt at deriving the script used to invoke Assignment 3 for Carothers' course in Parallel Programming and Computing at RPI on the provided Blue Gene/Q system
# you should define your own $name_of_executable
$coresPerNode = 16
for nodes in 4 8 16 32 64
for ranksPerCore in 1 2 4
srun -o output-$nodes-$ranksPerCore.txt --nodes=$nodes --ntasks=$((cores*ranksPerCore*coresPerNode)) --overcommit --runjob-opts="--mapping TEDCBA" ./$name_of_executable
You can’t perform that action at this time.