This file contains hidden or 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 python:3-slim | |
run pip install kubernetes | |
copy create-deployment.py /src/ | |
copy nginx-deployment.yaml /src/ | |
workdir /src | |
cmd python create-deployment.py |
This file contains hidden or 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
""" | |
Attempt brute force attack against an SHA256 encrypted value | |
The length of the key can be chosen as script parameter and | |
demonstrates how key length is crucial to security of the key. | |
run the script with a 6 bit private key: | |
> python brute.py 6 | |
compare with a 12 bit private key: |
This file contains hidden or 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
#/bin/bash -u | |
# | |
# take a dir with a bunch of files | |
# and archive into a collection of tar.gz grouped by month | |
# | |
# i.e. get all your phone photos into | |
# a dir, run this script to create monthly | |
# tarballs and upload to S3 | |
# |
This file contains hidden or 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
""" | |
list and trigger releases from azure devops | |
API: | |
https://docs.microsoft.com/en-us/rest/api/azure/devops/?view=azure-devops-rest-6.0 | |
https://docs.microsoft.com/en-us/rest/api/azure/devops/release/releases/create?view=azure-devops-rest-6.0 | |
pypi: | |
https://github.com/microsoft/azure-devops-python-api |
This file contains hidden or 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
#!/bin/bash -u | |
# | |
# create a GKE cluster with | |
# + a windows node pool, | |
# + a linux node pool, and | |
# + a gpu node pool | |
# | |
CLUSTER_NAME="mixed-os-cluster" |
This file contains hidden or 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
#include <cuda.h> | |
#include <cuda_runtime_api.h> | |
#include <nvrtc.h> | |
#include <vector> | |
#include <iostream> | |
#include <iterator> | |
// simple kernel to compile and run | |
const char *cuda_kernel = " \n\ |