Apache is running on port 80 and interfering with Valet.
- Stop Apache:
sudo /usr/sbin/apachectl stop - Restart Valet:
valet restart
| #!/bin/bash | |
| homestead up | |
| homestead ssh | |
| apt-get update | |
| #Additional Packages | |
| apt-get install -y zsh | |
| public function getTff(){ | |
| $ch = curl_init(); | |
| $hc = "YahooSeeker-Testing/v3.9 (compatible; Mozilla 4.0; MSIE 5.5; Yahoo! Search - Web Search)"; | |
| curl_setopt($ch, CURLOPT_REFERER, 'http://www.google.com'); | |
| curl_setopt($ch, CURLOPT_URL, 'http://www.tff.org/default.aspx?pageID=198'); | |
| curl_setopt($ch, CURLOPT_USERAGENT, $hc); | |
| curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); | |
| $content = iconv("ISO-8859-9", "UTF-8", curl_exec($ch)); | |
| curl_close($ch); |
| <?php | |
| // Register these inside a service provider: | |
| Blade::directive('route', function ($expression) { | |
| return "<?php echo route({$expression}) ?>"; | |
| }); | |
| Blade::directive('routeIs', function ($expression) { | |
| return "<?php if (request()->routeIs({$expression})) : ?>"; |
| <?php | |
| /** | |
| * Created by IntelliJ IDEA. | |
| * User: bill | |
| * Date: 2018/11/06 | |
| * Time: 13:24 | |
| */ | |
| use InvalidArgumentException; |
| #!/usr/bin/ruby | |
| require "selenium-webdriver" | |
| require 'pp' | |
| # install : | |
| # sudo apt-get install ruby ruby-dev chromium-chromedriver firefoxdriver | |
| # sudo gem install selenium-webdriver | |
| # sudo ln -s /usr/lib/chromium-browser/chromedriver /usr/local/bin/ |
| /* To Title Case © 2018 David Gouch | https://github.com/gouch/to-title-case */ | |
| // eslint-disable-next-line no-extend-native | |
| String.prototype.toTitleCase = function () { | |
| 'use strict' | |
| var smallWords = /^(a|an|and|as|at|but|by|en|for|if|in|nor|of|on|or|per|the|to|v.?|vs.?|via)$/i | |
| var alphanumericPattern = /([A-Za-z0-9\u00C0-\u00FF])/ | |
| var wordSeparators = /([ :–—-])/ | |
| return this.split(wordSeparators) |
| <?php | |
| namespace Valet; | |
| use function Valet\info; | |
| use function Valet\warning; | |
| // Put this file in your ~/config/.valet/Extensions directory! | |
| /** |
| // 1. Open the browser developper console on the network tab | |
| // 2. Start the video | |
| // 3. In the dev tab, locate the load of the "master.json" file, copy its full URL | |
| // 4. Run: node vimeo-downloader.js "<URL>" | |
| // (done automatically now) 5. Combine the m4v and m4a files with mkvmerge | |
| const fs = require('fs'); | |
| const url = require('url'); | |
| const https = require('https'); | |
| const { exec } = require('child_process'); |