Output the PATH env variable:
echo getenv('PATH');
die();
These don’t work with a brew services
started httpd:
name: Psalm | |
on: | |
push: | |
paths: | |
- '**.php' | |
- 'psalm.xml' | |
jobs: | |
psalm: |
# If you, like me, have all of your various source-code-like projects in ~/src/ | |
# this is how to give yourself per-project shell history. | |
# | |
# I wish I'd done this years ago. | |
# | |
# First, in your .bashrc file, you redefine the cd, pushd and popd builtins to be "do the builtin bit, | |
# then do one other thing (set_src_history.sh, below) like so: | |
cd () { |
#!/bin/bash | |
# Script for converting MXF video files to different to other file formats. | |
for i in *.MXF; do | |
if [ -e "$i" ]; then | |
file=`basename "$i" .MXF` | |
# MP4 file with default settings + deinterlacing | |
ffmpeg -i "$i" -c:v libx264 -vf yadif "$file.mp4" |
<?php | |
/** | |
* PHP var_export() with short array syntax (square brackets) indented 2 spaces. | |
* | |
* NOTE: The only issue is when a string value has `=>\n[`, it will get converted to `=> [` | |
* @link https://www.php.net/manual/en/function.var-export.php | |
* @param mixed $expression | |
* @param bool $return | |
* @return string | |
*/ |
#!/bin/bash | |
# Creator: Phil Cook | |
# Modified: Andy Miller | |
# Modified: Eduardo Aguad | |
brew_prefix=$(brew --prefix | sed 's#/#\\\/#g') | |
brew_array=("5.5","5.6","7.0","7.1","7.2", "7.3") | |
php_array=("[email protected]" "[email protected]" "[email protected]" "[email protected]" "[email protected]" "[email protected]") | |
valet_support_php_version_array=("[email protected]" "[email protected]" "[email protected]" "[email protected]" "[email protected]" "[email protected]") | |
php_installed_array=() |
// Tracking cursor position in real-time without JavaScript | |
// Demo: https://twitter.com/davywtf/status/1124146339259002881 | |
package main | |
import ( | |
"fmt" | |
"net/http" | |
"strings" | |
) |
(function (context, trackingId, options) { | |
const history = context.history; | |
const doc = document; | |
const nav = navigator || {}; | |
const storage = localStorage; | |
const encode = encodeURIComponent; | |
const pushState = history.pushState; | |
const typeException = 'exception'; | |
const generateId = () => Math.random().toString(36); | |
const getId = () => { |
# - title: | |
# subtitle: | |
# author: | |
# img: https://images-na.ssl-images-amazon.com/images/P/#.01._SCLZZZZZZZ_.jpg | |
# url: | |
# rating: | |
# notes: | |
- year: 2018 | |
books: | |
- title: Showa 1953-1989 |
#!/bin/bash | |
# Creator: Phil Cook | |
# Modified: Andy Miller | |
# | |
# >>> IMPORTANT: Moved to: https://github.com/rhukster/sphp.sh | |
# >>> Kept here for legacy purposes | |
# | |
osx_major_version=$(sw_vers -productVersion | cut -d. -f1) | |
osx_minor_version=$(sw_vers -productVersion | cut -d. -f2) | |
osx_patch_version=$(sw_vers -productVersion | cut -d. -f3) |