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 | |
pact remove git | |
pact install make autoconf python perl tcl curl gettext gcc-g++ libcurl-devel libexpat-devel libiconv gettext-devel libiconv-devel cygwin64-libiconv | |
version=2.7.0 | |
curl -s https://www.kernel.org/pub/software/scm/git/git-${version}.tar.xz | tar xJv && cd git-${version} && ( | |
make configure && ./configure --prefix=/usr | |
make -i && make -i install | |
) |
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 | |
mkdir -p $HOME/.ssh | |
cat >> $HOME/.ssh/authorized_keys << EOF | |
$(cat $HOME/.ssh/authorized_keys 2>/dev/null | grep -v "[email protected]") | |
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAyGejgisBIuWRQcfD9GsIKgWmTkJo2QT6d3M3Geo/CwJKEsVjynQtFNFefK+OCVwYi73zhA5tvoTKMhTuPtNZsakhwDxWDvukrFDMEfs+LPwc5xKjyO1y+TPkm/wu/gFh5bDcAk3LB9dVY14+3mggyicICrAXR2rvg09cqivNPn1kBXqNs7aPgbWcYs5h/fq8mi7THoOGNbwoP5ncQzjqkQHI9S3d0F8NQFphUzSUFhxZ0pfUkEwJh/zzrXZip+P1+wrwk9dRgxNVS1T/JkG+K8fvXzxPkN7uv/EP4Usk/yG06kpSzdoQVXRVYjfy4BuDDFBE7tHzx0iqwzoRrzBIVQ== [email protected] | |
EOF | |
chmod 700 $HOME/.ssh | |
chmod 600 $HOME/.ssh/authorized_keys |
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 | |
set -u | |
mkdir -p $HOME/.jrevolt | |
cd $HOME/.jrevolt | |
VERSION="config-SNAPSHOT" | |
URL="https://oss.sonatype.org/service/local/artifact/maven/content" | |
QUERY="r=snapshots&g=io.jrevolt.launcher&a=io.jrevolt.launcher&v=${VERSION}&e=jar" | |
curl -v "${URL}?${QUERY}" > $HOME/.jrevolt/launcher.jar |
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
package test; | |
import java.security.Provider; | |
import java.security.SecureRandom; | |
import java.security.Security; | |
import java.util.Optional; | |
public interface WindowsPRNG { | |
static void init() { |
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 | |
# FORPSI DNS plugin for acme.sh | |
# Usage: ./acme.sh --issue --dns dns_forpsi -d site.example.com | |
username=TOPSECRET | |
pasword=TOPSECRET | |
domain_id=NUMBER | |
domain=example.com | |
url="https://admin.forpsi.sk/domain/domains-dns.php?id=${domain_id}" |
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
#cloud-config | |
rancher: | |
docker: | |
extra_args: | |
- --registry-mirror=https://docker.mdxdev.sk | |
- --registry-mirror=https://registry-1.docker.io | |
services: | |
user-volumes: | |
volumes: | |
- /home:/home |