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/bash | |
find / -type f -size +50000k -exec ls -lh {} \; | awk '{ print $9 ": " $5 }' |
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
## Last commit: 2011-07-07 17:54:33 UTC by root | |
version 10.3R1.9; | |
system { | |
autoinstallation { |
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
Array | |
( | |
[HTTP_HOST] => secretkey-linickx.rhcloud.com | |
[HTTP_USER_AGENT] => Mozilla/5.0 (Macintosh; Intel Mac OS X ) AppleWebKit/ (KHTML, like Gecko) Chrome/ Safari/ | |
[HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 | |
[HTTP_ACCEPT_ENCODING] => gzip,deflate,sdch | |
[HTTP_ACCEPT_LANGUAGE] => en-US,en;q=0.8 | |
[HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.3 | |
[HTTP_X_FORWARDED_FOR] => x | |
[HTTP_X_FORWARDED_HOST] => secretkey-linickx.rhcloud.com |
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
<?php | |
// Line 36 | |
# How do we connect to phpbb? | |
if ($lnx_PRT_options['prt_phpbb_dbinsecureon'] != "1") { | |
# COnnect to phpBB and get a list of forums | |
$wpdb->select($lnx_PRT_options['prt_phpbb_db']); | |
# Run The query | |
$tt_results = $wpdb->get_results("SELECT * FROM $lnx_PRT_options[prt_phpbb_tt] LIMIT 3"); // Topic Table Querey - check connectivity |
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
<?php | |
function cidr2mask($netmask) { | |
$netmask_result=""; | |
for($i=1; $i <= $netmask; $i++) { | |
$netmask_result .= "1"; | |
} | |
for($i=$netmask+1; $i <= 32; $i++) { |
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
<?php | |
# Print all the arguments from CLI | |
print_r($_SERVER['argv']); | |
# The first argument $_SERVER['argv'][0] is always the name that was used to run the script. | |
# Reference: http://php.net/manual/en/reserved.variables.argv.php | |
echo $_SERVER['argv'][0]; |
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/bash | |
# hubot | |
# chkconfig: 345 20 80 | |
# description: hubot | |
# processname: hubot | |
# REFERENCE: http://werxltd.com/wp/2012/01/05/simple-init-d-script-template/ | |
# This script assumes you have a user called "hubot" on your system and that hubot is installed in /opt/hubot |
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
NickelMac:~ nick$ brew doctor | |
Your system is raring to brew. | |
NickelMac:~ nick$ |
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
checking for a BSD-compatible install... /usr/bin/install -c | |
checking whether build environment is sane... yes | |
checking for a thread-safe mkdir -p... configure_aux/install-sh -c -d | |
checking for gawk... no | |
checking for mawk... no | |
checking for nawk... no | |
checking for awk... awk | |
checking whether make sets $(MAKE)... yes | |
checking build system type... x86_64-apple-darwin12.2.0 | |
checking host system type... x86_64-apple-darwin12.2.0 |
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
checking for a BSD-compatible install... /usr/bin/install -c | |
checking whether build environment is sane... yes | |
checking for a thread-safe mkdir -p... configure_aux/install-sh -c -d | |
checking for gawk... no | |
checking for mawk... no | |
checking for nawk... no | |
checking for awk... awk | |
checking whether make sets $(MAKE)... yes | |
checking build system type... x86_64-apple-darwin12.2.0 | |
checking host system type... x86_64-apple-darwin12.2.0 |
OlderNewer