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 | |
use strict; | |
use warnings; | |
use LWP::Simple; | |
print "What site would you like to check?"; | |
my $site = <STDIN>; | |
print "What file would you lke to save to?"; | |
my $file = <STDIN>; |
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 | |
################# FreeBSD Log scraper ####################### | |
############################################################# | |
# Basic usage: | |
# Perl scrape_log.pl -keywords=[KEYWORD,(S)] -log=[LOGNAME] | |
# | |
# -keywords= List of keywords to search for in logs | |
# -log= Name of the log file(s) | |
# -dir= Location of remote log file(s) | |
# |
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
//#include "stdafx.h" | |
#include "serial.h" | |
Serial::Serial(const TCHAR *pchPort, HWND &hwnd) // Constructor | |
{ | |
SetOnEventHandle(hwnd); | |
SetPort(pchPort); | |
m_bIsConnected = false; | |
} |
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
#include "stdafx.h" | |
#include "serial.h" | |
Serial::Serial(const TCHAR *pchPort, HWND &hwnd) // Constructor | |
{ | |
SetOnEventHandle(hwnd); | |
SetPort(pchPort); | |
m_bIsConnected = false; | |
} |
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
Here is a list of scopes to use in Sublime Text 2 snippets - | |
ActionScript: source.actionscript.2 | |
AppleScript: source.applescript | |
ASP: source.asp | |
Batch FIle: source.dosbatch | |
C#: source.cs | |
C++: source.c++ | |
Clojure: source.clojure | |
CoffeeScript: source.coffee |