This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { defineConfig } from 'vite'; | |
import laravel from 'laravel-vite-plugin'; | |
export default defineConfig({ | |
server: { | |
hmr: { | |
host: 'localhost' | |
} | |
}, | |
plugins: [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
// Detect IE10 or below | |
if(document.all) { | |
$result = window.confirm('The browser you are using is not compatible with this site. Please update your browser. Press \'ok\' to view browser download options.'); | |
if ($result){ | |
window.location.href = "http://outdatedbrowser.com/en"; | |
} | |
} | |
</script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vagrant ssh | |
sudo su | |
rm /swapfile | |
fallocate -l 4G /swapfile | |
chmod 600 /swapfile | |
mkswap /swapfile | |
swapon -s | |
Source: https://www.digitalocean.com/community/tutorials/how-to-add-swap-on-ubuntu-14-04 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#install php and all desired extensions for that php version | |
brew install php55 php55-intl php55-mcrypt php55-apcu php55-xdebug | |
brew unlink php55 | |
#repeat as needed | |
brew install php56 php56-intl php56-mcrypt php56-apcu php56-xdebug | |
brew unlink php55 | |
#install brew-php-switcher | |
brew install brew-php-switcher | |
#use brew-php-switcher to switch between versions | |
brew-php-switcher 55 -s |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for user in $(cut -f1 -d: /etc/passwd); do echo $user; crontab -u $user -l; done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
zgrep -i search_term /var/log/syslog* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openssl genrsa 2048 > my-key.pem | |
openssl req -sha256 -new -key my-key.pem -out my-key-csr.pem |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo chown -R YOUR_USER_NAME:staff /Volumes/YOUR_EXT_VOLUME_NAME/Users/YOUR_USER_NAME/.vagrant.d/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name | |
Adjuntas | |
Aguada | |
Aguadilla | |
Aguas Buenas | |
Aibonito | |
Anasco | |
Arecibo | |
Arroyo | |
Barceloneta |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<IfModule mod_rewrite.c> | |
RewriteEngine on | |
#uncomment next line if silex app root is in a mamp subdirectory | |
#RewriteBase /your_mamp_htdocs_silex_app_root | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteRule ^ web/index.php [L] | |
</IfModule> | |
define your silex routes as follows: | |
$app->get('/your_mamp_htdocs_silex_app_root/', function() { |