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
#!/bin/sh | |
# | |
# Find current script directory | |
# | |
ScriptDirectory="$( cd "$( dirname "$0" )" && pwd )" | |
echo "This script is currently @ $ScriptDirectory" |
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 oracle/graalvm-ce:20.2.0-java11 | |
# Sourced from: https://docs.oracle.com/en/graalvm/enterprise/20/docs/reference-manual/native-image/StaticImages/ | |
RUN \ | |
# musl | |
curl -fsSL -o musl-1.2.1.tar.gz https://musl.libc.org/releases/musl-1.2.1.tar.gz && \ | |
tar -xvf musl-1.2.1.tar.gz && \ | |
cd musl-1.2.1 && \ | |
./configure --disable-shared --prefix=/usr && \ |
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 | |
# vim: ft=bash ts=2 sw=2 sts=2 | |
# | |
# agnoster's Theme - https://gist.github.com/3712874 | |
# A Powerline-inspired theme for BASH | |
# | |
# (Converted from ZSH theme by Kenny Root) | |
# https://gist.github.com/kruton/8345450 | |
# | |
# Updated & fixed by Erik Selberg erik@selberg.org 1/14/17 |
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 | |
# | |
# Sources: | |
# - https://askubuntu.com/questions/844132/how-to-repair-boot-on-luks-encrypted-harddrive | |
# - https://gist.github.com/samuelcolvin/43c5ed2807e7db004b1058d0c9bfb068 | |
# - https://unix.stackexchange.com/questions/178666/sbin-cryptsetup-not-found-on-boot | |
# | |
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 netcat to proxy git ssh through a proxy. | |
# Useful if you are trying to clone ssh:// from inside a company. | |
# | |
# Save this file as `~/.ssh/config` | |
# | |
# See http://www.emilsit.net/blog/archives/how-to-use-the-git-protocol-through-a-http-connect-proxy/ for Emil Sit's original HTTP proxy script. | |
# See http://www.jones.ec/blogs/a/entry/using_git_through_a_socks/ for updated SOCKS version. | |
# | |
ProxyCommand nc -x 10.0.0.84:1986 %h %p |
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
#!/bin/sh | |
help=0 | |
latest=0 | |
verbose=0 | |
status=0 | |
usage() { | |
cat <<-EOF | |
${0##*/} [options] |
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
#!/bin/bash | |
# Uninstall Script | |
if [ "${USER}" != "root" ]; then | |
echo "$0 must be run as root!" | |
exit 2 | |
fi | |
while true; do |
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
import java.security.SecureRandom | |
import cats.Monad | |
import cats.effect.IO | |
import tsec.cipher.symmetric.jca._ | |
import tsec.cipher.symmetric.{AAD, _} | |
import tsec.common._ | |
import scala.util.Random |
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
-ea | |
-server | |
-Xms512m | |
-Xmx2048m | |
-XX:MaxPermSize=512m | |
-XX:MaxMetaspaceSize=512m | |
-XX:ReservedCodeCacheSize=256m | |
-XX:CMSIncrementalDutyCycleMin=0 | |
-XX:+UseCodeCacheFlushing | |
-XX:+UseConcMarkSweepGC |