I hereby claim:
- I am aarmea on github.
- I am aarmea (https://keybase.io/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:
| #!/bin/bash | |
| # you should define your own $name_of_executable | |
| $coresPerNode = 16 | |
| for nodes in 4 8 16 32 64 | |
| do | |
| for ranksPerCore in 1 2 4 | |
| do | |
| srun -o output-$nodes-$ranksPerCore.txt --nodes=$nodes --ntasks=$((cores*ranksPerCore*coresPerNode)) --overcommit --runjob-opts="--mapping TEDCBA" ./$name_of_executable |
| @ECHO OFF | |
| @ 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 |
| ; 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 http://www.autohotkey.com/board/topic/104173-capslock-to-control-and-escape/?p=669777 | |
| 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 | |
| CapsLock:: |
| Windows Registry Editor Version 5.00 | |
| [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU] | |
| "NoAutoUpdate"=dword:00000000 | |
| "AUOptions"=dword:00000003 | |
| "NoAutoRebootWithLoggedOnUsers"=dword:00000001 |
I hereby claim:
To claim this, I am signing this object:
| import numpy as np | |
| import cv2 | |
| # Set up specifically for the ELP 1.0 Megapixel Dual Lens Usb Camera Module ... | |
| # https://www.amazon.com/ELP-Megapixel-Camera-Module-Biometric/dp/B00VG32EC2/ref=sr_1_4?ie=UTF8&qid=1502756603&sr=8-4&keywords=stereo+camera | |
| # 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(). |
This is a set of scripts that calibrates and calculates a depth map from a stereo camera. It is primarily written with this ELP stereo camera in mind, but it theoretically should work with other hardware.
See for a full writeup.
| #!/usr/bin/env python | |
| """ | |
| animatronic_mouth.py | |
| 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 |
| # See here for a detailed discussion: https://albertarmea.com/post/alexa-tree/ | |
| # See https://github.com/alexa-pi/AlexaPi/wiki/Audio-setup-&-debugging | |
| # 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 |
| <?php | |
| /* | |
| Plugin Name: Force Login | |
| Plugin URI: https://wordpress.org/plugins/wp-force-login/ | |
| Description: Easily hide your WordPress site from public viewing by requiring visitors to log in first. Activate to turn on. | |
| Version: 5.4 | |
| Author: Kevin Vess | |
| Author URI: http://vess.me/ | |
| Text Domain: wp-force-login |