find /var/log -type f -delete
find /var/log -type f -regex ".*\.gz$"
find /var/log -type f -regex ".*\.[0-9]$"
| # https://rtfm.co.ua/nextcloud-zapusk-v-docker-compose-na-debian-s-ssl-ot-lets-encrypt/ | |
| version: '3' | |
| services: | |
| nginx-proxy: | |
| image: jwilder/nginx-proxy:0.4.0 | |
| labels: | |
| - "com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy=true" | |
| container_name: nextcloud-proxy | |
| networks: | |
| - nextcloud_network |
| git log --oneline --decorate --since="1 week ago" --pretty=%ad%x09%s |
(?<=\s|^) #to look behind the match
(stackoverflow) #the string you want. () optional
(?=\s|$) #to look ahead.
| docker build -t imagename -<<EOF | |
| FROM python:3.8.3 | |
| RUN apt-get -y update && \ | |
| apt-get -y upgrade && \ | |
| apt-get -y install swig pkg-config libboost-dev libsndfile1-dev libboost-all-dev cmake protobuf-compiler libprotoc-dev | |
| EOF |
| #!/bin/bash | |
| libs=$(./lddtree -l $1 | grep -E "\.so$|\.so\..+$") | |
| # find /usr/local/lib/python3.8/ \( -iname "*.so" -o -iname "*.so.*" \) -exec sh -c '~/lddtree -l {} | grep -E "\.so$|\.so\..+$" | grep -v "lib/python3.8/"' \; | sort -u | |
| mkdir libs | |
| for lib in $libs | |
| do | |
| real_path=$(readlink -f $lib) |
| root@63f81279153e:/etc/ld.so.conf.d# cat libc.conf | |
| # libc default configuration | |
| /usr/local/lib | |
| root@63f81279153e:/etc/ld.so.conf.d# cat x86_64-linux-gnu.conf | |
| # Multiarch support | |
| /lib/x86_64-linux-gnu | |
| /usr/lib/x86_64-linux-gnu |
| diff -u fs_state1 fs_state2 | grep -E "^\+/" | sed 's/^\+//g' | less |
| #!/usr/bin/env bash | |
| # | |
| # Create a base Astra Linux Docker image. | |
| # | |
| # Original code: https://github.com/slaykovsky/mk_astra_image/blob/master/mk_astra_image.sh | |
| set -ex | |
| usage() { | |
| cat <<EOOPTS |
| .avatar-user { | |
| border-radius: 3%!important; | |
| } | |
| .btn { | |
| box-shadow: 0 2px 0 rgba(27,31,35,.04), inset 0 1px 0 hsla(0,0%,100%,.25) !important; | |
| } | |
| .btn { | |
| border-radius: 3px !important; |