Skip to content

Instantly share code, notes, and snippets.

View mlaccetti's full-sized avatar
😶
Whatnow?

Michael Laccetti mlaccetti

😶
Whatnow?
View GitHub Profile
@mlaccetti
mlaccetti / package.json
Created November 18, 2020 05:48
TwiML Express App
{
"name": "twiml-openai",
"version": "0.1.0",
"description": "TwiML OpenAI Integration",
"main": "server.js",
"scripts": {
"server": "node server.js"
},
"author": "Michael Laccetti <[email protected]>",
"license": "GPL-2.0-only",
@mlaccetti
mlaccetti / EmbeddedMessageQueueResource.java
Last active February 24, 2021 10:26 — forked from AlejandroRivera/EmbeddedMessageQueueResource.java
Apache QPid as embedded MQ broker
package laccetti.test;
import org.apache.qpid.server.Broker;
import org.apache.qpid.server.BrokerOptions;
import com.google.common.io.Files;
/**
* We shouldn't need external things for testing
*/
@mlaccetti
mlaccetti / keybase.md
Created August 29, 2016 19:59
Keybase Proof

Keybase proof

I hereby claim:

  • I am mlaccetti on github.
  • I am mlaccetti (https://keybase.io/mlaccetti) on keybase.
  • I have a public key whose fingerprint is 5173 5AF1 9D2F 24D1 AF38 2897 E252 CE50 51FB EAFC

To claim this, I am signing this object:

@mlaccetti
mlaccetti / results.txt
Last active February 26, 2016 18:03
ashes of the singularity - benchmark results
==========================================================================
Oxide Games
Ashes Benchmark Test - ©2015
C:\Users\michael\Documents\My Games\Ashes of the Singularity\Benchmarks\Output_16_02_26_1246.txt
Version 0.90.17445
02/26/2016 12:49
==========================================================================
== Hardware Configuration ================================================
GPU 0: AMD Radeon (TM) R9 390 Series
/*
* Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* - Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
@mlaccetti
mlaccetti / DefaultTrustManager.java
Created April 28, 2015 12:48
Trusting Wildcards for Guggle
package laccetti.server.security;
import lombok.extern.slf4j.Slf4j;
import org.jsslutils.sslcontext.X509TrustManagerWrapper;
import javax.net.ssl.X509TrustManager;
import java.security.GeneralSecurityException;
import java.security.cert.CertificateException;
import java.security.cert.X509Certificate;
import java.util.ArrayList;
authzContextSource.setBaseEnvironmentProperties(Maps.transformEntries(Splitter.on(",").withKeyValueSeparator("=").split("java.naming.ldap.attributes" +
".binary=userCertificate userPKCS12"), new Maps.EntryTransformer<String, String, Object>() {
@Override
public Object transformEntry(String key, String value) {
return value;
}
}));
right on baby
I want to ask you a question darlin'
last night I had 35 dollars in my pocket
did you open my pocket
(yes yes yes)
(yes yes yes yes yes yes)
right on right on that's what I thought happened
(yes yes yes)
(yes yes yes yes yes yes)
I'm gonna ask you another question baby
@mlaccetti
mlaccetti / SampleServiceController.java
Created August 20, 2013 15:16
Expose a Spring service via REST/JSON
package laccetti.sample.controller;
import lombok.extern.slf4j.Slf4j;
import javax.annotation.PostConstruct;
import javax.servlet.http.HttpServletRequest;
import laccetti.sample.model.SearchRequest;
import laccetti.sample.model.SearchResponse;
@mlaccetti
mlaccetti / SpringConfiguration.java
Created August 20, 2013 15:00
Bootstrap a Spring 3 annotation-only Java 6/Tomcat 6 app
package laccetti.spring.app;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
@Configuration
@ComponentScan(basePackages = "laccetti")
public class SpringConfiguration {
// bean definitions go here
}