name: plan-mega-review
version: 2.0.0
description: |
The most thorough plan review possible. Three modes: SCOPE EXPANSION (dream big,
build the cathedral), HOLD SCOPE (review what's here with maximum rigor), and
SCOPE REDUCTION (strip to essentials). Context-dependent defaults, but when the
user says EXPANSION — go full send. Challenges premises, maps every failure mode,| --- | |
| name: plan-exit-review | |
| version: 2.0.0 | |
| description: | | |
| Review a plan thoroughly before implementation. Challenges scope, reviews | |
| architecture/code quality/tests/performance, and walks through issues | |
| interactively with opinionated recommendations. | |
| allowed-tools: | |
| - Read | |
| - Grep |
| #!/bin/bash | |
| # USAGE: CLUSTER=mycluster SERVICE=myservice ./docker-exec-ecs.sh | |
| set -euf -o pipefail | |
| TASK_ARN=$(aws ecs list-tasks --cluster=$CLUSTER --service=$SERVICE \ | |
| | jq -r .taskArns[0]) | |
| if [ "$TASK_ARN" = "null" ]; then | |
| echo "Could not find any running tasks for $SERVICE on cluster:$CLUSTER." | |
| exit 1 | |
| fi |
Quick tip. It is possible to download media with small python script.
Goto https://my.telegram.org and generate api id and api hash
Install Telethon library with pip3 install telethon
Run saveAllMedia.py (replace api_id, api_hash and username with your values).
If you need proxy install https://github.com/Anorov/PySocks pip install PySocks
This code downloads all media from the dialog with username user/chat/channel in current directory.
(especially while expanding)
Warning: The exact commands may not match for your particular linux OS / Synology(NAS) device. I had to customize the commands after exploring my particular system's setup.
If you're new to linux, or this is a new piece of hardware / a new synology device, jump down to the section called "Inspecting a setup"
| #!/bin/bash | |
| ####################################################################### | |
| # Install "nvim" on Ubuntu/Debian | |
| # | |
| # Author: lambdalisue | |
| # License: MIt | |
| # | |
| ####################################################################### | |
| if ! which porg >/dev/null 2>&1; then | |
| echo 'A program manager "porg" is required.' |
| -- Create a group | |
| CREATE ROLE readaccess; | |
| -- Grant access to existing tables | |
| GRANT USAGE ON SCHEMA public TO readaccess; | |
| GRANT SELECT ON ALL TABLES IN SCHEMA public TO readaccess; | |
| -- Grant access to future tables | |
| ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT SELECT ON TABLES TO readaccess; |
Services declared as oneshot are expected to take some action and exit immediatelly (thus, they are not really services,
no running processes remain). A common pattern for these type of service is to be defined by a setup and a teardown action.
Let's create a example foo service that when started creates a file, and when stopped it deletes it.
Create executable file /opt/foo/setup-foo.sh:
| # log the default values: | |
| echo "speed_limit_max: `cat /proc/sys/dev/raid/speed_limit_max`" #=> 200000 | |
| echo "speed_limit_min: `cat /proc/sys/dev/raid/speed_limit_min`" #=> 10000 | |
| echo "stripe_cache_size: `/sys/block/md2/md/stripe_cache_size`" #=> 256 | |
| # update to use more RAM (Stripe Cache Size) and higher lower bound (speed_limit_min) | |
| echo 100000 > /proc/sys/dev/raid/speed_limit_min | |
| # This will result in more memory usage. bumping to 32768 resulted in ~512MB RAM increase. | |
| echo 32768 > /sys/block/md2/md/stripe_cache_size |
All binary can be downloaded http://pan.baidu.com/s/1hqH2Pko
Sublime Text 3, build 3083 (dev) for Windows x64
| OFFSET | ORIGINAL | CRACKED |
|---|---|---|
| 0xe21b3 | 85 | 3B |
md5:c3522c719d24f85dd770c93b9bf9e56f