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 | |
| # This script runs every other night at 04:56 CET on a webserver I maintain | |
| # Resulting file is always at: https://jult.net/block.txt ( or https://jult.net/block.txt.gz ) | |
| # but DON'T open that URL in a browser.. | |
| # Best use the much smaller, stripped of BS; https://jult.net/bloc.txt | |
| # For use in Tixati IP filter: https://jult.net/bloc.txt.gz | |
| # And finally a txt file with just the bold IP-ranges: https://jult.net/bl.txt (or https://jult.net/bl.txt.gz ) | |
| # Download open block-lists, unpack, filter: |
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 | |
| DIRECTORY="$HOME/Library/Application Support/Google/Chrome/" | |
| cd "${DIRECTORY}" | |
| CUR_DIR=`pwd` | |
| echo "CURRENT DIRECTORY IS: ${CUR_DIR}" |
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
| select | |
| `Time Period`, | |
| round(avg(num), 1) `Average Number of Orders` | |
| from ( | |
| select | |
| date_format(date_sub(o.created_at, interval 8 hour), "%l:00 - %l:59 %p PST") `Time Period`, | |
| count(*) num, | |
| date_format(date_sub(o.created_at, interval 8 hour), "%H") sort | |
| from sales_flat_order o | |
| where o.created_at > '2016-01-01 00:00:00' |
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
| server { | |
| listen 8080; | |
| root /Users/user/Sites/magento.co.nz; | |
| server_name magento.dev "~magento\.(.*)\.xip\.io$"; | |
| fastcgi_buffer_size 128k; | |
| fastcgi_buffers 4 256k; | |
| fastcgi_busy_buffers_size 256k; | |
| proxy_connect_timeout 90; | |
| proxy_send_timeout 180; | |
| proxy_read_timeout 180; |
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
| #msgs_scroller_div::-webkit-scrollbar-track, #client_body::before, .client_container, | |
| #search_terms, #client_body, #footer, ts-message, .channel_header, ts-jumper ts-jumper-container, | |
| ts-jumper input[type="text"], | |
| .supports_custom_scrollbar:not(.slim_scrollbar) #col_channels:hover #channels_scroller::-webkit-scrollbar-track{ | |
| background: #333 !important; | |
| } | |
| #client_body::before { | |
| border-bottom: 1px solid #1a2129 !important; | |
| } |
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
| <? | |
| ///////////////////// | |
| // slack2html | |
| // by @levelsio | |
| ///////////////////// | |
| // | |
| ///////////////////// | |
| // WHAT DOES THIS DO? | |
| ///////////////////// | |
| // |
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
| SELECT | |
| # Change the interval based on UTC to show on specific timezone | |
| date_format(date_sub(o.created_at, INTERVAL 7 HOUR), "%l:%i %p") `Time in PST`, | |
| count(*) OPM | |
| FROM sales_flat_order o | |
| # Time from the DB - last 3 hours | |
| WHERE o.created_at > DATE_SUB(NOW(), INTERVAL 3 HOUR) | |
| AND o.created_at < NOW() | |
| AND o.store_id='1374' | |
| GROUP BY HOUR(o.created_at),MINUTE(o.created_at) |
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
| /** | |
| * @file | |
| * Example implementation of ACSF post-settings-php hook. | |
| * | |
| * @see https://docs.acquia.com/site-factory/tiers/paas/workflow/hooks | |
| */ | |
| // The path to this file should be docroot/factory-hooks/post-settings-php/memcache.php | |
| // Use ACSF internal settings site flag to apply memcache settings. |
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
| vcl 4.0; | |
| # !!Important!! Do not use this if your authenticated response can vary | |
| # between users or roles. | |
| # Note: This is only useful if the following things are true: | |
| # * Access to the jsonapi endpoints is restricted to authorized users only. | |
| # * jsonapi request results will be the same for all authorized users. No | |
| # customized or filtered results based on role or other access checks. |
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 | |
| # | |
| # Checks the configured commit range to determine which commits modify files | |
| # that were modified in an earlier commit. | |
| # | |
| # Example: | |
| # Commit 1: | |
| # foo.txt | |
| # bar.txt | |
| # Commit 2: |
OlderNewer