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
| #!/usr/bin/env bash | |
| # MIT © Sindre Sorhus - sindresorhus.com | |
| # git hook to run a command after `git pull` if a specified file was changed | |
| # Run `chmod +x post-merge` to make it executable then put it into `.git/hooks/`. | |
| changed_files="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)" | |
| check_run() { | |
| echo "$changed_files" | grep --quiet "$1" && eval "$2" |
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
| //if no id was passed use the current users id | |
| $id || $id = $this->session->userdata('user_id'); |
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
| Angular CLI version | Angular version | Node.js version | TypeScript version | |
|---|---|---|---|---|
| - | 2.x | 6.0.x or later minor version | 2.0.x | |
| 1.0.6 | 4.x | 6.9.x or later minor version | 2.2.x | |
| 1.1.3 | 4.x | 6.9.x or later minor version | 2.3.x | |
| 1.2.7 | 4.x | 6.9.x or later minor version | 2.3.x | |
| 1.3.2 | 4.2.x or later minor version | 6.9.x or later minor version | 2.4.x | |
| 1.4.10 | 4.2.x or later minor version | 6.9.x/8.9.x or later minor version | 2.4.x | |
| (1.5.6) | 5.0.x | 6.9.x/8.9.x or later minor version | 2.4.x | |
| 1.5.6 | 5.1.x | 6.9.x/8.9.x or later minor version | 2.5.x | |
| 1.6.7 | 5.2.x or later minor version | 6.9.x/8.9.x or later minor version | 2.5.x |
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 | |
| RewriteCond %{HTTP_HOST} !^$ | |
| # BEGIN force www before URL | |
| RewriteCond %{HTTP_HOST} !^www\. [NC] | |
| RewriteCond %{HTTPS}s ^on(s)| | |
| RewriteRule ^ http%1://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L] | |
| # END for www on 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
| <IfModule mod_rewrite.c> | |
| RewriteEngine On | |
| RewriteBase / | |
| #Removes access to the system folder by users. | |
| #Additionally this will allow you to create a System.php controller, | |
| #previously this would not have been possible. | |
| #'system' can be replaced if you have renamed your system folder. | |
| RewriteCond %{REQUEST_URI} ^system.* | |
| RewriteRule ^(.*)$ /index.php?/$1 [L] |
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 | |
| /* | |
| * PHP: Recursively Backup Files & Folders to ZIP-File | |
| * MIT-License - Copyright (c) 2012-2017 Marvin Menzerath | |
| */ | |
| // Make sure the script can handle large folders/files | |
| ini_set('max_execution_time', 600); | |
| ini_set('memory_limit','1024M'); |
NewerOlder