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
| rm -rf ~/.vnc && mkdir ~/.vnc | |
| cat > ~/.vnc/xstartup << 'EOL' | |
| #!/bin/bash | |
| [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources | |
| export XKL_XMODMAP_DISABLE=1 | |
| export XDG_CURRENT_DESKTOP="XFCE" | |
| export DISPLAY=:1 | |
| export XAUTHORITY=$HOME/.Xauthority |
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
| <?php | |
| // place a database dump and this file in the root directory of the WordPress site | |
| // to be able to import the .sql file into the active datbase. | |
| // You trigger this script by visiting https://yourdomain.com/db-import.php?key=mysecret123 | |
| ## SET THESE VARIABLES ACCORDINGLY | |
| $allowed_key = 'mysecret123'; | |
| $sqlFile = __DIR__ . '/your_database_dump.sql'; |
OlderNewer