Skip to content

Instantly share code, notes, and snippets.

@tyrcho
tyrcho / Dockerfile
Created February 6, 2015 08:48
activiti explorer in tomcat 7 - docker
FROM tomcat:7
RUN curl -SL https://github.com/Activiti/Activiti/releases/download/activiti-5.17.0/activiti-5.17.0.zip -o activiti.zip \
&& unzip activiti.zip \
&& rm activiti.zip \
&& cp activiti-5.17.0/wars/activiti-explorer.war webapps \
&& rm -rf activiti-5.17.0
@elafargue
elafargue / A Hypriot K8S install.md
Last active October 26, 2019 05:32 — forked from aaronkjones/k8s-pi.md
K8s (v1.10.5) on Hypriot (July 2018)
@adumont
adumont / PlugStateTasker.md
Created August 29, 2017 12:40
Retrieve HS100 plug state in Tasker
Get Plug State (132)
	A1: Perform Task [ Name:Tp-link login Priority:%priority Parameter 1 (%par1): Parameter 2 (%par2): Return Value Variable: Stop:Off ] 
	A2: Variable Set [ Name:%deviceId To:XXXXXXXXXXXXXXXX Recurse Variables:Off Do Maths:Off Append:Off ] 
	A3: HTTP Post [ Server:Port:https://wap.tplinkcloud.com/ Path:/?token=%TOKEN Data / File:{
"method":"passthrough",
"params": {"deviceId": "%deviceId", "requestData": "{\"system\":{\"get_sysinfo\":null},\"emeter\":{\"get_realtime\":null}}"
 }
} Cookies: User Agent: Timeout:10 Content Type:text/plain Output File: Trust Any Certificate:Off ] 
	A4: JavaScriptlet [ Code:var data = JSON.parse(global("HTTPD"));
@StevenMaude
StevenMaude / sha256frompubkey.py
Last active August 14, 2022 04:06
Generate SHA256 fingerprint from a public key
#!/usr/bin/python
# coding=utf-8
# sha256frompubkey.py: Displays SHA256 fingerprint of public key in Python 2/3.
# Modified by Steven Maude from
# https://github.com/joyent/python-manta/blob/4de7445277c0971c7ff43ef246018d055ef21d20/manta/auth.py
# MIT licence.
# Usage: obtain a public key using ssh-keyscan <host> > key.pub
@artbristol
artbristol / monitor.sh
Last active March 24, 2023 04:54
inotify watch a directory with timestamps
inotifywait --monitor --timefmt '%F %T' --format '%T %w%f %e' --recursive $1
@sdomagala
sdomagala / serverless-with-trust-policy-change.yml
Created February 3, 2020 09:05
Change Trust Policy in Serverless IAM Role (or any other params other than policy)
## all other serverless.yml configuration
functions:
# your functions
provider:
name: aws
# your provider config
resources:
Resources:
@mazenovi
mazenovi / vault-tree
Last active November 2, 2023 18:49
explore recursively your vault by HashiCorp
#!/usr/bin/env bash
function walk() {
for secret in $(vault list $1 | tail -n +3)
do
if [[ ${secret} == *"/" ]] ; then
walk "${1}${secret}"
else
echo "${1}${secret}"
fi
@RichardBronosky
RichardBronosky / README.md
Last active December 1, 2023 08:19
Using cloud-init for cloudless provisioning of Raspberry Pi

Installing cloud-init on a fresh Raspbian Lite image

This is a work in Progress!

Purpose

This mainly demonstrates my goal of preparing a Raspberry Pi to be provisioned prior to its first boot. To do this I have chosen to use the same cloud-init that is the standard for provisioning servers at Amazon EC2, Microsoft Azure, OpenStack, etc.

I found this to be quite challenging because there is little information available for using cloud-init without a cloud. So, this project also servers as a demonstration for anyone on any version of Linux who may want to install from source, and/or use without a cloud. If you fall into that later group, you probably just want to read the code. It's bash so everything I do, you could also do at the command line. (Even the for loop.)

@p3t3r67x0
p3t3r67x0 / openssl_commands.md
Last active February 3, 2024 18:53
Some list of openssl commands for check and verify your keys

openssl

Install

Install the OpenSSL on Debian based systems

sudo apt-get install openssl
@weavenet
weavenet / delete_all_object_versions.sh
Created May 4, 2015 05:21
Delete all versions of all files in s3 versioned bucket using AWS CLI and jq.
#!/bin/bash
bucket=$1
set -e
echo "Removing all versions from $bucket"
versions=`aws s3api list-object-versions --bucket $bucket |jq '.Versions'`
markers=`aws s3api list-object-versions --bucket $bucket |jq '.DeleteMarkers'`