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
parsedXml <- tryCatch( ParseAlert(xmlParse(alert.xml)), | |
error = function(e){ warning(paste("Problem encountered parsing alert XML for:",curMsgID,continuing)); | |
warning(geterrmessage()); | |
data.frame(NA) | |
return(NA) | |
} | |
) |
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
#Original source: http://forums.macrumors.com/showthread.php?t=789978 | |
hdiutil compact /path/to/xxxxx.sparseimage |
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
#Setup and launch an RHEL EC2 instance | |
#Ensure that the security group (firewall) allows access to port 8787 | |
#Login via SSH | |
#Guide: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AccessingInstancesLinux.html | |
ssh -i keyfile.pem [email protected] | |
#Keyfile.pem is the name of your the keyfile you generated with AWS. | |
#RHEL users are either root or ec2-user | |
#ec2-11-22-33-44.compute-1.amazonaws.com is the "actuall" public name assigned by AWS |
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/sh | |
# Converts a mysqldump file into a Sqlite 3 compatible file. It also extracts the MySQL `KEY xxxxx` from the | |
# CREATE block and create them in separate commands _after_ all the INSERTs. | |
# Awk is choosen because it's fast and portable. You can use gawk, original awk or even the lightning fast mawk. | |
# The mysqldump file is traversed only once. | |
# Usage: $ ./mysql2sqlite mysqldump-opts db-name | sqlite3 database.sqlite | |
# Example: $ ./mysql2sqlite --no-data -u root -pMySecretPassWord myDbase | sqlite3 database.sqlite |
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
.node { | |
cursor: pointer; | |
} | |
.node circle { | |
fill: #fff; | |
stroke: #f98415; | |
stroke-width: 1.5px; | |
} |
NewerOlder