- Install docker and docker-compose
sudo mkdir -p /opt/shadowsocks-rust- cd /opt/shadowsocks-rust
- Create files:
config.jsonand docker-compose.yml` - Change passphrases in config
docker-compose up -d- ???
- PROFIT
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 | |
| # Usage: lidhook open|closed | |
| # Script to enable or disable internal monitor based on lid state | |
| # Designed for use with Hyprland `bindl` switch events | |
| # # When lid is closed, disable internal monitor | |
| # | |
| # ```.local/bin/hypr-laptop-lid-hook | |
| # bindl = , switch:on:Lid Switch, exec, ~/.config/hypr/scripts/hypr-laptop-lid-hook closed |
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
| $size = 1GB | |
| $content = New-Object byte[] $size | |
| (New-Object System.Random).NextBytes($content) | |
| # Get the current drive (assuming you're working in the current directory's drive) | |
| $drive = (Get-Location).Drive.Name | |
| for ($i = 1; $i -le 99999; $i++) { | |
| # Show free space on the drive | |
| $freeSpace = (Get-PSDrive $drive).Free |
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 | |
| set -eu | |
| [ -n "${UMASK:-}" ] && umask "$UMASK" | |
| if [ "$(id -u)" = '0' ]; then | |
| binary="$1" | |
| if [ -z "${PCAP:-}" ]; then | |
| # If Syncthing should have no extra capabilities, make sure to remove them |
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 atproto import Client | |
| def post_message(client, text, image=None, image_alt=None): | |
| if image: | |
| client.send_image(text=text, image=image, image_alt=image_alt) | |
| else: | |
| client.send_post(text=text) | |
| def main(): | |
| client = Client() |
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 | |
| # From https://blog.ambor.com/2021/08/using-curl-to-send-e-mail-with.html | |
| sesAccess='AKIAXXXXXXXXXXXXXXXX' sesSecret='Bxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' | |
| sesFromName="Joe McJones" | |
| sesFromAddress="[email protected]" | |
| sesToName="Mary McMary" | |
| sesToAddress="[email protected]" | |
| sesSubject="Test Email from Script" | |
| sesSMTP="email-smtp.us-east-1.amazonaws.com" |
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 | |
| # args: | |
| # - `--7` - for last 7 days | |
| # - `--24` - for last 24 days | |
| veeamconfig session list ${1} | grep -v "^Total amount:" | sed -e 's/ \+/;/g' |
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
| { | |
| "name": "ANNE PRO 2", | |
| "device": 1, | |
| "model": 5, | |
| "type": "layout", | |
| "data": { | |
| "layer1": [ | |
| 41, | |
| 30, | |
| 31, |
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
| find /etc/apt/sources.list.d/ -delete \ | |
| && apt update \ | |
| && apt install aptitude -y \ | |
| && DEBIAN_FRONTEND=noninteractive \ | |
| aptitude --assume-yes markauto \ | |
| '~i!?name(ubuntu-minimal~|linux-generic~|openssh-server~|systemd~|ifupdown)' \ | |
| && apt update \ | |
| && apt autopurge -y |
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
| Привет. Этот сервер создан для игр в Among Us. У нас есть несколько правил, которые нужно принимать и уважать | |
| • Мы играем с голосом. Мы находим очень убедительным аргументом тон и построение речи, что с текстом выходит не так хорошо; | |
| • Мы играем для удовольствия, в приятной компании предаёмся лжи, обману, саботажу и смертоубийствам; | |
| • Мы не считаем главным победу, куда больше мы ценим красивую игру; | |
| • Мы дружелюбны друг к другу - не все умеют играть - и это нормально. Научим и объясним; | |
| • Мы не используем прямые оскорбления даже в шутку; | |
| • Мы играем честно — не подглядываем соседу в монитор, не используем в аргументации то, что у кого-то в Discord пролез звук убийства, не подсматриваем в чужую трансляцию; | |
| • Мы не воспринимаем игру всерьёз, всё происходящее в игре не должно восприниматься как личный наезд или попытку оскорбить; | |
| • Мы считаем, что мониторинг прогрессбара - плохой аргумент в споре; | |
| • Мы находим неспортивным использование кнопки экстренного сбора для сброса kill cooldown у импостеров; |
NewerOlder