SN98601 IO port | SN98660 IO port | SN98661 IO port | Design function | Remarks |
---|---|---|---|---|
MS1_IO2 | MS1_IO2 | MS1_IO2 | IR CUT Drive Control Output A | |
AUD1_IO3 | AUD_IO0 | AUD_IO0 | Infrared Lamp Control | |
AUD1_IO4 | AUD_IO1 | AUD_IO1 | IR CUT Drive Control Output B | |
MS1_IO5 | AUD_IO2 | AUD_IO2 | Day / Night mode Detection Port | |
MS1_IO6 | AUD_IO3 | AUD_IO3 | Sensor Power Control | H: Enable L: Disable |
MS1_IO7 | AUD_IO4 | AUD_IO4 | Speaker SNAP01 Control | H: Enable L: Disable |
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
ldap_server ldap_users { | |
url 'ldaps://ldap.example.org:636/dc=org?uid?sub?...'; | |
require valid_user; | |
} | |
ldap_server ldap_groups { | |
url 'ldaps://ldap.example.org:636/dc=org?uid?sub?(objectClass=person)'; | |
group_attribute "uniqueMember"; | |
group_attribute_is_dn on; | |
require group 'cn=staff,ou=groups,dc=org'; |
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/sh | |
#Run like this: | |
# wget -O - https://gist.githubusercontent.com/davidjb/8777451/raw/test-io.sh | sudo sh | |
# or | |
# curl https://gist.githubusercontent.com/davidjb/8777451/raw/test-io.sh | sudo sh | |
if command -v yum > /dev/null 2>&1; then | |
sudo rpm -ihv http://mirrors.kernel.org/fedora-epel/6/x86_64/epel-release-6-8.noarch.rpm | |
sudo yum install -y fio git | |
elif command -v apt-get > /dev/null 2>&1; then | |
sudo apt-get install -y fio git |
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
<style> | |
[style], * { | |
background-attachment: scroll !important; | |
} | |
</style> |
-
Install Certbot (via https://certbot.eff.org/)
-
Insert this into
/etc/crontab
:/usr/local/bin/certbot-auto renew --renew-hook "service nginx reload" --no-self-upgrade -v >> /var/log/letsencrypt/renew.log 2>&1
Check to make sure everything is working okay. This should cause nginx to auto-reload whenever there's a new cert.
RPM building is a little complicated, but here's a variety of resources and snippets for making things easier.
- Overall RPM guide: <https://rpm-guide.readthedocs.io/en/latest/rpm-guide.html>
- Macros and shorthand in spec files: <http://ftp.rpm.org/max-rpm/s1-rpm-inside-macros.html>
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
sudo wget http://download.virtualbox.org/virtualbox/4.3.30/VBoxGuestAdditions_4.3.30.iso -O vbox.iso | |
sudo mount -o loop vbox.iso /media | |
sudo /media/VBoxLinuxAdditions.run uninstall | |
sudo yum install -y kernel kernel-devel | |
# Now, reboot and vb-guest will auto-install the correct version |
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
[extra-parts] | |
parts += | |
python-mysql | |
[python-mysql] | |
recipe = zc.recipe.egg | |
egg = MySQL-python | |
[instance1] | |
eggs += |
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
#Notes about JPype | |
#------------------------------------ | |
#You need to install default-jre / openjdk-6-jre (Debian/Ubuntu), or | |
#java-1.6.0-openjdk (RHEL/CentOS) *and* associated development packages. | |
#The JAVA_HOME variable should be | |
#set as an environmental variable prior to using the following. | |
#You might want to use the following to set this: | |
#Ubuntu: export JAVA_HOME="/usr/lib/jvm/java-6-openjdk" | |
#RHEL: export JAVA_HOME="/etc/alternatives/java_sdk" | |
#and include these in your profile (eg ~/.bash_profile) to load them on |
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
from datetime import datetime, timedelta | |
import ago | |
def human(date, | |
precision=2, | |
past_fmt="{} ago", | |
present_fmt="right now", | |
future_fmt="in {}", | |
present_tolerance=timedelta(0)): |