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
| /* ~/Library/KeyBindings/DefaultKeyBinding.Dict | |
| This file remaps the key bindings of a single user on Mac OS X 10.5 to more | |
| closely match default behavior on Windows systems. This makes the Command key | |
| behave like Windows Control key. To use Control instead of Command, either swap | |
| Control and Command in Apple->System Preferences->Keyboard->Modifier Keys... | |
| or replace @ with ^ in this file. | |
| Here is a rough cheatsheet for syntax. | |
| Key Modifiers |
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
| echo -e "--- CPU Stats ---"; | |
| istats cpu; | |
| echo -e "\n--- Fan Stats ---"; | |
| istats fan; |
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
| full=$(pmset -g batt | { read; read n full; echo "$full"; }) | |
| batt=$(echo "$full" | cut -d';' -f1 | tr -d '%') | |
| status=$(echo "$full" | cut -d';' -f2 | tr -d ' ') | |
| time=$(echo "$full" | cut -d';' -f3 | sed 's/^ *//') | |
| mousebatt=$(ioreg -n "BNBMouseDevice" | grep -i '"batterypercent" =' | sed 's/[^[:digit:]]//g') | |
| noc=$'\e[39m' | |
| if (($batt >= 66)); then battc=$'\e[32m'; | |
| elif (($batt >= 33)); then battc=$'\e[33m'; | |
| else battc=$'\e[31m'; |
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 | |
| add_action('wp_head', 'show_template'); | |
| function show_template() { | |
| global $template; | |
| print_r($template); | |
| } |
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
| { | |
| "AL": "Alabama", | |
| "AK": "Alaska", | |
| "AS": "American Samoa", | |
| "AZ": "Arizona", | |
| "AR": "Arkansas", | |
| "CA": "California", | |
| "CO": "Colorado", | |
| "CT": "Connecticut", | |
| "DE": "Delaware", |
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
| $('#elementID').keydown(function (event) { | |
| if (event.keyCode > 57) { | |
| if (event.keyCode < 96 || event.keyCode > 105) { | |
| event.preventDefault(); | |
| } | |
| } | |
| }); |
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 thecasey_redirect() { | |
| if ( is_page() ) { | |
| global $post; | |
| $post_id = $post->ID; | |
| if ( !empty( $post_id ) ) | |
| $redirect = get_post_meta ( $post_id, 'redirect', true); | |
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
| <? // Open tag added for proper color formatting- DO NOT COPY THIS LINE | |
| // Function to override the set value of Post Limit in Wordpress | |
| function theme_post_override ( $query ) { | |
| // Only act on author pages | |
| if ( is_author() ) { | |
| // Display ALL posts | |
| $query->set( 'posts_per_page', -1 ); | |
| return; |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <style> | |
| body { background-color: black; color: white;} | |
| .spot1 { left: 40%; -webkit-animation: move 5s infinite;} | |
| .spot2 { left: 60%; -webkit-animation: move2 5s infinite;} | |
| .spotlight { | |
| position: absolute; | |
| width: 53px; |
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
| #!/usr/bin/perl -w | |
| use URI::Escape; #Use URI decoding module. | |
| $#ARGV >= 0 or die "No log file name supplied."; | |
| #Assign argument (source file) to variable | |
| $filename = $ARGV[0] . "-parsed.log"; | |
| #Print start message in terminal. | |
| print "\n *** Processing log file for\: $ARGV[0] ***\n \n"; | |
| print "Please wait... \n"; |