I hereby claim:
- I am ryanpetris on github.
- I am petris (https://keybase.io/petris) on keybase.
- I have a public key whose fingerprint is 80EF 65D8 A96E 88D2 6DD1 459F C3D1 5EFA 013E 18C2
To claim this, I am signing this object:
# Remove NVIDIA 3D Controller devices, if present | |
ACTION=="add", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x030200", ATTR{remove}="1" | |
# Remove NVIDIA USB xHCI Host Controller devices, if present | |
ACTION=="add", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x0c0330", ATTR{remove}="1" | |
# Remove NVIDIA USB Type-C UCSI devices, if present | |
ACTION=="add", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x0c8000", ATTR{remove}="1" | |
# Remove NVIDIA Audio devices, if present |
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
KEYNAME="<name of key>" | |
KEYPATH="" | |
if [ -f /etc/pki/tls/private/$KEYNAME.key ]; then | |
KEYPATH="/etc/pki/tls" | |
fi | |
if [ -f /etc/ssl/private/$KEYNAME.key ]; then |
#!/bin/bash | |
adduser petris | |
passwd petris | |
usermod -a -G wheel petris | |
sed -i "s/#PermitRootLogin yes/PermitRootLogin no/" /etc/ssh/sshd_config | |
sed -i -r "s/# (%wheel[ \t]*ALL=\(ALL\)[ \t]*ALL)/\1/" /etc/sudoers | |
rm -f /etc/localtime | |
ln -s /usr/share/zoneinfo/America/New_York /etc/localtime | |
yum install -y http://linux.mirrors.es.net/fedora-epel/beta/7/x86_64/epel-release-7-0.2.noarch.rpm | |
yum install -y htop yum-cron nano |
#!/bin/bash | |
adduser petris | |
passwd petris | |
usermod -a -G wheel petris | |
sed -i "s/#PermitRootLogin yes/PermitRootLogin no/" /etc/ssh/sshd_config | |
sed -i -r "s/# (%wheel[ \t]*ALL=\(ALL\)[ \t]*ALL)/\1/" /etc/sudoers | |
rm -f /etc/localtime | |
ln -s /usr/share/zoneinfo/America/New_York /etc/localtime | |
yum install -y http://mirror.pnl.gov/epel/6/i386/epel-release-6-8.noarch.rpm | |
yum install -y htop yum-cron nano |
#!/bin/bash | |
apt-get install -y snmpd | |
sed -ri "s/^SNMPDOPTS=.*$/SNMPDOPTS='-Lsd -Lf \/dev\/null -u snmp -p \/var\/run\/snmpd.pid'/" /etc/default/snmpd | |
mkdir /opt/observium | |
wget -O /opt/observium/distro http://www.observium.org/svn/observer/trunk/scripts/distro | |
chmod 755 /opt/observium/distro | |
cp -a /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.dpkg-new | |
cat <<EOF > /etc/snmp/snmpd.conf | |
agentaddress udp:161 | |
agentaddress udp6:161 |
#!/bin/bash | |
yum install -y net-snmp | |
echo "OPTIONS=\"-Lsd -Lf /dev/null -p /var/run/snmpd.pid\"" >> /etc/sysconfig/snmpd | |
mkdir /opt/observium | |
wget -O /opt/observium/distro http://www.observium.org/svn/observer/trunk/scripts/distro | |
chmod 755 /opt/observium/distro | |
cp -a /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.rpmnew | |
cat <<EOF > /etc/snmp/snmpd.conf | |
agentaddress udp:161 | |
agentaddress udp6:161 |
#!/bin/bash | |
adduser fabric | |
echo "fabric ALL = NOPASSWD: ALL" > /etc/sudoers.d/fabric | |
chmod 440 /etc/sudoers.d/fabric | |
su fabric -c "mkdir ~/.ssh" | |
su fabric -c "echo \"<ssh key>\" >> ~/.ssh/authorized_keys" |
<?php | |
$apikey = ''; | |
$apihash = ''; | |
if (!isset($apikey) || $apikey == '' || !isset($_REQUEST["key"]) || $_REQUEST["key"] != $apikey) { | |
die("<status>error</status><statusmsg>invalid credentials</statusmsg>"); | |
} | |
if (!isset($apihash) || $apihash == '' || !isset($_REQUEST["hash"]) || $_REQUEST["hash"] != $apihash) { | |
die("<status>error</status><statusmsg>invalid credentials</statusmsg>"); |
<?php | |
require('MulticraftAPI.php'); | |
$api = new MulticraftAPI('http://<your multicraft url>/api.php', '<your username>', '<your api key>'); | |
function getData($result) { | |
if (!$result['success']) { | |
die($result['errors'][0]); | |
} |