Skip to content

Instantly share code, notes, and snippets.

@vnisor
vnisor / WhoisCommand.cs
Created February 23, 2016 19:57 — forked from c1982/WhoisCommand.cs
PowerShell Whois Module
// Author: Oğuzhan YILMAZ
// Web : www.oguzhan.info
// Email : aspsrc@gmail.com
// 12/13/2011
namespace PoshWhois
{
using System;
using System.Collections.Generic;
using System.IO;
@vnisor
vnisor / Whois.cs
Created February 23, 2016 19:56 — forked from vkbandi/Whois.cs
A C#.net class to fetch whois information for a .com domain name
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net.Sockets;
using System.Text;
using System.Threading.Tasks;
namespace DomainTools
{
@vnisor
vnisor / himawari.ps1
Created February 3, 2016 23:28 — forked from MichaelPote/himawari.ps1
Windows Powershell Script to download the latest image from the Himawari-8 satelite, combine the tiles into a single image, convert to jpg and then set as the desktop background.
#
# Himawari-8 Downloader
#
#
#
# This script will scrape the latest image from the Himawari-8 satellite, recombining the tiled image,
# converting it to a JPG which is saved in My Pictures\Himawari\ and then set as the desktop background.
#
# http://himawari8.nict.go.jp/himawari8-image.htm
#
namespace aspapi.Controllers
{
public class TaskApiController : ApiController
{
private readonly ITaskRepository taskRepository;
public TaskApiController()
{
taskRepository = new TaskRepository();
}
public class PdfFilter : Stream
{
private readonly Stream _oldFilter;
private readonly string _baseUrl;
private readonly MemoryStream _memStream;
public override bool CanSeek
{
get { return false; }
}
## Please set the ROOT to your nxlog installation directory
#define ROOT C:\Program Files\nxlog
define ROOT C:\Program Files (x86)\nxlog
Moduledir %ROOT%\modules
CacheDir %ROOT%\data
Pidfile %ROOT%\data\nxlog.pid
SpoolDir %ROOT%\data
LogFile %ROOT%\data\nxlog.log
#Only needs to be loaded once, like most rsyslog modules
$ModLoad imfile
#path to the file which you want to monitor
$InputFileName /var/log/apache2/access.log
#The tag apache can be changed to whatever you'd like
$InputFileTag apache:
#the name of file within rsyslogs working directory
## This is a sample NXLog configuration file created by Loggly. June 2013
## See the nxlog reference manual about the configuration options.
## It should be installed locally and is also available
## online at http://nxlog.org/nxlog-docs/en/nxlog-reference-manual.html
## Please set the ROOT to the folder your nxlog was installed into,
## otherwise it will not start.
#define ROOT C:\Program Files\nxlog
define ROOT C:\Program Files (x86)\nxlog
using System;
using System.IO;
using System.Reactive.Disposables;
using System.Reactive.Linq;
using ReactiveUI;
namespace SaveAllTheTime.Models
{
interface IFilesystemWatchCache
{