Skip to content

Instantly share code, notes, and snippets.

View benms's full-sized avatar
:octocat:
Githubing...

Dmitry Ben benms

:octocat:
Githubing...
View GitHub Profile
@benms
benms / README.md
Created December 26, 2023 14:59 — forked from antfroger/README.md
Using xdebug with Windows 10, WSL2, Docker and VS Code

Configuring xdebug to work with Windows 10 (WSL2), Docker and VS Code

Configuring your dev environment to be able to use xdebug when you're working on Windows 10 (with WSL2) and Docker with VS Code can be (a bit) tricky.
This is a quick reminder of how I've done that.

Configuring the environment

  1. Install and configure xdebug in Docker

Install xdebug according to the Docker image you're using

curl wttr.in
sudo sync; echo 3 | sudo tee /proc/sys/vm/drop_caches; sudo swapoff -a
@benms
benms / snap_cleaner.sh
Last active October 22, 2024 14:27
Clean old packages snap
sudo sh -c 'apt update; apt upgrade; apt dist-upgrade; apt autoremove; apt purge $(dpkg -l | awk '\''$1=="rc"{print $2}'\''); apt install $(dpkg -l | awk '\''$1=="ii"{print $2}'\''); apt clean; snap refresh; LANG=C snap list --all | awk '\''$6=="disabled"{print $1, $3}'\'' | while read snapname revision; do snap remove "$snapname" --revision="$revision"; done'
@benms
benms / git.md
Created August 9, 2022 08:56
Git markdown from Kottans UA

[![MIT Licensed][icon-mit]][license] [![Awesome][icon-awesome]][awesome]        [![Telegram][icon-chat]][chat]

Git та GitHub

Ознайомтеся з Git і GitHub.

  1. Прослухайте тижні 1 і 2 курсу Introduction to Git and GitHub
@benms
benms / gist:51f887e1a342be6138a8bceb2d219ebb
Last active July 7, 2023 11:33
Upgrade docker-compose to version 2.6.0 from the bash
doc="$(which docker-compose)";vers="$(curl -s https://api.github.com/repos/docker/compose/releases/latest | jq --raw-output '.tag_name')";machine=$(uname -s| awk '{print tolower($0)}') && sudo curl -L "https://github.com/docker/compose/releases/download/${vers}/docker-compose-${machine}-$(uname -m)" -o "$doc" && sudo chmod +x "$doc"
@benms
benms / docker-compose.yml
Created May 27, 2022 20:01 — forked from wellic/docker-compose.yml
httpx proxy to *.docker
services:
# https://github.com/codekitchen/dinghy-http-proxy
http-proxy:
image: codekitchen/dinghy-http-proxy
container_name: http-proxy
privileged: true
environment:
- CONTAINER_NAME=http-proxy
ports:
@benms
benms / README.md
Created May 10, 2022 12:25 — forked from crypticmind/README.md
Setup lambda + API Gateway using localstack
@benms
benms / ffmpeg.md
Created May 7, 2021 07:27 — forked from steven2358/ffmpeg.md
FFmpeg cheat sheet
@benms
benms / tmux_cheatsheet.markdown
Created December 19, 2016 21:53 — forked from henrik/tmux_cheatsheet.markdown
tmux cheatsheet

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name: