This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM centos/systemd | |
LABEL maintainer="[email protected]" | |
LABEL version="0.5" | |
LABEL description="Run vmware workstation in a Docker container." | |
ARG VAGRANT_VERSION=2.2.4 | |
ARG PACKER_VERSION=1.4.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# """ | |
# Here is a tool to access the memory of a given pid. | |
# far from being perfect, you cam adjust it to your environment. | |
# Validate the args before using this chunk in real life. | |
# d4gh0s7 | |
# """ | |
import ctypes, re, sys | |
import argparse |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -o noclobber # Avoid overlay files (echo "hi" > foo) | |
set -o errexit # Used to exit upon error, avoiding cascading errors | |
# set -o nounset # Exposes unset variables | |
#Setting up some colors for helping read the demo output | |
red=$(tput setaf 1) | |
green=$(tput setaf 2) | |
yellow=$(tput setaf 3) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
exports.handler = async (event, context, callback) => { | |
const response = event.Records[0].cf.response; | |
const headers = response.headers; | |
headers['Strict-Transport-Security'] = [{ | |
key: 'Strict-Transport-Security', | |
value: 'max-age=63072000; includeSubDomains; preload', | |
}]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let config = { }; | |
config.fizzTest = 3; | |
config.buzzTest = 5; | |
config.checks = 100; | |
config.fizzText = 'Fizz'; | |
config.buzzText = 'Buzz'; | |
for (let i = 1; i <= config.checks; i++) { | |
let expletive = ''; | |
if (i % config.fizzTest === 0) expletive += config.fizzText; |