Skip to content

Instantly share code, notes, and snippets.

View antonioanerao's full-sized avatar

Antonio Anerão antonioanerao

View GitHub Profile
@SydoxX
SydoxX / forti-fix.sh
Last active February 19, 2024 12:51
Fixes Forticlient 7.0.7
#!/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 ]
@patoui
patoui / nativephp-linux-patch.sh
Created July 21, 2023 13:32
Script to fix issues when running NativePHP on Linux
#!/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