Category Archives: Administration

Telegram proxy (mtproto)

Using https://github.com/telemt/telemt. You would need a docker installed on your VPS. We want to start a proxy on :3443. mkdir telemt cd telemt vi ./docker-compose.yml docker-compose.yml services: telemt: image: whn0thacked/telemt-docker:latest container_name: telemt restart: unless-stopped environment: — RUST_LOG=info volumes: — ./telemt.toml:/etc/telemt.toml:ro ports: — «3443:3443/tcp» — «9191:9091» security_opt: — no-new-privileges:true cap_drop: — ALL cap_add: — NET_BIND_SERVICE read_only: …

Read more

Cheapest VPS hostings (could be suitable for VPN)

https://lowendbox.com/blog/1-vps-1-usd-vps-per-month/

Docker and Kubernetes basics for developers

Docker Docker containers are much more lightweight compared to classic VMs as they leverage host OS instead of starting their own OS. Containers are using 2 features of Linux-based OS: Namespaces and Cgroups (Control Groups). Namespace Lets you allocate resources in an isolated environment (like a sandbox). On a container start, docker daemon generates a …

Read more

How to install Outline VPN on a random VPS server

In Ountline Manager, when you add a new server, select an option called «Set up Outline everywhere».

How to reinstall MacOS on M1 MacBook wiping previous admin

I’ve run into an issue when I gave my older MacBook with M1 chip to my wife. Even after reinstalling MacOS with a proper user for her and restoring from Time Machine, her admin account was not really the admin of that laptop. She was unable to create new users (MacOs failed to set a …

Read more

DataDog: use events in dashboards

Using events as datasource is pretty straightforward, and described here — https://docs.datadoghq.com/events/. To use it as a graph overlay (for instance, to show app deployments), you can edit your graph, Event Overlays, and add something like below: tags:tool:morty,dd_env:$env [something like order-history-*]

Fixing docker does not want to update images

If you run docker pull, and you see an error like failed to register layer: Error processing tar file(exit status 2): fatal error: runtime: out of memory, there could be 2 reasons. Obvious one — not enough disk space for docker. You can fix it with docker system prune -af docker volume ls -qf dangling=true …

Read more

How to add and increase swap on CentOS

Adding a swap file without reboot If you are having a dedicated server somewhere with not that much memory, you could decide to add a swap without rebooting your server. To do so, you need to follow the routine: sudo dd if=/dev/zero of=/swapfile count=1024 bs=1MiB sudo mkswap /swapfile sudo chmod 0600 /swapfile sudo swapon /swapfile …

Read more

How to install multiple versions of go on mac m1

For instance, I want to try a new beta, go1.18beta2 (I check if it’s available on the download page). And I already have a regular go1.17, that I want to use as a default one. To do so, I need to do this: go install golang.org/dl/go1.18beta2@latest go1.18beta2 download Then I can check if it’s okay …

Read more

Create SQS queues on localstack container start

Put this file to your filesystem as ←anyname.sh→: #!/usr/bin/env bash set -euo pipefail # enable debug # set -x echo «configuring sqs» echo «===================» LOCALSTACK_HOST=localhost AWS_REGION=eu-central-1 # https://docs.aws.amazon.com/cli/latest/reference/sqs/create-queue.html create_queue() { local QUEUE_NAME_TO_CREATE=$1 awslocal —endpoint-url=http://${LOCALSTACK_HOST}:4566 sqs create-queue —queue-name ${QUEUE_NAME_TO_CREATE} —region ${AWS_REGION} —attributes VisibilityTimeout=30 } create_queue «queue2» create_queue «queue1» For instance, ./localstack_bootstrap/sqs_bootstrap.sh. Don’t forget to run chmod …

Read more