Skip to content

Instantly share code, notes, and snippets.

View martonsz's full-sized avatar

Márton Szücs martonsz

View GitHub Profile
#!/bin/sh
# Run speedtest.net CLI tool in a docker container
docker run --rm tianon/speedtest speedtest --accept-license --accept-gdpr
#!/usr/bin/env python3
# Searches for files named 'java' and executes it with the argument '-version'
# Saves the result in java-versions.csv
import os
import subprocess
import sys
from sys import stderr
def search_java_files(directory):
#!/bin/bash
set -e
# Install jabba from Jabba-Team
if [[ ! -f ~/.jabba/jabba.sh ]]; then
curl -sL https://github.com/Jabba-Team/jabba/raw/main/install.sh | bash && . ~/.jabba/jabba.sh
fi
source ~/.jabba/jabba.sh
echo "Uninstalling current jabba JDKs"
#!/bin/bash
# Downloads ARM64 and AMD64 version of Java for MacOS running on M1
#
# https://github.com/Jabba-Team/jabba/issues/14
# URLs are found from this index.json https://github.com/Jabba-Team/jabba/blob/main/index.json
[ -s "$HOME/.jabba/jabba.sh" ] && source "$HOME/.jabba/jabba.sh"
jabba install 17-zulu-arm=tgz+https://api.foojay.io/disco/v3.0/ids/116a80beb8b3207aad5fa8d1e1af20c6/redirect
jabba install 8-zulu-arm=tgz+https://api.foojay.io/disco/v3.0/ids/c3f7c076bf335d1061c74f7fab42bb89/redirect
@martonsz
martonsz / .gitattributes
Created February 13, 2022 09:35
.gitattributes template
# Line ending example from: https://code.visualstudio.com/docs/remote/troubleshooting#_resolving-git-line-ending-issues-in-containers-resulting-in-many-modified-files
# Always use LF line endings
* text=auto eol=lf
# Declare files that will always have CRLF line endings on checkout.
*.{cmd,[cC][mM][dD]} text eol=crlf
*.{bat,[bB][aA][tT]} text eol=crlf

Keybase proof

I hereby claim:

  • I am martonsz on github.
  • I am martonsz (https://keybase.io/martonsz) on keybase.
  • I have a public key ASB0qfn99oOOvgfgZ1X95A7IfF296nBOmZtXCdWzFeTc3Ao

To claim this, I am signing this object:

@martonsz
martonsz / sendgrid-proxy.yaml
Created March 22, 2019 12:45
Kubernetes nginx ingress manifest to setup SSL termination and reverse proxy for Sendgrid link tracking
# Kubernetes nginx ingress manifest to setup SSL termination and reverse proxy for Sendgrid link tracking
# https://sendgrid.com/docs/ui/account-and-settings/custom-ssl-configurations/
kind: Service
apiVersion: v1
metadata:
name: sendgrid-proxy
spec:
ports:
- protocol: TCP