I hereby claim:
- I am fergus on github.
- I am ferg (https://keybase.io/ferg) on keybase.
- I have a public key ASBkAiNO-XHj0HIA-UH_0ekZmqmVNi-np0ze4zuyai0F4wo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#!/bin/sh | |
# This is the initiation script I use for my mac. | |
# I have pilfered and pinched from lots of places on the web. | |
# http://lapwinglabs.com/blog/hacker-guide-to-setting-up-your-mac | |
# https://gist.github.com/brandonb927/3195465 | |
# https://github.com/mathiasbynens/dotfiles | |
# https://github.com/diimdeep/dotfiles/blob/master/osx/configure/yosemite/osx_set_defaults.sh | |
# http://twnsnd.co/beta-site/journal/fresh-install-yosemite/ |
############################## | |
# _ | |
# | |_ _ __ ___ _ ___ __ | |
# | __| '_ ` _ \| | | \ \/ / | |
# | |_| | | | | | |_| |> < | |
# \__|_| |_| |_|\__,_/_/\_\ | |
# | |
############################# | |
# | |
# COPY AND PASTE |
# --------------------------------------------------------------------------- | |
# | |
# Description: This file holds all my BASH configurations and aliases | |
# | |
# Sections: | |
# 1. Environment Configuration | |
# 2. Make Terminal Better (remapping defaults and adding functionality) | |
# 3. File and Folder Management | |
# 4. Searching | |
# 5. Process Management |
# Load the DLL (needs to be x86) | |
[CmdletBinding()] | |
param | |
( | |
[string]$ICServer, | |
[string]$ICPort, | |
[string]$UserName, | |
[string]$Password | |
Function Convert-RGBtoLong | |
( | |
[string] $RGBString = "0,160,175" #Teal | |
) | |
{ | |
$RGBLong = ([int]$RGBString.split(",")[2] *65536) + ([int]$RGBString.split(",")[1]*256) + [int]$RGBString.split(",")[0] | |
Write-Verbose "Convert-RGBtoLong: $RGBString = $RGBLong" | |
$RGBLong; | |
# Created by Fergus Stevens | |
# V1 - 22/01/14 - Initial Version | |
# V2 - 04/02/14 - Much *MUCH* faster import of data to excel using multi dimensional array import technique. | |
# http://powertoe.wordpress.com/2010/11/05/how-to-get-data-into-an-excel-spreadsheet-very-quickly-with-powershell-contd/ | |
# Improved console output and use of stnadard Support functions library | |
[CmdletBinding()] | |
Param() | |
# Create stopwatch |
# Created by Fergus Stevens | |
# V1 - 16/12/13 - Initial Version | |
# Filter for Active Users | |
$strFilter = "(&(objectCategory=User)(!(UserAccountControl:1.2.840.113556.1.4.803:=2)))" | |
#What attributes do you need? source: http://www.kouti.com/tables/userattributes.htm | |
$colProplist = "name", "title", "mobile" | |
$objDomain = New-Object System.DirectoryServices.DirectoryEntry |
-- Interactive Intelligence (ININ) Customer Interaction Centre (CIC) 3.0 MS SQL Query for returning the wrap-up code counts associated with a specific Workgroup. | |
SELECT WrapUpCode, count(WrapUpCode) as WrapupCount | |
FROM dbo.calldetail | |
WHERE | |
InitiatedDate > '2013-09-01' AND InitiatedDate < '2013-10-01' | |
AND InteractionType = 0 -- Phone Calls Only | |
AND CallEventLog like '%Entered Workgroup Queue - Call Centre Secured Loans%' | |
GROUP BY WrapUpCode |