Skip to content

Instantly share code, notes, and snippets.

<html>
<head>
<title>Mailbox Stats - Customer Services</title>
<meta http-equiv="Expires" content="0">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta http-equiv="refresh" content="30">
</head>
@thecliguy
thecliguy / gist:631a88f33e81418b83465c23fa8a5f5a
Last active December 19, 2016 22:13
TSE_Console_Version_That_Resizes
Just a placeholder so I can attach images as comments - pertaining to TSE resize on Window/Buffer size changes.
@thecliguy
thecliguy / TINYED.TXT
Created December 23, 2016 18:57
TINYED.EXE DEMO
Placeholder for TINYED bits...
@thecliguy
thecliguy / jeykll-post-counter.liquid
Created February 26, 2017 14:12 — forked from Phlow/jeykll-post-counter.liquid
Counter: This code snippet just counts your jekyll posts and spits out the result
{% comment %}
*
* Counter: This include counts the your jekyll posts
*
{% endcomment %}{% assign counter = 1 %}{% for item in site.posts %}{% unless item.published == false %}{% assign counter=counter | plus:1 %}{% endunless %}{% endfor %}{{ counter }}
@thecliguy
thecliguy / TcpChatMessenger.cs
Created July 21, 2017 22:36 — forked from define-private-public/TcpChatMessenger.cs
Synchronous, single-threaded TCP Chat Server in C#
// Filename: TcpChatMessenger.cs
// Author: Benjamin N. Summerton <define-private-public>
// License: Unlicense (http://unlicense.org/)
using System;
using System.Text;
using System.Net;
using System.Net.Sockets;
using System.Threading;
@thecliguy
thecliguy / moodle_upgrade.sh
Created August 25, 2017 11:47 — forked from derhofbauer/moodle_upgrade.sh
Bash Moodle Upgrade Script
#!/bin/sh
echo "This script updates your moodle installation."
echo "You will need a few pieces of information to complete this process."
echo ""
echo "Warning: This will disable Web-Access to the moodle installation!"
echo "Make sure nobody is logged in at the moment or activate maintenance mode manually so no data is lost."
echo ""
echo ""
@thecliguy
thecliguy / win10colors.cmd
Created September 17, 2017 19:38 — forked from mlocati/win10colors.cmd
ANSI Colors in standard Windows 10 shell
@echo off
cls
echo  STYLES 
echo ^<ESC^>[0m Reset
echo ^<ESC^>[1m Bold
echo ^<ESC^>[4m Underline
echo ^<ESC^>[7m Inverse
echo.
echo  NORMAL FOREGROUND COLORS 
echo ^<ESC^>[30m Black (black)
@thecliguy
thecliguy / gist:fdc72cbed2ce4e9ebb27d7dc3ebd0d2b
Created September 29, 2017 15:35
Sample Scheduled Task Creation
$TaskName = "My Scheduled Task";
$SchedTaskCred = Get-Credential "domain\user" `
-Message "Scheduled Task Service Account Credentials"; `
$SchedTaskCredUser = $SchedTaskCred.UserName; `
$SchedTaskCredPwd = $SchedTaskCred.GetNetworkCredential().Password; `
$Action = New-ScheduledTaskAction `
-Execute "PowerShell.exe" `
-Argument '-ExecutionPolicy Bypass -file "C:\MyScript.ps1"' `
-ErrorAction Stop; `
$Trigger = New-ScheduledTaskTrigger `
@thecliguy
thecliguy / books.xml
Last active October 8, 2017 08:23
Books
<?xml version="1.0"?>
<catalog>
<book>
<author>Gambardella, Matthew</author>
<title>XML Developer's Guide</title>
<genre>Computer</genre>
<price>44.95</price>
<publish_date>2000-10-01</publish_date>
<description>An in-depth look at creating applications
with XML.</description>
@thecliguy
thecliguy / Explanation.txt
Last active May 31, 2018 23:39
WeeChat - Zero-Width Space (ZWSP)
The bridge bot of #powershell on freenode puts a zero-width space character after the first letter of Slack
nicks, to avoid people who are on both sides of the bridge triggering their own @mention.
Source machine:
* Windows Version: Windows 10 Pro, Version 1709, 16299.431
* Font used in conhost: Consolas (for both OpenSSH on Windows Subsystem for Linux and Win32-OpenSSH)
Target server:
* Ubuntu version: Ubuntu 16.04.4 LTS