Skip to content

Instantly share code, notes, and snippets.

View ptzagk's full-sized avatar

Panayiotis Tzagkarakis ptzagk

  • IST SA
  • Athens, Greece
View GitHub Profile
@ptzagk
ptzagk / Jenkinsfile
Created March 21, 2024 13:23 — forked from merikan/Jenkinsfile
Some Jenkinsfile examples
Some Jenkinsfile examples
@ptzagk
ptzagk / task.sh
Created March 12, 2024 11:31 — forked from vfarcic/task.sh
# Source: https://gist.github.com/vfarcic/77c63cede031951654d5fea5ce0acb43
#########################################################################################
# Say Goodbye to Makefile - Use Taskfile to Manage Tasks in CI/CD Pipelines and Locally #
#########################################################################################
# Additional Info:
# - Task: https://taskfile.dev
# - Dagger: The Missing Ingredient for Your Disastrous CI/CD Pipeline: https://youtu.be/oosQ3z_9UEM
@ptzagk
ptzagk / upload-size-bytes.md
Created September 7, 2022 15:53 — forked from rahmancloud/upload-size-bytes.md
The upload size in bytes # - 512 bytes for the VHD footer (# in this case) must be a multiple of MiB.
$ wc -c os_disk.vhdx
5272240128 os_disk.vhdx

The vhd file size needs to be a number divisible by 1024.

5272240128 / 1025 / 1024 / 1024 = 4.91015625

4.91015625 is not divisible by 1024. We are going to round the number to 5.

#########################################################
# What Is Linkerd Service Mesh? Linkerd Tutorial Part 1 #
# https://youtu.be/mDC3KA_6vfg #
#########################################################
# Referenced videos:
# - Service Mesh In Kubernetes Explained: https://youtu.be/cjhb7_uwzDk
# - Should We Replace Docker Desktop With Rancher Desktop?: https://youtu.be/bYVfCp9dRTE
# - Kustomize - How to Simplify Kubernetes Configuration Management: https://youtu.be/Twtbg6LFnAg
# - Helm vs Kustomize - The Fight Between Templating and Patching in Kubernetes: https://youtu.be/ZMFYSm0ldQ0
@ptzagk
ptzagk / openssl-cheat.sh
Created February 4, 2022 14:17 — forked from alvarow/openssl-cheat.sh
OpenSSL and Keytool cheat sheet
# Generate a new key
openssl genrsa -out server.key 2048
# Generate a new CSR
openssl req -sha256 -new -key server.key -out server.csr
# Check certificate against CA
openssl verify -verbose -CApath ./CA/ -CAfile ./CA/cacert.pem cert.pem
# Self Signed
using System;
using Novell.Directory.Ldap;
namespace KerberosAuth
{
class Program
{
static void Main(string[] args)
{

#Setting up Nginx on Your Local System ###by Keith Rosenberg

##Step 1 - Homebrew The first thing to do, if you're on a Mac, is to install homebrew from http://mxcl.github.io/homebrew/

The command to type into terminal to install homebrew is:

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
@ptzagk
ptzagk / README.md
Created September 10, 2020 14:17 — forked from jimothyGator/README.md
Nginx configuration for Mac OS X with Homebrew, using sites-enabled directory.
mkdir -p /usr/local/etc/nginx/sites-{enabled,available}
cd /usr/local/etc/nginx/sites-enabled
ln -s ../sites-available/default.conf
ln -s ../sites-available/default-ssl.conf

File locations:

  • nginx.conf to /usr/local/etc/nginx/
  • default.conf and default-ssl.conf to /usr/local/etc/nginx/sites-available
  • homebrew.mxcl.nginx.plist to /Library/LaunchDaemons/
@ptzagk
ptzagk / books.md
Created September 8, 2020 08:17 — forked from abstractart/books.md
Free Programming Ebooks - O'Reilly Media. Codeship free ebooks here - https://bit.ly/2oQ0knQ