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 / gyazo.php
Created February 12, 2016 08:02 — forked from cowboy/gyazo.php
PHP upload for Gyazo
<?PHP
/*
* PHP upload for Gyazo - v1.2.1 - 3/13/2011
* http://benalman.com/news/2009/10/gyazo-on-your-own-server/
*
* Copyright (c) 2011 "Cowboy" Ben Alman
* Licensed under the MIT license
* http://benalman.com/about/license/
*/
@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:

@benms
benms / ffmpeg.md
Created May 7, 2021 07:27 — forked from steven2358/ffmpeg.md
FFmpeg cheat sheet
@benms
benms / README.md
Created May 10, 2022 12:25 — forked from crypticmind/README.md
Setup lambda + API Gateway using localstack
@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 / 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 / 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 / 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'
sudo sync; echo 3 | sudo tee /proc/sys/vm/drop_caches; sudo swapoff -a
curl wttr.in