Skip to content

Instantly share code, notes, and snippets.

View arusso's full-sized avatar

Aaron Russo arusso

View GitHub Profile
@arusso
arusso / 82-slacker-duplicate-responses.go
Last active August 25, 2021 05:19
Attempt to reproduce duplicate messages with threads
package main
import (
"context"
"fmt"
"log"
"os"
"github.com/shomali11/slacker"
"github.com/slack-go/slack/socketmode"
@arusso
arusso / keybase.md
Last active September 29, 2018 06:53

Keybase proof

I hereby claim:

  • I am arusso on github.
  • I am arusso (https://keybase.io/arusso) on keybase.
  • I have a public key ASCkl756VlwTKTeW_vSQ20824E6NZ1E0BBAM9beXd0UaBgo

To claim this, I am signing this object:

@arusso
arusso / make-san-cert.rb
Last active June 1, 2021 21:20
Generating a SAN Certificate in Ruby
require 'openssl'
require 'openssl-extensions/all'
keyfile = '/tmp/mycert.key'
csrfile = '/tmp/mycert.csr'
file = File.new(keyfile,'w',0400)
key = OpenSSL::PKey::RSA.new 2048
file.write(key)
### Keybase proof
I hereby claim:
* I am arusso on github.
* I am arusso (https://keybase.io/arusso) on keybase.
* I have a public key whose fingerprint is FE82 76B3 AC8E E00B 8A55 9C0D 138D EBE5 AC61 CFAA
To claim this, I am signing this object:
@arusso
arusso / urgent-flag-allow.cisco
Last active August 29, 2015 13:57
An example configuration that tells the tcp-normalization engine on Cisco ASA appliances to allow the urgent flag for traffic that matches an access list.
!
! setup an ACL that matches hosts whose urgent flag is to be left untouched
! through the ASA Firewall. This could probably be limited to a particular port
! if we so chose.
!
access-list extended acl_permit_urgent_flag permit <host/network> <netmask>
!
! create a tcp-map (packet normalization policy) that allows the urgent-flag through
! identified packets
@arusso
arusso / Vagrantfile
Created June 10, 2013 00:25
Vagrant Setup
# -*- mode: ruby -*-
# vi: set ft=ruby :
home = File.dirname(__FILE__)
# Primary VagrantFile
# handles the setting up of our puppetmaster
# Define our default box, in case we dont override it in the VagrantInit
# file. We'll also add our puppet hosts entry
@arusso
arusso / host.cnf.erb
Created April 1, 2013 17:12
Host CNF file for certificate request generation. Includes support for SAN certs
[ req ]
default_bits = 2048
default_md = sha1
distinguished_name = req_distinguished_name
prompt = no
<% if @alt_names_real.count > 1 -%>
x509_extensions = v3_ca # The extentions to add to the self signed cert
req_extensions = v3_req # The extensions to add to a certificate request
<% end -%>
@arusso
arusso / update-java-1.7.0-oracle.pp
Created March 27, 2013 19:00
Update hosts to use java-1.7.0-oracle via Puppet
# Ensure Java 1.7 is installed
package { 'java-1.7.0-oracle': ensure => installed }
# update alternatives only if it's not set correctly already
exec { 'alternatives --set java \
/usr/lib/jvm/jre-1.7.0-oracle.x86_64/bin/java':
unless => "test $(readlink /etc/alternatives/java) == \
'/usr/lib/jvm/jre-1.7.0-oracle.x86_64/bin/java'",
require => Package['java-1.7.0-oracle'],
path => ['/bin','/usr/sbin','/usr/bin'],
@arusso
arusso / output
Last active December 12, 2015 04:08
value 0
value 1
value 2
value 3
@arusso
arusso / VagrantFile
Created December 19, 2012 23:03
Aaron's Vagrant File
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant::Config.run do |config|
config.vm.provision :puppet, :module_path => "modules"
config.vm.define :blank do |node_config|
node_config.vm.box = "centos6-eu"
end