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/awk -f | |
| # | |
| # Print validty of a cert from a nmap scan report | |
| # | |
| # Alex Negulescu | |
| # | |
| BEGIN { | |
| nd=0 | |
| start=0 | |
| has_ssl=0 |
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
| # | |
| # mkdir -p /shared/portainer/data/ | |
| # docker-compose -f portainer-only.yml -p portainer up -d | |
| # | |
| version: '3.7' | |
| services: | |
| portainer: | |
| image: portainer/portainer-ce:latest | |
| container_name: 'portainer' |
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 | |
| cd /var/lib/grafana/; mkdir sqtemp; apk fetch sqlite; tar -C sqtemp/ -xzf sqlite-*.apk ; mv sqtemp/usr/bin/sqlite3 sqlite3; rm -rf sqtemp sqlite-*.apk |
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 | |
| # | |
| # This script should prevent the following suspend errors | |
| # which freezes the Dell Inspiron laptop. | |
| # | |
| # Put it in /usr/lib/systemd/system-sleep/xhci.sh | |
| # | |
| # The PCI 00:14.0 device is the usb xhci controller. | |
| # | |
| # kernel: [67445.560610] pci_pm_suspend(): hcd_pci_suspend+0x0/0x30 returns -16 |
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 | |
| # short circuit if first arg is not 'mongod' | |
| [ "$1" = "mongod" ] || exec "$@" || exit $? | |
| : ${MONGO_USERNAME} | |
| : ${MONGO_PASSWORD} | |
| # Database owned by mongodb | |
| [ "$(stat -c %U /data/db)" = mongodb ] || chown -R mongodb /data/db |
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 alpine:3.8 | |
| LABEL maintainer "Alex Negulescu <alecs@sysops.ro>" | |
| ENV MONGO_USERNAME root | |
| ENV MONGO_PASSWORD password | |
| RUN addgroup -S -g 9999 mongodb 2>/dev/null | |
| RUN adduser -S -D -h /var/lib/mongodb -s /sbin/nologin -G mongodb -g mongodb -u 9999 mongodb 2>/dev/null |
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.7' | |
| services: | |
| trudesk: | |
| # polonel/trudesk:1.1.3 | |
| image: polonel/trudesk:next | |
| restart: always | |
| # ports: | |
| # - 8118:8118 | |
| environment: | |
| NODE_ENV: production |
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
| sd_make() { | |
| local accesstoken="" | |
| local domain="" | |
| local subject=$1 | |
| local description=$2 | |
| echo $1 | |
| echo $2 | |
| if [ -n "${subject}" -a -n "${description}" ]; then | |
| curl "https://${domain}/api/v1/tickets/create" --compressed \ | |
| -H "authority: ${domain}" -H 'accept: application/json, text/plain, */*' \ |
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
| #!/sbin/openrc-run | |
| USER=root | |
| GROUP=root | |
| SERVICE="${SERVICE}" | |
| DIR="/opt/${SERVICE}" | |
| PDIR="/run/${SERVICE}" | |
| PID_FILE="${PDIR}/${SERVICE}.pid" | |
| COMMAND="" | |
| CMD_ARGS="" |
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
| apk list -I -v | awk 'BEGIN {i=0}; { word=substr($3,2,index($3,"}")-2); if (word != "") { packs[i]=word; let i++ } }; END { for (id in packs) { printf packs[id]" " } }' |