git clone git@github.com: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
// 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 | |
} |
<?php | |
use PhpCsFixer\Config; | |
use PhpCsFixer\Finder; | |
$rules = [ | |
'phpdoc_indent' => true, | |
'binary_operator_spaces' => [ | |
'operators' => ['=>' => null] | |
], |
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 |
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)) { |
<?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})) : ?>"; |
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 |
/* 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; |
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-) |
import React from 'react'; | |
import { CookieConsentProvider } from './CookieConsent' | |
import Page from './Page' | |
function App() { | |
return ( | |
<CookieConsentProvider> | |
<div className="App"> | |
<Page /> | |
</div> |