Skip to content

Instantly share code, notes, and snippets.

View datenbrille's full-sized avatar
🎯
Focusing

Karl Spies datenbrille

🎯
Focusing
  • mySugr GmbH
  • Vienna
View GitHub Profile
@lukeplausin
lukeplausin / transfer_ssm_file.sh
Last active July 16, 2024 16:50
Transfer a file to EC2 SSM instance without using S3 (SSM only)
# This script will explain how to transfer a file to EC2 using SSM ONLY!
# You will need to have permission to run SSM commands on the target machine and have sudo access as well
# Infos
INSTANCE_ID=i-1234567890
FILE_NAME=the_file.tar.gz
# Step 1: Run command on machine to install netcat and dump from port to filename
# < Start session
@mrkelly
mrkelly / event.builder.js
Created August 6, 2014 19:44
Angular Logstash
angular.module('hf.events.builder', [
'app.resources',
'app.values'
])
.factory('EventBuilder', function ($injector, $window, apiUrl) {
var EventBuilder = function EventBuilder(message) {
this['@timestamp'] = new Date();
this['@message'] = message || '';
return this;
};