Skip to content

Instantly share code, notes, and snippets.

#!/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>;
@jasin
jasin / scrape_logs.pl
Last active July 9, 2016 16:41
log scraper for my FreeBSD server written in Perl as an exercise
#!/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)
#
//#include "stdafx.h"
#include "serial.h"
Serial::Serial(const TCHAR *pchPort, HWND &hwnd) // Constructor
{
SetOnEventHandle(hwnd);
SetPort(pchPort);
m_bIsConnected = false;
}
#include "stdafx.h"
#include "serial.h"
Serial::Serial(const TCHAR *pchPort, HWND &hwnd) // Constructor
{
SetOnEventHandle(hwnd);
SetPort(pchPort);
m_bIsConnected = false;
}
@jasin
jasin / scopes.txt
Last active August 29, 2015 14:06 — forked from iambibhas/scopes.txt
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