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
{ | |
"Comment": "string", | |
"Changes": [ | |
{ | |
"Action": "CREATE"|"DELETE", | |
"ResourceRecordSet": { | |
"Name": "string", | |
"Type": "SOA"|"A"|"TXT"|"NS"|"CNAME"|"MX"|"PTR"|"SRV"|"SPF"|"AAAA", | |
"SetIdentifier": "string", | |
"Weight": long, |
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
A Record | |
{ | |
"Changes": [ | |
{ | |
"Action": "CREATE", | |
"ResourceRecordSet": { | |
"Name": "<FQDN>", | |
"Type": "A", | |
"TTL": 300, | |
"ResourceRecords": [ |
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
#include <mysql.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
main() { | |
MYSQL *conn; | |
MYSQL_RES *res; | |
MYSQL_ROW row; | |
char *server = "localhost"; |
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 | |
### BEGIN INIT INFO | |
# Provides: setterm | |
# Required-Start: | |
# Required-Stop: | |
# Default-Start: 3 5 | |
# Default-Stop: 0 1 2 6 | |
# Short-Description: disable console blanking | |
# Description: ref. |
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
while read SERVICE | |
do | |
service $SERVICE stop | |
chkconfig $SERVICE off | |
done << EOL | |
acpid | |
auditd | |
autofs | |
bluetooth | |
firstboot |
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/bash | |
mkdir /mnt/cdrom | |
mount -r /dev/cdrom /mnt/cdrom | |
cd /tmp | |
tar zxf /mnt/cdrom/VMwareTools-*.tar.gz | |
./vmware-tools-distrib/vmware-install.pl --default |
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
while read SERVICE | |
do | |
service $SERVICE stop | |
chkconfig $SERVICE off | |
done << EOL | |
ip6tables | |
iptables | |
netfs | |
EOL |
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 crypt import crypt | |
from random import choice | |
import string | |
import sys | |
salt_pop = string.letters + string.digits + '.' + '/' | |
salt = '' | |
for i in range(8): | |
salt = salt + choice(salt_pop) |
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
# | |
# get_packages.rb <el5|el6|deb> | |
# | |
require 'net/http' | |
require 'rexml/document' | |
case ARGV[0] | |
when 'el5', 'el6', 'deb' | |
package = ARGV[0] | |
else |
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
num calls time self name | |
----------------------------------------------------------------------------------- | |
1) 1 205.59 205.59 71.91% 205.59 205.59 71.91% rbenv | |
2) 4 40.86 10.21 14.29% 40.86 10.21 14.29% compaudit | |
3) 2 79.44 39.72 27.79% 38.58 19.29 13.50% compinit | |
4) 1 0.29 0.29 0.10% 0.29 0.29 0.10% bashcompinit | |
5) 2 0.22 0.11 0.08% 0.22 0.11 0.08% compdef | |
6) 1 0.21 0.21 0.07% 0.21 0.21 0.07% is-at-least | |
7) 1 0.16 0.16 0.05% 0.07 0.07 0.03% complete | |
8) 1 0.05 0.05 0.02% 0.05 0.05 0.02% exists |