In my case(my machine is ubuntu 16), I append /etc/resolvconf/resolv.conf.d/base file by adding below ns lines.
nameserver 8.8.8.8
nameserver 4.2.2.1
nameserver 2001:4860:4860::8844
nameserver 2001:4860:4860::8888
then run the update script,
In my case(my machine is ubuntu 16), I append /etc/resolvconf/resolv.conf.d/base file by adding below ns lines.
nameserver 8.8.8.8
nameserver 4.2.2.1
nameserver 2001:4860:4860::8844
nameserver 2001:4860:4860::8888
then run the update script,
| <?php | |
| class YoutubeUrlParser | |
| { | |
| const REGULAR_URL_FORMAT = '/^https?:\/\/(www\.)?youtube\.com\/watch/'; | |
| const EMBEDDED_URL_FORMAT = '/^https?:\/\/(www\.)?youtube\.com\/embed/'; | |
| const SHARE_URL_FORMAT = '/^https?:\/\/(www\.)?youtu\.be\//'; | |
| private $originalUrl; | |
| private $videoId; |
| 'use strict'; | |
| const crypto = require('crypto'); | |
| const AES_METHOD = 'aes-256-cbc'; | |
| const IV_LENGTH = 16; // For AES, this is always 16, checked with php | |
| const password = 'lbwyBzfgzUIvXZFShJuikaWvLJhIVq36'; // Must be 256 bytes (32 characters) | |
| function encrypt(text, password) { |
| <?php | |
| /** | |
| * This Scheduler will run once every minute unlike the Heroku scheduler which only runs every 10 mintues. | |
| * To use this scheduler with Laravel 5.4+ add this file to /app/Console/Commands/RunScheduler.php | |
| * Register this file in app/Console/Kernel.php | |
| * protected $commands = [ | |
| * ... |
| <?php | |
| define('WP_USE_THEMES', true); | |
| // Load the WordPress library. | |
| require_once( dirname(__FILE__) . '/wp-load.php' ); | |
| // Set up the WordPress query. | |
| wp(); | |
| $username = 'developer'; | |
| $password = 'developer123'; |
| <?php | |
| namespace App; | |
| use Vinkla\Hashids\HashidsManager; | |
| /** | |
| * Bind a model to a route based on the hash of | |
| * its id (or other specified key). | |
| * |
| <?php | |
| namespace App\Http\Middleware; | |
| use Closure; | |
| use Illuminate\Http\Response; | |
| /** | |
| * Validate Mailgun Webhooks | |
| * @see https://documentation.mailgun.com/user_manual.html#securing-webhooks |
| /* Produces a dump on the state of WordPress when a not found error occurs */ | |
| /* useful when debugging permalink issues, rewrite rule trouble, place inside functions.php */ | |
| ini_set( 'error_reporting', -1 ); | |
| ini_set( 'display_errors', 'On' ); | |
| echo '<pre>'; | |
| add_action( 'parse_request', 'debug_404_rewrite_dump' ); | |
| function debug_404_rewrite_dump( &$wp ) { |
| <?php | |
| /** | |
| * Config for PHP-CS-Fixer ver2 | |
| */ | |
| $rules = [ | |
| '@PSR2' => true, | |
| // addtional rules |
| alias weather='curl -s wttr.in | sed -n "1,7p"' |