Skip to content

Instantly share code, notes, and snippets.

@santi-d
santi-d / README.md
Created January 4, 2022 23:49 — forked from thaJeztah/README.md
Docker Compose as a Docker CLI plugin

Run Docker Compose as a Docker CLI plugin

Just a quick fun experiment to try to make docker-compose work as a Docker CLI plugin

To use it (assuming you have docker compose installed):

  1. download a and install nightly build of the docker cli (linux macOS)

Keybase proof

I hereby claim:

  • I am santi-d on github.
  • I am santi_d (https://keybase.io/santi_d) on keybase.
  • I have a public key ASDF8DiruLAAgfn_3Z1iAKf5awbZzxZwSxz9uXTWoF4cgwo

To claim this, I am signing this object:

@santi-d
santi-d / swiftlint.sh
Created May 18, 2021 16:49 — forked from george-lim/swiftlint.sh
A handy Xcode run script that applies SwiftLint only to new Swift codebase changes
#!/bin/bash
# Parameters
source="$(pwd)/$1" # Track folder source where diffs are checked
index=$2 # Track diff remote
project_root=${0%/*} # Track project root folder
swiftlint_path='Pods/SwiftLint/swiftlint' # Track SwiftLint path
# Parameter check
if [[ $# < 1 ]]; then
@santi-d
santi-d / shell_try_catch.sh
Created March 2, 2021 22:31 — forked from YakDriver/shell_try_catch.sh
Bash Basics: A Robust try/catch/finally for shell scripts
#!/bin/bash
# This script uses traps to create try/catch/finally functionality in shell scripts.
#
# OUTPUT:
#
# Hello! We're reporting live from script
# ./try_catch2.sh: line 23: badcommand: command not found
# ./try_catch2.sh: line 23: exiting with status 127
# It's the end of the line
/usr/local/opt/postgresql@12/bin/pg_ctl -D /usr/local/var/postgres@12.latest -l logfile start
lsof -i :<port> -S
@santi-d
santi-d / nodejs-tcp-example.js
Created December 8, 2017 22:58 — forked from renanyoy/nodejs-tcp-example.js
Node.js tcp client and server example
/*
In the node.js intro tutorial (http://nodejs.org/), they show a basic tcp
server, but for some reason omit a client connecting to it. I added an
example at the bottom.
Save the following server in example.js:
*/
var net = require('net');