-
Play with Docker classroom http://training.play-with-docker.com/alacart/
-
Docker for Developers Stage 1 http://training.play-with-docker.com/dev-stage1/
-
Docker for Beginners - Linux http://training.play-with-docker.com/beginner-linux/
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
########## | |
# Win10 Initial Setup Script | |
# Author: Disassembler <[email protected]> | |
# Version: 1.7, 2016-08-15 | |
# dasm's script: https://github.com/Disassembler0/Win10-Initial-Setup-Script/ | |
# THIS IS A PERSONALIZED VERSION | |
# This script leaves more MS defaults on, including MS security features. | |
# Tweaked based on personal preferences for @alirobe 2016-11-16 - v1.7.1 |
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 | |
##################################################### | |
# Name: Bash CheatSheet for Mac OSX | |
# | |
# A little overlook of the Bash basics | |
# | |
# Usage: | |
# | |
# Author: J. Le Coupanec | |
# Date: 2014/11/04 |
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 | |
# check certificate if it is generated from this key | |
# usage check_ssl_key_crt.sh "key file" "certificate" | |
[ $# -eq 0 ] && { echo "Usage: $0 'key file' ' ' 'cert file'" exit 999; } | |
if [[ $((openssl x509 -noout -modulus -in $2 | openssl md5 | awk '{print $2}'; openssl rsa -noout -modulus -in $1 | openssl md5 | awk '{print $2}') | uniq -c | wc -l) -eq 1 ]] | |
then printf "Everything ok with this certificate.\n It was generated by key $1\n" | |
else printf "Certificate $2 compromised or generated with another key." | |
fi |
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
a script in you bashrc to sync locally your repos | |
alias gitdown='find . -name .git -type d | xargs -n1 -P4 -I% git --git-dir=% --work-tree=%/.. pull -v --progress' |
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
### Keybase proof | |
I hereby claim: | |
* I am besmirzanaj on github. | |
* I am besmirzanaj (https://keybase.io/besmirzanaj) on keybase. | |
* I have a public key ASC6Or-qwENIhD35L9YdkxDzGjojzhFbaT0IkHjMy1t_tgo | |
To claim this, I am signing this object: |
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
Packer has the ability to import Virtualbox OVA artifacts into AWS | |
using Amazons Import/Export feature. There are a number of prerequisites, | |
the setup of which are detailed below. | |
1. Create an S3 bucket to hold uploaded temporary build artifacts | |
$ aws s3 mb s3://my-organisation.com-eu-west-1-vmimport-bucket --region eu-west-1 | |
make_bucket: s3://my-organisation.com-eu-west-1-vmimport-bucket/ | |
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 | |
# EDS Certificate pin calculator | |
# 2023, Besmir Zanaj | |
# Usage: | |
# /ets_pin_calculator.sh <CERT_FILE> | |
# This script will calulate the EDS cert pin for a certificate file. | |
# More info in RFC-7469 - https://www.rfc-editor.org/rfc/rfc7469#section-2.1.1 |
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 | |
# Author: Besmir Zanaj, 2024 | |
# This is a very raw script to backup configs (no logs and no stats) from a technitium server | |
# to another | |
# | |
# first create two tokens: one on the source server and another one on the destination one | |
# fill out the vars below | |
# create a cronjob with this script on the destinaton host | |
# eg: |
OlderNewer