I hereby claim:
- I am rpunt on github.
- I am rpunt (https://keybase.io/rpunt) on keybase.
- I have a public key whose fingerprint is BF55 A76A E67F F3A1 2E09 E08F ED47 262D 3FF6 076A
To claim this, I am signing this object:
#!/bin/bash | |
# Assumptions: | |
# ./unifi.pem is the signed cert you wish to use | |
# ./unifi.key is the private key | |
# ./chain.pem is the CA chain for your issuer, ordered intermediates to root (descending) | |
# /var/lib/unifi/keystore is the appropriate path for your Keystore; may vary by distro (tested on Debian 8) | |
openssl pkcs12 -export \ | |
-in unifi.pem \ |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env bash | |
superpull() { | |
dir=$1 | |
error_repos=$2 | |
cd $dir | |
STATUS=`mktemp` | |
echo -e "\n************************************\n* Pulling $dir\n************************************" >$STATUS | |
git checkout master 1>>$STATUS 2>&1 | |
if [[ $? != 0 ]]; then |
curl http://site.com/file.crl -o /var/www/file.crl | |
lastmod=`openssl crl -inform DER -text -noout -in /var/www/file.crl | grep "Last Update" | awk '{ print "date -d \""$3FS$4FS$5FS$6"\" +%Y%m%d%H%M" }' | bash` | |
touch -mt $lastmod /var/www/file.crl |
$scandir = "d:\video" | |
$outputdir = "d:\encoded" | |
$filelist = Get-ChildItem $scandir -filter *.mkv -recurse | |
$num = $filelist | measure | |
$filecount = $num.count | |
$i = 0; | |
ForEach ($file in $filelist) | |
{ |
# New Relic deployment events | |
my $ua = LWP::UserAgent->new; | |
$response = $ua->request(POST 'https://api.newrelic.com/deployments.xml', | |
Content => [ | |
'deployment[application_id]' => $APPID, | |
'deployment[description]' => 'deployment message', | |
'deployment[revision]' => $RELEASE_VERSION, | |
'deployment[user]' => 'Jenkins' | |
], | |
'x-api-key' => $APIKEY |
$entries = @{} | |
import-csv $csv | % { | |
$entries.add(($adpentry.EEfile_Number),(@{ | |
fname = $_."First Name" | |
lname = $_."Last Name" | |
department = $_.Department | |
location = $_.Location | |
manager = $_.Manager | |
title = $_."Job Title" | |
})) |
// given the e-mail address of a roomlist, this SOAP message will retrieve the member rooms. | |
NSString *roomlist = @"roomlist1@domain.tld" // this is the e-mail address of the room list you're querying | |
NSLog(@"querying roomlist %@", roomlist); | |
NSString *soapMessage = [NSString stringWithFormat:@"" | |
@"<?xml version=\"1.0\" encoding=\"utf-8\"?>" | |
@"<soap:Envelope xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:t=\"http://schemas.microsoft.com/exchange/services/2006/types\" xmlns:m=\"http://schemas.microsoft.com/exchange/services/2006/messages\">" | |
@"<soap:Header>" | |
@"<t:RequestServerVersion Version =\"Exchange2010_SP2\"/>" | |
@"</soap:Header>" |
// for some reason, Exchange Web Services seems to ignore the DST-specific bias settings, and only refer to the | |
// master bias. | |
// set the master bias here. | |
int bias = abs([[NSTimeZone systemTimeZone] secondsFromGMT] / 60); | |
NSString *soapMessage = [NSString stringWithFormat:@"" | |
@"<?xml version=\"1.0\" encoding=\"utf-8\"?>" | |
@"<soap:Envelope xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:t=\"http://schemas.microsoft.com/exchange/services/2006/types\">" | |
@"<soap:Body>" | |
@"<GetUserAvailabilityRequest xmlns=\"http://schemas.microsoft.com/exchange/services/2006/messages\" xmlns:t=\"http://schemas.microsoft.com/exchange/services/2006/types\">" |
// Retrieve a list of roomlists from Exchange 2010 via SOAP. | |
// This method then uses SMXMLDocument to retrieve the e-mail addresses for those roomlists, | |
// which can be used to query the individual rooms | |
// DEPENDENCIES: AFNetworking v1 (https://github.com/AFNetworking/AFNetworking) | |
// SMXMLDocument (https://github.com/nfarina/xmldocument) | |
// | |
// NOTE: I used AFHTTPRequestOperation instead of AFXMLRequestOperation because I wanted the XML, not an XML parser | |
// (which is what AFXMLRequestOperation returns) | |
- (void) readRoomLists { |