Skip to content

Instantly share code, notes, and snippets.

@bodziek666
bodziek666 / Dockerfile
Last active January 30, 2022 18:54
Glowing Bear Dockerfile
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
#!/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 {} \;
}
@bodziek666
bodziek666 / .zshrc
Created November 10, 2023 23:45
First attemt in using zsh
# 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
@bodziek666
bodziek666 / .zshrc
Created July 2, 2024 21:59
.zshrc Linux
# 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