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 | |
| # | |
| # Add a Google Analytics tag to static website files | |
| # @see http://adambuchanan.me/post/26345221717/updating-google-analytics-code-on-many-static-pages | |
| # Tested on MacOS 10.8.X | |
| # | |
| # Usage: | |
| # Set the GA parameters below | |
| # Execute the script from the top-level of the static site | |
| # |
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 | |
| FBCODE_ID='xxxxxxxxxx' | |
| GACODE='xxxxxxxx' | |
| FBBLOCK=$(cat <<EOF | |
| <!-- Facebook Pixel Code --> | |
| <script> | |
| !function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod? | |
| n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n; |
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
| You must edit the file: | |
| /var/cpanel/userdata/USERNAME/DOMAIN.COM | |
| and change the line: | |
| documentroot: /home/USERNAME/public_html | |
| to | |
| documentroot: /home/USERNAME/public_html/DOMAIN.COM |
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
| grep cwd /var/log/exim_mainlog | grep -v /var/spool | awk -F"cwd=" '{print $2}' | awk '{print $1}' | sort | uniq -c | sort -n | |
| More info at http://www.inmotionhosting.com/support/email/exim/find-spam-script-location-with-exim |
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
| DB::enableQueryLog(); | |
| ... query ... | |
| ... query ... | |
| ... query ... | |
| ... query ... | |
| dd(DB::getQueryLog()); |
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 | |
| namespace App\Console\Commands; | |
| use DB; | |
| use Illuminate\Console\Command; | |
| class ModelFactoryHelper extends Command | |
| { | |
| /** |
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
| { | |
| "departures": { | |
| "from": [ | |
| { | |
| "code": "PNA", |
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 ($paginator->hasPages()) | |
| <ul class="pagination" role="navigation" aria-label="Pagination"> | |
| {{-- Previous Page Link --}} | |
| @if ($paginator->onFirstPage()) | |
| <li class="pagination-previous disabled"></li> | |
| @else | |
| <li class="pagination-previous"><a href="{{ $paginator->previousPageUrl() }}" aria-label="Previous page"></a></li> | |
| @endif | |
| {{-- Pagination Elements --}} |
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
| .select2 { | |
| border-color:1px solid #cacaca; | |
| box-shadow: inset 0 1px 2px rgba(10, 10, 10, 0.1); | |
| background-color:#fefefe; | |
| } | |
| .select2-dropdown, .select2-container--default .select2-selection--single , | |
| .select2-container--default .select2-selection--multiple, .select2-container--default .select2-selection--multiple .select2-selection__choice, | |
| .select2-container--classic .select2-selection--multiple , .select2-container--classic .select2-selection--multiple, | |
| .select2-container--classic .select2-selection--multiple .select2-selection__choice, .select2-dropdown, |
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
| <template> | |
| <select :value="value" :name="name" class="form-control" v-on:input="updatevalue($event.target.value)" ref="input"> | |
| <slot></slot> | |
| </select> | |
| </template> | |
| <script> | |
| export default { | |
| props:['value','name'], | |
| methods: { |