This is what I use to build my slides. I have the following goals:
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 | |
if [ -z "$2" ]; then | |
echo Usage: "$0" hostname community | |
exit 4 | |
fi | |
srv="$1" | |
com="$2" | |
snmp="snmpget -v 2c -c $2 -Cf -Ov -OQ $srv" |
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 <stdio.h> | |
#include <stdlib.h> | |
#include <sys/io.h> | |
int main() { | |
unsigned int data; | |
data = inl(0x66c); | |
prinf ("%X\n", data); | |
return 0; |
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
<?php | |
include "config.php"; | |
global $dbh; | |
function do_query($query, $params=array()) { | |
global $dbh; | |
try { | |
$stmt = $dbh->prepare($query); | |
if (empty($params)) { |
NewerOlder