-
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 | |
{ |
import axios from 'axios'; | |
// You can use any cookie library or whatever | |
// library to access your client storage. | |
import cookie from 'cookie-machine'; | |
axios.interceptors.request.use(function(config) { | |
const token = cookie.get(__TOKEN_KEY__); | |
if ( token != null ) { | |
config.headers.Authorization = `Bearer ${token}`; |
So, you might be asking yourself, what is GistLog?
GistLog is a blogging "platform" for people who want to quickly write and publish content, in Markdown, and don't want to bother with yet another platform and yet another login and yet another group hoarding their content. With GistLog, you use your pre-existing GitHub login, you store the data in your own GitHub account, and you can publish with a single click.
https://gistlog.co/your-github-username/gist-id
$ sudo apt-get install ruby1.9.1-dev zlib1g-dev nodejs
$ sudo gem install jekyll
$ bundle install
References:
############################################################################### | |
# Helpful Docker commands and code snippets | |
############################################################################### | |
### CONTAINERS ### | |
docker stop $(docker ps -a -q) #stop ALL containers | |
docker rm -f $(docker ps -a -q) # remove ALL containers | |
docker rm -f $(sudo docker ps --before="container_id_here" -q) # can also filter | |
# exec into container |
new Date().format("yyyy-MM-dd'T'HH:mm:ss'Z'", TimeZone.getTimeZone("UTC")) |
#!/bin/bash | |
# Install dependencies | |
apt-get install libsqlite3-dev ruby1.9.1-dev | |
# Install the gem | |
gem install mailcatcher | |
# Make it start on boot | |
echo "@reboot $(which mailcatcher) --ip=0.0.0.0" >> /etc/crontab | |
update-rc.d cron defaults |
When hosting our web applications, we often have one public IP
address (i.e., an IP address visible to the outside world)
using which we want to host multiple web apps. For example, one
may wants to host three different web apps respectively for
example1.com
, example2.com
, and example1.com/images
on
the same machine using a single IP address.
How can we do that? Well, the good news is Internet browsers