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 alpine:3.15.0 AS builder | |
ARG RELEASE=0.9.0 | |
RUN apk add --no-cache wget tar && mkdir -p /app && mkdir -p /tmp/build && \ | |
wget -O /tmp/glowing-bear-${RELEASE}.tar.gz https://github.com/glowing-bear/glowing-bear/archive/refs/tags/${RELEASE}.tar.gz && \ | |
tar xvzf /tmp/glowing-bear-${RELEASE}.tar.gz --strip-components=1 -C /tmp/build && \ | |
# prepare directory with app and app only | |
mv /tmp/build/assets /app && mv /tmp/build/3rdparty /app && mv /tmp/build/css /app && \ | |
mv /tmp/build/directives /app && mv /tmp/build/js /app && mv /tmp/build/index.html /app |
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 | |
set -euo pipefail | |
WEECHAT_LOGDIR="${HOME}/.weechat/logs" | |
archive_last_year() { | |
local LAST_YEAR=$(date -d "now - 1 year" +"%Y") | |
find "${WEECHAT_LOGDIR}/${LAST_YEAR}" -type f -iname "*.weechatlog" -exec xz {} \; | |
} |
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
# Set maximum history size | |
HISTSIZE=100000 | |
# Set maximum history size stored in history file | |
SAVEHIST=100000 | |
# Append to history instead of replacing when using multiple ssh sessions | |
setopt appendhistory | |
# Append command to history without waiting for shell to exit |
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
# Set history file | |
HISTFILE="${HOME}/.zsh_history" | |
# Set maximum history size | |
HISTSIZE=100000 | |
# Set maximum history size stored in history file | |
SAVEHIST=100000 | |
# Append to history instead of replacing when using multiple ssh sessions |
OlderNewer