-
You need
ffmpeg
installed. If you have Homebrew installed on a Mac, you can do this by running:brew install ffmpeg
-
Put
process.sh
in directory containing.ogg
files. -
Ensure it's executable:
<?php | |
namespace App\Traits; | |
use Carbon\Carbon; | |
use DateTimeInterface; | |
use Jenssegers\Date\Date; | |
trait Dateable | |
{ |
Run:
brew install gnupg pinentry-mac
git config --global user.signingkey <key>
git config --global commit.gpgsign true
git config --global gpg.program gpg
Then add the following line to ~/.gnupg/gpg-agent.conf
:
pinentry-program /usr/local/bin/pinentry-mac
See the snippets "guide.md" and "redis.md" below.
If you're wanting to run Docker Swarm on your Raspberry Pi checkout these instructions:
sed -i '' 's/DEFINER=`[^`][^`]*`@`[^`][^`]*`//g' filename.sql |
# Prepare required directories for Newrelic installation | |
RUN mkdir -p /var/log/newrelic /var/run/newrelic && \ | |
touch /var/log/newrelic/php_agent.log /var/log/newrelic/newrelic-daemon.log && \ | |
chmod -R g+ws /tmp /var/log/newrelic/ /var/run/newrelic/ && \ | |
chown -R 1001:0 /tmp /var/log/newrelic/ /var/run/newrelic/ && \ | |
# Download and install Newrelic binary | |
export NEWRELIC_VERSION=$(curl -sS https://download.newrelic.com/php_agent/release/ | sed -n 's/.*>\(.*linux-musl\).tar.gz<.*/\1/p') && \ | |
cd /tmp && curl -sS "https://download.newrelic.com/php_agent/release/${NEWRELIC_VERSION}.tar.gz" | gzip -dc | tar xf - && \ | |
cd "${NEWRELIC_VERSION}" && \ |
docker ps -f status=exited | grep "\-cache-" | awk '{print $1}' | xargs docker rm |
# Added to the bottom of my file | |
PROXY_OAUTH_CLIENT_ID=2 | |
PROXY_OAUTH_CLIENT_SECRET=SECRET-GENERATED-KEY-HERE | |
PROXY_OAUTH_GRANT_TYPE=password |
#!/bin/sh | |
# based on https://gist.github.com/ipedrazas/9c622404fb41f2343a0db85b3821275d | |
# delete all evicted pods from all namespaces | |
kubectl get pods --all-namespaces | grep Evicted | awk '{print $2 " --namespace=" $1}' | xargs kubectl delete pod | |
# delete all containers in ImagePullBackOff state from all namespaces | |
kubectl get pods --all-namespaces | grep 'ImagePullBackOff' | awk '{print $2 " --namespace=" $1}' | xargs kubectl delete pod | |
# delete all containers in ImagePullBackOff or ErrImagePull or Evicted state from all namespaces |
class Form { | |
constructor (data) { | |
this._originalData = Object.assign({}, data) | |
for (let key in data) { | |
this[key] = data[key] | |
} | |
} |