I use the openvpn command line to connect to a certain VPN site, and I get annoyed at having to find the password everytime
So, in the .ovpn file, there is a setting:
So, I create a file (lets call it new-file.txt) in the same folder as the config, and it only contains 2 lines, first line username, second password
Change the auth-user-pass line to be
And now it connects without prompting me for password. Super.
Obviously this is a slight security issue, but this is on a pretty secure VM on a secure machine. So its quite safe. Just think about it if you are implementing the same workaround.
If you are trying to ignore a file and git is mucking you about, it may be because the file you are trying to ignore is already in the repository, and therefore it sees it as a change, and will probably delete the file.
Instead, run this command line function:
git update-index --assume-unchanged
git update-index --assume-unchanged application/config/database.php
Run this for all the files you need to ignore after the initial checkout.
So you’ve made changes to your Apache config, but there are hundreds of uses currently online. To reload the config changes without restarting the service or server, you can run the following command to reload the config:
sudo /etc/init.d/apache2 reload
It should refresh most of the settings. Helpful to know.
On Mountain Lion, I found that the my.cnf file is missing. This is because Mac uses the default MySQL settings and therefore doesn’t require a config file.
If you want to change the default settings, you’ll need to create a my.cnf in /etc/:
You’ll need to sudo into Terminal, and copy one of the default configs from the MySQL folder to the /etc/ folder:
sudo cp /usr/local/mysql/support.files/my-huge.cnf /etc/my.cnf
Then just use Nano or whatever to update the file, then restart MySQL and you should be good to go with your new settings.