Skip to content

Instantly share code, notes, and snippets.

Douglas La Rocca douglas-larocca

  • United States
Block or report user

Report or block douglas-larocca

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
if (( $# < 1 ))
echo "Usage: $0 username"
exit 1
douglas-larocca / setupnewuser.ps1
Created Jan 15, 2018 — forked from theagreeablecow/setupnewuser.ps1
Setup New User in AD, Exchange and Lync
View setupnewuser.ps1
# This script will set up AD, User Directories, Exchange and Lync, using basic data retrived from a CSV file
# Requires the Active Directory module for Windows Powershell and appropriate credentials
# CSV file with corresponding header and user(s) info:
# Office,UserName,FirstName,LastName,Initial,Department,Role,Title,SetupSameAs,Manager,MailboxAccess,Extension,Mobile
$exchangeserver = ""
$Lyncserver = ""
douglas-larocca / spectre.c
Created Jan 4, 2018 — forked from ErikAugust/spectre.c
Spectre example code
View spectre.c
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#ifdef _MSC_VER
#include <intrin.h> /* for rdtscp and clflush */
#pragma optimize("gt",on)
#include <x86intrin.h> /* for rdtscp and clflush */
douglas-larocca / AES.c
Last active Dec 16, 2016 — forked from bricef/AES.c
A simple example of using AES encryption in Java and C.
View AES.c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <mcrypt.h>
#include <math.h>
#include <stdint.h>
#include <stdlib.h>
int encrypt(void *buffer, int buffer_len, char *IV, char *key, int key_len) {
douglas-larocca / fmxdbc-restart
Created Aug 5, 2016
fmxdbc_listener.exe restart
View fmxdbc-restart
#!/usr/bin/env python3
import sys
from winrm.protocol import Protocol
def xdbc_restart(host, user, password):
p = Protocol(
endpoint=('https://%s:5986/wsman' % host),
douglas-larocca / client.go
Created Aug 2, 2016 — forked from spikebike/client.go
TLS server and client
View client.go
package main
import (
import os
import fnmatch
import re
import json
import sys
import subprocess
import inspect
from datetime import datetime
import operator as op
View _chi2.c
%%file _chi2.c
#include <Python.h>
#include <numpy/arrayobject.h>
#include "chi2.h"
static char module_docstring[] =
"This module provides an interface for calculating chi-squared using C.";
static char chi2_docstring[] =
"Calculate the chi-squared of some data given a model.";
View sql_client
import os
import json
import pandas as pd
import sqlalchemy
from datetime import datetime
from sqlalchemy.schema import MetaData
from sqlalchemy.orm import sessionmaker
from sqlacodegen.codegen import CodeGenerator
You can’t perform that action at this time.