Install FFmpeg with homebrew. You'll need to install it with a couple flags for webm and the AAC audio codec.
brew install ffmpeg --with-libvpx --with-libvorbis --with-fdk-aac --with-opus
LD_PRELOAD='/usr/$LIB/libstdc++.so.6' steam |
sudo add-apt-repository ppa:numix/ppa | |
sudo add-apt-repository ppa:papirus/papirus | |
sudo apt update && sudo apt install papirus-icon-theme numix-gtk-theme numix-icon-theme-circle unity-tweak-tool | |
sudo mkdir /etc/lightdm/lightdm.conf.d | |
sudo sh -c 'printf "[SeatDefaults]\nallow-guest=false\n" > /etc/lightdm/lightdm.conf.d/50-no-guest.conf' | |
sudo apt-get install git php7.0-cgi php7.0-cli php7.0-mcrypt php7.0-mbstring php7.0-xml php7.0-zip php7.0-json |
Array.prototype.random = function() { | |
return this[Math.floor(Math.random() * this.length)]; | |
}; | |
var properties = [ | |
'car', | |
'house', | |
'phone', | |
'money' | |
]; |
#!/bin/bash | |
function error_exit { | |
echo "$1" >&2 ## Send message to stderr. Exclude >&2 if you don't want it that way. | |
exit "${2:-1}" ## Return a code specified by $2 or 1 by default. | |
} | |
if [ $# -eq 0 ]; then | |
error_exit "No input filepath given" | |
fi |
<?php | |
namespace App\Libs; | |
use DateTime; | |
class Formatter | |
{ | |
public static function float(float $float, int $decimals = 2): string | |
{ |
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |
<title>Tailwind Admin Dashboard</title> | |
<link href="https://unpkg.com/tailwindcss@^1.0/dist/tailwind.min.css" rel="stylesheet"> | |
</head> |
<?php | |
namespace App\Http\Middleware; | |
use Closure; | |
use Illuminate\Http\RedirectResponse; | |
use Illuminate\Http\Request; | |
class Localized | |
{ |
<?php | |
class Car extends Model | |
{ | |
public function users() | |
{ | |
return $this->belongsToMany(User::class, 'car_user_role') | |
->using(CarUserRole::class) | |
->withPivot('role_id', 'user_id', 'car_id'); | |
} |
function waitForElement(selector) { | |
return new Promise(function(resolve, reject) { | |
var runs = 1; | |
var interval = setInterval(function() { | |
if (runs >= 30) { | |
clearInterval(interval); | |
reject(new Error('max runs exceeded')); | |
} | |
var el = document.querySelector(selector); |