This file contains 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 | |
$finder = PhpCsFixer\Finder::create() | |
->in([ | |
__DIR__.'/app', | |
__DIR__.'/tests', | |
]) | |
; | |
$rulesToDisable = [ |
This file contains 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
const mix = require('laravel-mix'); | |
const tailwindcss = require('tailwindcss'); | |
const rootPath = Mix.paths.root.bind(Mix.paths); | |
const tailwindPlugins = function(configFile, paths) { | |
const pluginList = [tailwindcss(configFile)]; | |
if (mix.inProduction()) { | |
pluginList.push(require('@fullhuman/postcss-purgecss')({ |
This file contains 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
(-) |
This file contains 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
Bundler could not find compatible versions for gem "actionmailer": | |
In Gemfile: | |
devise_invitable was resolved to 2.0.1, which depends on | |
actionmailer (>= 5.0) | |
rails (= 5.0.7.2) was resolved to 5.0.7.2, which depends on | |
actionmailer (= 5.0.7.2) | |
Bundler could not find compatible versions for gem "activemodel": | |
In Gemfile: |
$ ab -c 1 -n 100 http://localhost:3000/posts/1
This is ApacheBench, Version 2.3 <$Revision: 1826891 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking localhost (be patient).....done
This file contains 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/local/etc/nginx/servers/algolia.test | |
upstream myapp { | |
server 127.0.0.1:3000; | |
server 127.0.0.1:3001; | |
server 127.0.0.1:3002; | |
} | |
server { | |
listen 80; |
This file contains 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
class Contact < ApplicationRecord | |
include AlgoliaSearch | |
algoliasearch per_environment: true, if: :turn_off_main_index do | |
add_index "CONTACT_subset", if: :subset? do | |
attributes :name, :email, :company, :state | |
searchableAttributes ['name', 'company', 'unordered(email)'] |
This file contains 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
-- example from www.lasceneparisienne.com DB | |
DELETE n1 FROM calendar_events n1, | |
calendar_events n2 | |
WHERE n1.id < n2.id | |
AND n1.id_facebook = n2.id_facebook | |
AND n1.calendar_id = 2; |
This file contains 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 | |
declare(strict_types=1); | |
/** | |
* This file is part of Scout Extended. | |
* | |
* (c) Algolia Team <[email protected]> | |
* | |
* For the full copyright and license information, please view the LICENSE |