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
| RedirectMatch 301 ^.*$ http://www.example.com/ |
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
| --- | |
| url: yoursubdomain.basecamphq.com | |
| username: your_api_token | |
| password: X | |
| current_user: your_current_user_id (pull it out of your edit URL) | |
| basecamp_project: your_project_id (in URL) |
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
| // keep all your code in a closure | |
| (function($) | |
| { | |
| // provide default settings | |
| var defaultSettings = { | |
| position : 'mouse', | |
| color : 'black' | |
| }; | |
| // name your plugin - try to make it unique |
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
| # 5G BLACKLIST/FIREWALL (2013) | |
| # @ http://perishablepress.com/5g-blacklist-2013/ | |
| # 5G:[QUERY STRINGS] | |
| <IfModule mod_rewrite.c> | |
| RewriteEngine On | |
| RewriteBase / | |
| RewriteCond %{QUERY_STRING} (\"|%22).*(<|>|%3) [NC,OR] | |
| RewriteCond %{QUERY_STRING} (javascript:).*(\;) [NC,OR] | |
| RewriteCond %{QUERY_STRING} (<|%3C).*script.*(>|%3) [NC,OR] | |
| RewriteCond %{QUERY_STRING} (\\|\.\./|`|=\'$|=%27$) [NC,OR] |
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
| Using the script* provided below you will be able to make automatic backup of your hosting account (domains and MySQL databases). This backup script includes SSL support. This is not necessary if you run the script on the server for which you are generating the backup; but the SSL support could be important if you are running the script somewhere else to connect to your cPanel hosting account. | |
| <?php | |
| // PHP script to allow periodic cPanel backups automatically, optionally to a remote FTP server. | |
| // This script contains passwords. It is important to keep access to this file secure (we would ask you to place it in your home directory, not public_html) | |
| // You need create 'backups' folder in your home directory ( or any other folder that you would like to store your backups in ). |
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
| var gr = new GlideRecord('u_focus_group'); | |
| var strQuery = 'u_expiration>=javascript:gs.beginningOfToday()^u_active=true'; | |
| gr.addEncodedQuery(strQuery); | |
| gr.query(); | |
| while (gr.next()) { | |
| // Reset user profile and password | |
| var gruser = new GlideRecord('sys_user'); | |
| gruser.get(gr.u_user); |
OlderNewer