The popular open-source contract for web professionals by Stuff & Nonsense
- Originally published: 23rd December 2008
- Revised date: March 15th 2016
- Original post
#!/bin/bash | |
for d in /sys/kernel/iommu_groups/*/devices/*; do | |
n=${d#*/iommu_groups/*}; n=${n%%/*} | |
printf 'IOMMU Group %s ' "$n" | |
lspci -nns "${d##*/}" | |
done |
#!/bin/bash | |
# Tool declarations, modify as needed. | |
AWK="/usr/bin/awk" | |
CAT="/bin/cat" | |
COMM="/usr/bin/comm" | |
CUT="/usr/bin/cut" | |
DATE=`/bin/date +%Y/%m/%d` | |
DD="/bin/dd" | |
GREP="/bin/grep" |
{ | |
"AWSTemplateFormatVersion": "2010-09-09", | |
"Description": "Setting up your own private and secure VPN", | |
"Mappings": { | |
"AWSInstanceType2Arch": { | |
"High.Speed.VPN-Paid": { | |
"InstanceType": "t2.medium" | |
}, | |
"Standard.VPN-Free": { | |
"InstanceType": "t2.micro" |
#!/usr/bin/env ruby | |
# List all the (known) operations on each AWS service API. This is | |
# incredibly useful for building well-restricted IAM access | |
# rules. With this list you can quickly see what "s3:Get*" matches, or | |
# just glance through and look for something that might be missing and | |
# breaking your app. | |
# I can't believe I had to write this myself. I'm pretty sure there | |
# are a lot of people out there with near-god-mode permission on IAM |
var https = require('https'); | |
var util = require('util'); | |
exports.handler = function(event, context) { | |
console.log(JSON.stringify(event, null, 2)); | |
console.log('From SNS:', event.Records[0].Sns.Message); | |
var postData = { | |
"channel": "#aws-sns", | |
"username": "AWS SNS via Lamda :: DevQa Cloud", |
// | |
// API.swift | |
// | |
// Created by Taro Minowa on 6/10/14. | |
// Copyright (c) 2014 Higepon Taro Minowa. All rights reserved. | |
// | |
import Foundation | |
typealias JSONDictionary = Dictionary<String, AnyObject> |
At AlphaSights, we often want to contact advisors even when we don't know know their email address.
This presents us with the challenge of having to predict what their actual email address will be.
To help with this process, we have the following information available:
Out of the box, Homebrew does a default installation on Sphinx:
$ brew install sphinx
However, if you're using MySQL, the thinking-sphinx gem won't work because it needs to use MySQL libraries.
If you managed to screw up the first time, uninstall sphinx first:
$ brew remove sphinx
#!/bin/bash | |
cd <%= @options[:app_dir] %> | |
exec 2>&1 | |
exec <%= node[:runit][:chpst_bin] %> -e /etc/sv/<%= @options[:service_name] %>/env -u <%= @options[:app_user]%>:unicorn <%= @options[:bundler_binary] %> exec unicorn -E <%= @options[:environment] %> -c <%= @options[:config] %> |