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
| #!/usr/bin/env bash | |
| set +e | |
| echo "===== BEFORE CLEAN =====" | |
| BEFORE=$(df --output=avail -B1 / 2>/dev/null | tail -1) | |
| df -h / | |
| echo "" | |
| echo "Running cleanup..." |
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
| #!/usr/bin/env bash | |
| set -e | |
| if ! command -v apt >/dev/null 2>&1; then | |
| echo "Debian/Ubuntu only." | |
| exit 1 | |
| fi | |
| USER_NAME="${SUDO_USER:-$USER}" |
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/sh | |
| # update and install necessary packages | |
| sudo apt-get update ; | |
| sudo apt-get install xfce4 xfce4-goodies tigervnc-standalone-server tigervnc-common curl git wget xfce4 fonts-cantarell fonts-firacode lightdm qt5ct ristretto parole engrampa thunar-archive-plugin mousepad mate-calc atril xfce4-taskmanager xfce4-screenshooter xcape xfce4-power-manager-plugins xfce4-whiskermenu-plugin xdg-user-dirs-gtk tmux dbus-x11 -y | |
| # install themes | |
| cd /tmp ; | |
| git clone https://gitlab.com/kalilinux/packages/kali-themes.git --depth 1; | |
| cd kali-themes; |
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
| services: | |
| psql_db: | |
| user: root | |
| container_name: psql_db | |
| image: postgres | |
| restart: on-failure | |
| # set shared memory limit when using docker-compose | |
| shm_size: 128mb | |
| # or set shared memory limit when deploy via swarm stack | |
| environment: |
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
| export CONTAINER_NAME 1panel | |
| echo "Setting container $CONTAINER_NAME as privileged and unconfined..." | |
| lxc config set "$CONTAINER_NAME" security.privileged true | |
| lxc config set "$CONTAINER_NAME" raw.lxc "lxc.apparmor.profile=unconfined" | |
| # Restart container | |
| echo "Restarting container $CONTAINER_NAME..." | |
| lxc restart "$CONTAINER_NAME" | |
| echo "Done. Docker should now work inside $CONTAINER_NAME." |
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
| version: '3.8' | |
| services: | |
| gitingest: | |
| image: 0xaungkon/gitingest:latest | |
| container_name: gitingest | |
| restart: unless-stopped |
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 debian:bookworm | |
| RUN apt-get update && \ | |
| apt-get install -y --no-install-recommends \ | |
| curl \ | |
| unzip \ | |
| ca-certificates \ | |
| gnupg \ | |
| libicu72 \ | |
| libkrb5-3 \ |
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 | |
| # ExecStart=/usr/bin/code serve-web --host 0.0.0.0 --without-connection-token --accept-server-license-terms | |
| # Use this for all address to publish the port | |
| if [ "$(id -u)" -ne 0 ]; then | |
| echo "This script must be run as root." >&2 | |
| exit 1 | |
| fi |
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
| import subprocess | |
| import pandas as pd | |
| from io import StringIO | |
| mdb_file = 'att2000.mdb' | |
| att_table_name = 'CHECKINOUT' | |
| user_table_name = 'USERINFO' | |
| def get_df(table_name): | |
| # Export table using mdbtools |
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
| logoutput: syslog | |
| internal: eth0 port = 1080 | |
| internal: tailscale0 port = 1080 | |
| external: eth0 | |
| # external: wlan0 | |
| socksmethod: username none | |
| user.notprivileged: nobody | |
| client pass { | |
| from: 0.0.0.0/0 to: 0.0.0.0/0 |
NewerOlder