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
| <IfModule mod_rewrite.c> | |
| RewriteEngine On | |
| RewriteBase / | |
| RewriteRule ^index\.html$ - [L] | |
| RewriteCond %{REQUEST_FILENAME} !-f | |
| RewriteCond %{REQUEST_FILENAME} !-d | |
| RewriteRule . /index.html [L] | |
| </IfModule> |
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 lastTimeBackPress=0; | |
| var timePeriodToExit=2000; | |
| function onBackKeyDown(e){ | |
| e.preventDefault(); | |
| e.stopPropagation(); | |
| if(new Date().getTime() - lastTimeBackPress < timePeriodToExit){ | |
| navigator.app.exitApp(); | |
| }else{ | |
| window.plugins.toast.showWithOptions( |
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
| # Installation --- | |
| # 1. In Bitbucket, add FTP_USERNAME, FTP_PASSWORD and FTP_HOST as environment variables. | |
| # 2. Commit this file (bitbucket-pipelines.yml) to your repo (in the repo root dir) | |
| # 3. From Bitbucket Cloud > Commits > Commit Number > Run Pipeline > Custom:Init (this will | |
| # push everything and initialize GitFTP) | |
| # | |
| # Usage --- | |
| # - On each commit to master branch, it'll push all files to the $FTP_HOST | |
| # - You also have the option to 'init' (see 'Installation' above) - pushes everything and initialises | |
| # - Finally you can also 'deploy-all' (from Bitbucket Cloud > Commits > Commit Number > Run Pipeline > Custom:deploy-all) |
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
| gnome-desktop-item-edit ~/Desktop/ --create-new #create new desktop shortcut |
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
| #!/bin/sh | |
| APACHE2_STATUS="$(systemctl is-active apache2.service)" | |
| MYSQL_STATUS="$(systemctl is-active mysql.service)" | |
| NGINX_STATUS="$(systemctl is-active nginx.service)" | |
| DOVECOT_STATUS="$(systemctl is-active dovecot.service)" | |
| START_SCRIPT_DEBUG="true" | |
| FLAG_STATUS="active" | |
| SendEmail(){ |
OlderNewer