As configured in my dotfiles.
start new:
tmux
start new with session name:
| #!/bin/bash | |
| ################################################################################ | |
| # Rather than run postgres in its own container, we want to run it on | |
| # the (Ubuntu) host and allow: | |
| # | |
| # + peer connections on the host | |
| # + local md5 connections from any docker container | |
| # | |
| # THIS IS COPY/PASTED FROM COMMAND LINE INPUT AND IS UNTESTED AS A SINGLE SCRIPT | |
| ################################################################################ |
As configured in my dotfiles.
start new:
tmux
start new with session name:
| #!/bin/bash | |
| # based on https://lebkowski.name/docker-volumes/ | |
| # remove exited containers: | |
| docker ps --filter status=dead --filter status=exited -aq | xargs -r docker rm -v | |
| docker volume ls -qf dangling=true | xargs -r docker volume rm | |
| # remove unused images: | |
| docker images --no-trunc | grep '<none>' | awk '{ print $3 }' | xargs -r docker rmi |
| # This script is inspired by https://forum.mikrotik.com/viewtopic.php?t=151953 | |
| # BEGIN SETUP Edit Here | |
| :local myserver ([/system identity get name]) | |
| :local scheduleName "LogMonitor" | |
| :local key "{{KEY FROM WINBOT}}" | |
| :local NoHP "628123xxxxxxx" | |
| :local startBuf [:toarray [/log find message~"keyword 1" || message~"keyword 2" ]] | |
| :local removeThese {"remove keyword"} |
| # Script untuk mengecek kuota hotspot yang telah terpakai dengan memanfaatkan halaman status hotspot | |
| # Dapatkan WINBOT KEY dan MIKROTIK ID di layanan https://mikrotik-winbot.com | |
| <tr> | |
| <td align="right">cek kuota:</td> | |
| <td> | |
| <a href="https://api.mikrotik-winbot.com/api/v1/hotspot/usage/{{WINBOT KEY}}/{{MIKROTIK ID}}/$(username)/"> | |
| Klik Di Sini | |
| </a> | |
| </td> |
| ^.+(youtube.com|www.youtube.com|m.youtube.com|ytimg.com|s.ytmig.com|ytimg.l.google.com|youtube.l.google.com|i.google.com|googlevideo.com|youtu.be|c.youtube.com|cdn.dailymotion.com|metacafe.com|mccont.com|video|videoplayback|tube).*$ |
| pactl load-module module-null-sink sink_name=Virtual-Speaker sink_properties=device.description=Virtual-Speaker | |
| pactl load-module module-remap-source source_name=Remap-Source master=Virtual-Speaker.monitor |
| ### On Login Script | |
| :put (",,0,,,,Disable,");{ | |
| :local key "KEY DARI WINBOT"; | |
| :local noHP "NO HP TUJUAN"; | |
| :local mac $"mac-address"; | |
| :local device [/ip dhcp-server lease get [find mac-address="$mac"] host-name]; | |
| :local activeCount [/ip hotspot active print count-only]; | |
| /tool fetch url="https://api.mikrotik-winbot.com/api/v1/whatsapp/send_message/$noHP/$key/LOG-IN USER $user -enter-IP Address : $address -enter-Mac Address : $mac -enter-Device : $device -enter-Online : $activeCount Users " mode=http keep-result=no} |
| version: "3.0" | |
| services: | |
| elasticsearch: | |
| container_name: es-container | |
| image: docker.elastic.co/elasticsearch/elasticsearch:7.11.0 | |
| environment: | |
| - xpack.security.enabled=false | |
| - "discovery.type=single-node" | |
| networks: | |
| - es-net |