Skip to content

Instantly share code, notes, and snippets.

View wandersick's full-sized avatar

wandersick wandersick

View GitHub Profile
@wandersick
wandersick / quotes_en.bat
Last active August 21, 2016 07:36
Publish quotes as blog posts to Google Blogger using GoogleCL - Windows (Deprecated)
:: Script: quotes_en.bat (deprecated)
:: Version: 1.0 - 20110227
:: Platform: Windows
:: Databases: quotes_en_number, quotes_en.ini
:: Creator: wandersick - https://wandersick.blogspot.com/2016/08/auto-posting-inspirational-quotes-on.html
:: Purpose: Publish quotes as blog posts to Google Blogger using GoogleCL (Windows)
::
:: Usage: Save this script and quotes in the same folder.
:: google.exe (GoogleCL) should be in system enviromental path.
:: Change 'English Quotes' to your blog name.
@wandersick
wandersick / quotes_en.sh
Last active August 21, 2016 07:36
Publish quotes as blog posts to Google Blogger using GoogleCL - Linux (Deprecated)
# Script: quotes_en.sh (deprecated)
# Version: 1.0 - 20110227
# Platform: Linux
# Databases: quotes_en_number, quotes_en.ini
# Creator: wandersick - https://wandersick.blogspot.com/2016/08/auto-posting-inspirational-quotes-on.html
# Purpose: Publish quotes as blog posts to Google Blogger using GoogleCL (Linux)
#
# Usage: Modify /root/quotes/ to a location where this script and quotes are stored.
# Change 'English Quotes' to your blog name.
# Ensure write access is permitted to quotes_en_number (generated by script on first run)
@wandersick
wandersick / quotes_en.bat
Last active August 21, 2016 07:36
Publish quotes as tweets to Twitter using twt.exe (Windows)
:: Script: quotes_en.bat
:: Version: 2.0 - 20160820
:: Platform: Windows
:: Databases: quotes_en_number, quotes_en.ini
:: Creator: wandersick - https://wandersick.blogspot.com/2016/08/auto-posting-inspirational-quotes-on.html
:: Purpose: Publish quotes as tweets to Twitter using twt.exe (Windows)
::
:: Usage: Save this script and quotes in the same folder.
:: twt.exe should be in system enviromental path.
:: Change 'English Quotes' to your blog name.
@wandersick
wandersick / ws_email_archiving.ps1
Last active June 14, 2020 12:31
Journal Mailbox Archiving PowerShell Script for Exchange 2013/16
# WS Email Archiving - Journal Mailbox Archiving PowerShell Script for Exchange 2013
# Written by wandersick (https://tech.wandersick.com/2016/07/powershell-automation-of-journal.html)
# Version: 1.3 (20200614)
# The default parameters of this script assume monthly exporting. See above URL for more information.
# The [Output Examples] in the comment sections below assume:
# Date of script execution: 02 Feburary 2016
# Date of archive period: Between 01 and 31 January 2016 (previous month)
@wandersick
wandersick / UpdatePaths-RoamingProfile-HomeDir.ps1
Last active January 5, 2017 01:23
Batch-Update Paths of Roaming Profile and Home Directory (for AD Migration)
# Title: Batch-Update Paths of Roaming Profile and Home Directory (AD Migration)
# Version: 2.0
# Date: 4 Jan 2017
# Type: PowerShell
# Reference: https://blogs.technet.microsoft.com/heyscriptingguy/2013/08/14/use-powershell-to-change-sign-in-script-and-profile-path/
@wandersick
wandersick / autohotkey_google_drive_heads_up.ahk
Created March 25, 2017 09:27
Google Drive - Auto-Answer 'Heads Up' Prompt - AutoHotkey
; detect Google Drive prompt "Heads up, some people may lose access" OK (O) / Undo (U)
Loop
{
WinWait, Google Drive
If Not Errorlevel
{
If WinExist("ahk_exe googledrivesync.exe")
{
WinActivate, Google Drive
@wandersick
wandersick / brocade_san_switch_query_commands.txt
Last active April 8, 2017 07:12
Brocade SAN Switch Query Commands
// short URL - http://tinyurl.com/majn59n
ipaddrshow
version
firmwareshow
switchstatusshow
switchstatuspolicyshow
nsallshow
licenseshow
@wandersick
wandersick / ibm_v7000_query_commands.txt
Last active April 8, 2017 07:12
IBM V7000 Query Commands
// short URL: http://tinyurl.com/mdn8adm
lsarray
lsarrayinitprogress
lsarraylba
lsarraymember
lsarraymembergoals
lsarraymemberprogress
lsarrayrecommendation
lsarraysyncprogress
---
- hosts: all # Apply to all hosts in the inventory file
remote_user: root
tasks:
- name: ensure firewall service is running
service:
name: "{{ item }}"
state: started
enabled: yes
with_items:
---
- hosts: all # Apply to all hosts in the inventory file
remote_user: root
tasks:
- name: ensure firewall service is running
service:
name: "{{ item }}"
state: started
enabled: yes
with_items: