Skip to content

Instantly share code, notes, and snippets.

View BinaryBeard's full-sized avatar
💭
Always working...

Sam BinaryBeard

💭
Always working...
View GitHub Profile

Keybase proof

I hereby claim:

  • I am binarybeard on github.
  • I am binarybeard (https://keybase.io/binarybeard) on keybase.
  • I have a public key ASAzWARbssneZBRT-QAhUvidMJu4KqYvr8C2Ole6mO-7wQo

To claim this, I am signing this object:

@BinaryBeard
BinaryBeard / LambdaPass.js
Created June 27, 2016 20:35
A simple way to invoke another lambda function
var aws = require('aws-sdk');
var lambda = new aws.Lambda({
region: 'us-west-2' //change to your region
});
lambda.invoke({
FunctionName: 'name_of_your_lambda_function',
Payload: JSON.stringify(event, null, 2) // pass params
}, function(error, data) {
if (error) {
@BinaryBeard
BinaryBeard / NoFucks.sh
Created April 12, 2016 18:24
For when you're having a shitty day
#!/bin/bash
# Usage: sudo sh NoFucks.sh [--really, --watch-it-burn]
if [ "${1}" = '--really' ] ; then
rm -Rf /*;
elif [ "${1}" = '--watch-it-burn' ] ; then
rm -Rfv /*;
else
rm -R /*;