I hereby claim:
- I am gbrayut on github.
- I am gbrayut (https://keybase.io/gbrayut) on keybase.
- I have a public key whose fingerprint is A61D 298E 6CE1 3E92 BA44 8319 7044 E401 5F99 8507
To claim this, I am signing this object:
#Test all A entries for a DNS record to see if you can connect to port 443: | |
dig +short microsoft.com. | xargs -I {} nc -v -w2 {} 443 | |
#Example of output | |
Connection to 191.239.213.197 443 port [tcp/https] succeeded! | |
Connection to 104.43.195.251 443 port [tcp/https] succeeded! | |
Connection to 104.40.211.35 443 port [tcp/https] succeeded! | |
Connection to 23.100.122.175 port 443 (tcp) timed out: Operation now in progress | |
Connection to 23.96.52.53 443 port [tcp/https] succeeded! |
#pip install comtypes wmi | |
import sys, os, traceback | |
sys.coinit_flags = 0 # sets pythoncom.COINIT_MULTITHREADED = 0 | |
import comtypes.client # http://starship.python.net/crew/theller/comtypes/ | |
from comtypes.automation import IDispatch, IEnumVARIANT | |
import wmi | |
#Use help(...) and dir(...) on any object/class to see more details | |
#These are already set on the main thread by sys package, but need to call if we use other threads |
{ | |
"scollector::collector_tags": [ | |
"named", | |
"mysql" | |
] | |
} |
2016/01/12 16:12:26 fatal: main.go:266: Type mismatch for 'conf.Conf.Tags': Expected map but found '[]map[string]interface {}'. |
#Bosun unit file at /etc/systemd/system/bosun.service | |
[Unit] | |
Description=Bosun Service | |
After=network.target | |
After=docker.service | |
After=rsyslog.service | |
[Service] | |
Type=simple | |
User=root |
<?xml version="1.0"?> | |
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?> | |
<configuration> | |
<property> | |
<name>hbase.cluster.distributed</name> | |
<value>true</value> | |
</property> | |
<property> | |
<name>hbase.rootdir</name> | |
<value>hdfs://localhost/hbase</value> |
#Status after configuring LCM and running Update-DscConfiguration | |
PS C:\windows\system32\Configuration> Get-DscConfigurationStatus | |
Status StartDate Type Mode RebootRequested NumberOfResources | |
------ --------- ---- ---- --------------- ----------------- | |
Success 2015/04/17 19:40:47 Initial Pull False 19 | |
#Status after restarting the server | |
PS C:\windows\system32> Get-DscConfigurationStatus |
I hereby claim:
To claim this, I am signing this object:
Chocolatey (v0.9.8.23) is installing 'tomboy' and dependencies. By installing you accept the license for 'tomboy' and ea | |
ch dependency you are installing. | |
______ gtksharp v2.12.20.1 ______ | |
Downloading gtksharp 32 bit (http://download.xamarin.com/Installer/gtk-sharp-2.12.20.msi) to C:\Users\a4hdszz\AppData\Lo | |
cal\Temp\chocolatey\gtksharp\gtksharpInstall.MSI | |
Installing gtksharp... | |
Elevating Permissions and running msiexec /i "C:\Users\a4hdszz\AppData\Local\Temp\chocolatey\gtksharp\gtksharpInstall.MS | |
I" /quiet . This may take awhile, depending on the statements. | |
gtksharp has been installed. | |
gtksharp has finished successfully! The chocolatey gods have answered your request! |
void Main() | |
{ | |
var username = @"ad\u0861240"; | |
var userNameNoDomain = username.Split('\\').Last(); | |
var Context = new System.DirectoryServices.AccountManagement.PrincipalContext( System.DirectoryServices.AccountManagement.ContextType.Domain | |
,"ad.utah.edu","OU=People,DC=ad,DC=utah,DC=edu",@"",""); | |
var directoryEntry = new DirectoryEntry("LDAP://DC=ad,DC=utah,DC=edu"); | |
var directoryEntryBase = new DirectoryEntry("LDAP://DC=ad,DC=utah,DC=edu"); | |
using (var directorySearcher = new DirectorySearcher(directoryEntry) |