Error:
$ git commit
error: There was a problem with the editor 'vi'.
Please supply the message using either -m or -F option.
Fix:
#!/bin/bash | |
set +o pipefail | |
if (( $# != 1 )); then | |
echo "usage: $0 <ref>" >&2 | |
exit 1 | |
fi | |
if ! command -v git >/dev/null 2>&1; then |
#!/bin/bash | |
required_env_vars=( | |
CONCOURSE_ENDPOINT | |
CONCOURSE_USERNAME | |
CONCOURSE_PASSWORD | |
) | |
for env_var in "${required_env_vars[@]}"; do | |
if [[ -z "$(printenv ${env_var})" ]]; then |
! Font face and size | |
XTerm*faceName: mononoki | |
XTerm*faceSize: 12 | |
! Window settings | |
XTerm.vt100.geometry: 112x40 | |
! General colours | |
XTerm*highlightReverse: false | |
XTerm*highlightColor: #C1DDFF |
$the_cow = <<EOC; | |
| | |
v | |
__ | |
/ \ | |
| | | |
@ @ | |
|| || | |
|| || | |
\___/ |
Error:
$ git commit
error: There was a problem with the editor 'vi'.
Please supply the message using either -m or -F option.
Fix:
server { | |
listen 80; | |
server_name test.dev; | |
location / { | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header Host $http_host; | |
proxy_pass http://127.0.0.1:8080; | |
} | |
} |
function proxy { | |
for env_var in http_proxy HTTP_PROXY https_proxy HTTPS_PROXY; do | |
export $env_var='' | |
done | |
export no_proxy="localhost,127.0.0.1" | |
} | |
proxy | |
function noproxy { | |
for env_var in http_proxy HTTP_PROXY https_proxy HTTPS_PROXY; do |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env bash | |
EMAIL="" | |
API_TOKEN="" | |
DOMAIN_ID="" | |
RECORD_ID="" | |
EXTERNAL_IP="`curl http://rqst.io/ip | jgrep -s "ip"`" | |
curl -H "Accept: application/json" \ | |
-H "Content-Type: application/json" \ |
function jp -d "Open default editor with date prepended filename and specified title for jekyll posts." | |
set title (date +"%Y-%m-%d") | |
switch (count $argv) | |
case 0 | |
echo "No post title was specified." | |
return 1 | |
case 1 | |
set lower_arg (echo $argv[1] | tr A-Z a-z) |