This file contains 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
#!/bin/bash | |
# when running `php artisan native:install`, when prompted to start the development server select "no" | |
# copy this file within the root of your project/application and run it `bash nativephp-linux-patch.sh` | |
# after running this script run `php artisan native:serve` | |
sed -i 's/app.dock.setIcon(state_1.default.icon);/\/\/app.dock.setIcon(state_1.default.icon);/g' vendor/nativephp/electron/resources/js/node_modules/nativephp-electron/dist/index.js | |
cp -L /usr/bin/php vendor/nativephp/php-bin/bin/mac/x86/php |
This file contains 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
#!/bin/bash | |
# version 2 thanks to @dhx-mike-palandra | |
echo "Creating /etc/NetworkManager/conf.d/99-forticlient.conf..." | |
sudo cat > /etc/NetworkManager/conf.d/99-forticlient.conf << 'EOF' | |
[keyfile] | |
unmanaged-devices=interface-name:~vpn*,type:tun | |
EOF | |
if [ $? -eq 0 ] |