git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
| opendb () { | |
| [ ! -f .env ] && { echo "No .env file found."; exit 1; } | |
| DB_CONNECTION=$(grep DB_CONNECTION .env | grep -v -e '^\s*#' | cut -d '=' -f 2-) | |
| DB_HOST=$(grep DB_HOST .env | grep -v -e '^\s*#' | cut -d '=' -f 2-) | |
| DB_PORT=$(grep DB_PORT .env | grep -v -e '^\s*#' | cut -d '=' -f 2-) | |
| DB_DATABASE=$(grep DB_DATABASE .env | grep -v -e '^\s*#' | cut -d '=' -f 2-) | |
| DB_USERNAME=$(grep DB_USERNAME .env | grep -v -e '^\s*#' | cut -d '=' -f 2-) | |
| DB_PASSWORD=$(grep DB_PASSWORD .env | grep -v -e '^\s*#' | cut -d '=' -f 2-) |
| /* Apply a default duration to all .transition classes */ | |
| [class*="transition"] { | |
| @apply duration-300; | |
| } | |
| /* Default transition class must come _before_ utilities, | |
| so it can be overridden by any .duration-x utilities */ | |
| @tailwind utilities; |
| Mute these words in your settings here: https://twitter.com/settings/muted_keywords | |
| ActivityTweet | |
| generic_activity_highlights | |
| generic_activity_momentsbreaking | |
| RankedOrganicTweet | |
| suggest_activity | |
| suggest_activity_feed | |
| suggest_activity_highlights | |
| suggest_activity_tweet |
| <?php | |
| // Register these inside a service provider: | |
| Blade::directive('route', function ($expression) { | |
| return "<?php echo route({$expression}) ?>"; | |
| }); | |
| Blade::directive('routeIs', function ($expression) { | |
| return "<?php if (request()->routeIs({$expression})) : ?>"; |
| protected function attemptLogin(Request $request) | |
| { | |
| $check = $this->guard()->attempt( | |
| $this->credentials($request), $request->has('remember') | |
| ); | |
| if ($check === false) | |
| { | |
| $user = User::where('username','=',$request->input('username'))->first(); | |
| if(isset($user)) { |
| Files: | |
| find /path/to/root -type f -exec chmod 644 {} \; | |
| Folders: | |
| find /path/to/root -type d -exec chmod 755 {} \; | |
| .htaccess (because of Ionos) | |
| modify RewriteRule ^ index.php | |
| to RewriteRule ^ /index.php |
| <?php | |
| use PhpCsFixer\Config; | |
| use PhpCsFixer\Finder; | |
| $rules = [ | |
| 'phpdoc_indent' => true, | |
| 'binary_operator_spaces' => [ | |
| 'operators' => ['=>' => null] | |
| ], |
| // Require local folder as Composer dependency | |
| // whereas _package_ is a unique package ID to keep composer from overwriting existing config | |
| // | |
| // from within the project folder, run the following: | |
| // composer-link /path/to/package package | |
| // Then run composer require as usual. | |
| composer-link() { | |
| composer config repositories."$2" '{"type": "path", "url": "'$1'"}' --file composer.json | |
| } |