Create an empty git repo or reinitialize an existing one
git init| var data = "do shash'owania"; | |
| var crypto = require('crypto'); | |
| crypto.createHash('md5').update(data).digest("hex"); |
Create an empty git repo or reinitialize an existing one
git initProblem: When linking to the raw version of a gist, the link changes with each revision.
Solution:
To return the first file from a gist: https://gist.github.com/[gist_user]/[gist_id]/raw/
To get a file from multi–file gist: https://gist.github.com/[gist_user]/[gist_id]/raw/[file_name]
| # Define the script used to check if haproxy is still working | |
| vrrp_script chk_haproxy { | |
| script "killall -0 haproxy" | |
| interval 2 | |
| weight 2 | |
| } | |
| # Define the script used to check if nginx is still working | |
| vrrp_script chk_nginx { | |
| script "killall -0 nginx" |
| ######################################################################### | |
| # This is an example VCL file for Varnish 4.0. # | |
| # From: https://gist.github.com/davidthingsaker/6b0997b641fdd370a395 # | |
| # LICENSE: If this could help you in any way, you are obliged to use it # | |
| # for free with no limitations. # | |
| ######################################################################### | |
| # Marker to tell the VCL compiler that this VCL has been adapted to the | |
| # new 4.0 format. |
| #!/usr/bin/env bash | |
| [[ $- == *i* ]] && echo "This Bash Shell is Interactive Shell" || echo "This Bash Shell is Not a Interactive Shell" | |
| shopt -q login_shell && echo "This Bash Shell is a Login Shell" || echo "This Bash Shell is Not a Login Shell" |
| sub vcl_hit { | |
| if (obj.ttl >= 0s) { | |
| # normal hit | |
| return (deliver); | |
| } | |
| # We have no fresh fish. Lets look at the stale ones. | |
| if (std.healthy(req.backend_hint)) { | |
| # Backend is healthy. Limit age to 10s. | |
| if (obj.ttl + 10s > 0s) { | |
| set req.http.grace = "normal(limited)"; |
(Based on info from Peter Downs' gitub but with modified behavior to open a new terminal window for each invocation instead of reusing an already open window.)
The following three ways to launch an iTerm2 window from Finder have been tested on iTerm2 version 3+ running on macOS Mojave+.
pdanford - April 2020
This procedure explains how to install MySQL using Homebrew on macOS Sierra 10.12
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"At this time of writing, Homebrew has MySQL version 5.7.15 as default formulae in its main repository :
| version: '2' | |
| services: | |
| consul1: | |
| image: "consul:latest" | |
| container_name: "consul1" | |
| hostname: "consul1" | |
| ports: | |
| - "8301:8301" | |
| - "8400:8400" | |
| - "8500:8500" |