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.
- Install and configure xdebug in Docker
| # build "clang -framework Foundation ipinfo.m -o ipinfo" remove this line after pasting | |
| #import <Foundation/Foundation.h> | |
| static NSDictionary* fetchIPInfo(void) { | |
| NSURL *url = [NSURL URLWithString:@"https://ipinfo.io/json"]; | |
| NSData *data = [NSData dataWithContentsOfURL:url]; | |
| if (!data) { | |
| NSLog(@"Failed to fetch data"); | |
| return nil; | |
| } |
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.
| curl wttr.in |
| sudo sync; echo 3 | sudo tee /proc/sys/vm/drop_caches; sudo swapoff -a |
| 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' |
[![MIT Licensed][icon-mit]][license] [![Awesome][icon-awesome]][awesome] [![Telegram][icon-chat]][chat]
Ознайомтеся з Git і GitHub.
| 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" |
| 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: |
Example on how to run locally an AWS Lambda via API Gateway using localstack.
Based on...
A list of useful commands for the ffmpeg command line tool.
Download FFmpeg: https://www.ffmpeg.org/download.html
Full documentation: https://www.ffmpeg.org/ffmpeg.html