Skip to content

Instantly share code, notes, and snippets.

View selfcommit's full-sized avatar
🏠
Working from home

Dan OBoyle selfcommit

🏠
Working from home
View GitHub Profile
import requests
import os
from bs4 import BeautifulSoup
euler_url = 'https://projecteuler.net/problem='
last_problem = 505
repo_dir = '/Users/doboyle/code/Project-Euler'
for x in xrange(1, last_problem):
r = requests.get(euler_url+str(x))
$search_base = "OU=Your_Base,OU=location,DC=example,DC=com"
# $target_group = "(&(objectClass=group)(cn=*test_group))" # Optionally test with smaller filter
$target_filter = "(objectClass=group)"
Get-ADGroup -LDAPFilter $target_filter -SearchBase $search_base |
ForEach-Object {
$EXT1 = $("(&(objectClass=user)(memberOf:1.2.840.113556.1.4.1941:=CN=", $_.name,',', $search_base,"))" -join "")
Set-ADGroup $_ -Replace @{info=$EXT1} # notice 'info' - that's the attribute we'll be writing into, any unicode will do.
}

Keybase proof

I hereby claim:

  • I am selfcommit on github.
  • I am selfcommit (https://keybase.io/selfcommit) on keybase.
  • I have a public key whose fingerprint is 0691 AAD9 95EB 98FE 8E3E C960 C5B4 FFBB A78E 2E18

To claim this, I am signing this object:

Fog Server Performance Checking
The following utilities allow you to check on the health of the fog server:
(To access these utilities, either login directly at the server, or connect using PuTTy to 10.10.88.2)
For Memory and CPU usage in real time:
At the command prompt type:
Htop
(Note if you receive an error attempt to run this as root – “sudo htop”)
Where the email generated link redirects you to:
https://my.doculivery.com/External/system3000-hillsb/NPCError.aspx
Where you actually need to go (From my LastPass History)
https://my.doculivery.com/External/Systems3000-hillsb/Login.aspx
Not sure what's happening in that redirect, but the address listed in the email is wrong:
www.doculivery.com/system3000-hillsb
#showtooltip
/cast [modifier:shift]Fist of Justice;
/castsequence reset=13 Rebuke,Hammer of Justice
#showtooltip
#showcooldown
/castsequence [mod:shift] reset=4 Judgment; reset=3 crusader strike,Judgment,Execution Sentence
#showtooltip
#showcooldown
/castsequence [mod:shift] reset=3 Sacred Shield;[harm] reset=4.5 Judgment,Denounce,Denounce, Holy Shock; reset=4.5 Holy Shock, Flash of Light, Flash of Light
@selfcommit
selfcommit / Guard Macro
Last active August 29, 2015 14:10 — forked from Zynyx/LAVA SHOCK
#showtooltip
#showcooldown
/castsequence [mod:shift] reset=15 Unleash Flame, Flame Shock; reset=8 Lava Burst