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
### code --list-extensions | xargs -L1 echo "code --install-extension" | |
code --install-extension cfmleditor.cfmleditor | |
code --install-extension davidrogers.luceedebug | |
code --install-extension docker.docker | |
code --install-extension domenicc.cfml-component-paths | |
code --install-extension mechatroner.rainbow-csv | |
code --install-extension ms-azuretools.vscode-containers | |
code --install-extension ms-vscode-remote.remote-containers | |
code --install-extension ms-vscode-remote.remote-ssh |
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 | |
## https://github.com/OpenVPN/openvpn3-linux | |
CONFIG=~/.ssh/configuration-file.ovpn | |
COMMAND=${1:-list} | |
if [ $COMMAND = "list" ] ; then | |
openvpn3 sessions-list |
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
## this file should be sourced in .bashrc or .zshrc | |
alias archivemgr='file-roller' | |
alias cls='printf "\ec"' | |
alias cleanup-snaps='snap list --all | while read snapname ver rev trk pub notes; do if [[ $notes = *disabled* ]]; then sudo snap remove "$snapname" --revision="$rev"; fi; done' | |
alias cleanup-vscode='rm -rf .config/Code/Cache/* .config/Code/CachedData/* .config/Code/CachedExtensions/* .config/Code/CachedExtensionVSIXs/*' | |
alias copypwd='pwd | tr -d "\n" | pbcopy' ## copies current working directory to clipboard, requires apt install xclip | |
alias date-utc='date --utc -d' ## e.g. date-utc @1710720000, or date-utc 2024-03-18 | |
alias date-epoch='date --utc +%s -d' ## e.g. date-epoch 2024-03-18 | |
alias dell-servicetag='sudo dmidecode -s system-serial-number' |
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
Lucee 6 |
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
ARG TOMCAT_VERSION=9.0.70 | |
ARG BASE_JAVA_IMAGE=azul/zulu-openjdk-alpine:11-jre-latest | |
ARG TOMCAT_FILENAME="apache-tomcat-${TOMCAT_VERSION}" | |
ARG CATALINA_HOME_DIR=/srv/www/catalina-home | |
ARG CATALINA_HOME=${CATALINA_HOME_DIR}/${TOMCAT_FILENAME} | |
ARG CATALINA_BASE=/srv/www/catalina-base | |
## Image size 238MB |
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
## image size 1.36GB | |
FROM alpine AS nginx-builder | |
ARG NGINX_VERSION=1.23.1 | |
ARG OPENSSL_VERSION=3.0.7 | |
ARG ZLIB_VERSION=1.2.13 | |
ARG NGINX_DIR=/usr/local/nginx | |
RUN apk --update add bash curl perl vim pcre-dev build-base linux-headers \ | |
&& mkdir -p /usr/local/src && cd /usr/local/src \ |
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
FROM ubuntu:22.04 | |
ENV NGINX_VERSION=1.23.3 | |
ENV NGINX_BIN=/usr/sbin/nginx | |
ENV NGINX_LOG=/var/log/nginx | |
ENV NGINX_CONF=/etc/nginx |
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
FROM eclipse-temurin:11-jdk-jammy | |
## allow to set a user id and group to match the host user for easy file sharing | |
ARG USER_ID=1000 | |
## Tomcat version | |
ARG TOMCAT_VERSION=9.0.70 | |
ENV SETUP_DIR "/var/local/tomcat" | |
ENV USER_ID ${USER_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
USER_ID=1000 | |
TOMCAT_VERSION=9.0.70 | |
TOMCAT_FILENAME=apache-tomcat-${TOMCAT_VERSION} | |
SETUP_DIR=/var/local/tomcat | |
mkdir -p ${SETUP_DIR} && cd ${SETUP_DIR} |
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
/** converts http cookie header to json using split */ | |
create or replace function httpcookie2json(cookie text) | |
returns text language plpgsql as | |
$body$ | |
declare | |
arr text[]; | |
el text; | |
pos int; | |
k text; | |
v text; |
NewerOlder