Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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 | |
# Send a Twilio SMS when a person logs in over SSH or uses sudo. Michael Fincham <[email protected]> 2017-05-22 | |
# | |
# For a Debian host: | |
# - Install the packages for libpam-script and curl | |
# - Edit this script to set the configuration variables, and place it in /usr/share/libpam-script/pam_script_acct | |
# - Add this line to /etc/pam.d/common-account: | |
# account optional pam_script.so |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
$fn = 50; | |
corner_radius = 7; | |
module lens(h) { | |
// lens is a cube([192.96, 110.76, 5]) with rounded corners | |
hull() { | |
cylinder(r=corner_radius, h=h); | |
translate([192.96, 110.76, 0]) cylinder(r=corner_radius, h=h); | |
translate([192.96, 0, 0]) cylinder(r=corner_radius, h=h); | |
translate([0, 110.76, 0]) cylinder(r=corner_radius, h=h); |
This file contains hidden or 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
1 x Pololu DRV8835 Dual Motor Driver Shield for Arduino = @ $10.00 ea. | |
1 x Romi Chassis Kit - Pink = @ $40.00 ea. | |
1 x RedBoard - Programmed with Arduino = @ $31.00 ea. | |
1 x RedBot Sensor - Mechanical Bumper = @ $7.00 ea. | |
Depending on how much you want to thrash the motors, you might want a replacement regulator to power the RedBoard (knock off arduino) so you can use fewer batteries and run the whole thing at a lower voltage. Pololu 5V Step-Up/Step-Down Voltage Regulator S7V8F5 will give you 5v to feed in to the RedBoard's Vcc after the regulator. | |
Whatever sensors appeal to you, here are some suggestions: | |
1 x Mini Photocell = @ $1.00 ea. | |
1 x Ultrasonic Range Measurement Module - HC-SR04 = @ $7.00 ea. |
This file contains hidden or 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
/* | |
* Sandbox the execution of `ls' to just a subset of the available Linux syscalls. | |
*/ | |
#include <seccomp.h> | |
#include <stdio.h> | |
#include <unistd.h> | |
int main(int argc, char *argv[]) { | |
scmp_filter_ctx ctx = NULL; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
$fn = 50; | |
module foot() { | |
cylinder(r=3,h=1); | |
hull() { | |
translate([0, 0, 0.99]) | |
cylinder(r=2.8, h=0.01); | |
translate([0, 0, 5]) |