Archive for the ‘dump’ Category

Wake-on-Lan (WOL) via Powershell

Despite what others may say, Wake-on-LAN isn’t magic and isn’t that complicated a feat to do anymore. With Powershell and .NET you can have the power of WOL without having to resort to third-party applications! Code/Script: param ( $targetMac, $network = [net.ipaddress]::Broadcast, $subnet = [net.ipaddress]::Broadcast ) try { if($network.gettype().equals([string])) { $network = [net.ipaddress]::Parse($network); } if($subnet.gettype().equals([string])) [...]

Net View for PowerShell

A little PowerShell tool that wraps around “Net view” and outputs objects instead of plain text. param ( [string]$Computer, [string]$Domain, [switch]$Cache, [switch]$All, [switch]$ResolveIP, [switch]$GetOS, [System.Management.Automation.PSCredential]$Credentials ) #Take some notes and clean up stuff. if($Computer.length -gt 1 -and !$Computer.startswith(“\\”)) { $Computer = “\\$computer”; #$computer = “/computer $computer”; } if($Domain.length -gt 1) { $Domain = “/DOMAIN:$Domain”; } [...]

MS-SQL Powershell database backup

Recently one of our SQL clusters decided it was a good idea to not backup databases anymore. So today my boss told me to get something to bandaid the situation until we can fix the situation (which will likely be an upgrade/reinstall). To learn more check out the MSDN pages on the Microsoft.SqlServer.Management.Smo namespace. # [...]

Link Dump#1: Je.org

In part of finding out if people like what I’m posting, I from time to time do a google search for the site or myself. Today, I came across some kind of neat links, some of my internet life and some of other people who unfortunatly share my name. http://www.cafepress.com/je_org //Probably the only place on [...]

There is no duck

I’ll often hear about some crazy law that’s on the books like it being illegal to cross the Minnesota border with a duck on ones head. One thing though you never see with any of these postings is references to those laws. In the case of the head duck, I looked myself and couldn’t find [...]

Time filter: C# Project files

Here’s a clightly cleaned up and better version of my time filter project thing, businesshours.zip. Archive contains code, build batch file, and binary. Some changes this round: Takes into account timezones. No longer is missing a day in it’s calculations. Debugging command line argument to track the inner workings. Should I feel like it: Code cleanup [...]

Time filtering: PHP version

As mentioned before, I originally wrote my time filter in PHP but converted it to C# for speed. So here it is for posterity and reference. class nonWorkRanges { public $parse; public $start; public $end; /* this::start and this::end stucture day = 1…31 month = 1…12 (xx = reoccurring) year = YYYY (xxxx = reoccurring) [...]

Time filtering for helpdesks

One of the goals this year is to have an average response time of 15 minutes for all helpdesk tickets, but we have one problem, no way to track or know if we’re getting closer. During my initial research, the only thing I could find was code that couldn’t be customized through configuration files so [...]

Route Kill v2

Last time around, Route Kill was pretty simple, just misdirect a route. This time, I added a little more code flexibility, some minor network monitoring and a maliciousness not seen before. This time, it kills the route (deletes the route from the table), packets aren’t even misdirected, they go nowhere! To get things ready for [...]

1989 Tiananmen Square Protests