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
#!/bin/bash | |
set -e | |
CONTAINERID=$(sudo docker run -d -p 80 drpal/$project_name:$BUILD_NUMBER) | |
CONTAINER_HOST_PORT=$(sudo docker port $CONTAINERID 80) | |
cat > $BUILD_NUMBER-$project_name/$project_name.localhost << EOL | |
upstream $project_name.localhost { |
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
Listen 80 | |
# Use name-based virtual hosting. | |
NameVirtualHost *:80 | |
UseCanonicalName Off | |
LogFormat "%V %h %l %u %t \"%r\" %s %b \"%{Referer}i\" \"%{User-Agent}i\"" dynamic_vhosts | |
CustomLog /var/log/apache2/access_log dynamic_vhosts | |
<VirtualHost *: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
// Small handheld collpased navigation | |
'use strict'; | |
;(function ($) {} | |
$(document).ready(function () { | |
var pullNav = $('#pull-nav'), | |
menu = $('.secondary-links'), | |
pullSideMenu = $('#pull-side-one'), | |
menuSidebar = $('#sidebar-left'), | |
pullSideResources = $('#pull-side-two'), | |
menuSidebarTwo = $('#sidebar-left2'), |
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
#!/bin/sh | |
ZIPCODES=(36101 99801 85001 72201 94203 80201 06101 19901 32301 30301 96801 83701 62701 46201 50301 66601 40601 70801 04330 21401 02108 48901 55101 39201 65101 59601 68501 89701 03301 08601 87501 12201 27601 58501 43201 73101 97301 17101 02901 29201 57501 37201 73301 84101 05601 23218 98501 25301 53701 82001) | |
echo "id,lat,lng" >> out.csv | |
for i in ${ZIPCODES[@]}; do | |
curl "https://www.mapquestapi.com/search/v2/radius?key=Gmjtd%7Clu6t2luan5%252C72%253Do5-larsq&origin=${i}&units=m&maxMatches=4000&ambiguities=ignore&radius=3000&hostedData=mqap.33454_DunkinDonuts" | jq -r '.searchResults[] | [.fields.mqap_id, .fields.mqap_geography.latLng.lat, .fields.mqap_geography.latLng.lng] | @csv' >> out.csv | |
done | |
cat out.csv | sort -r | uniq >> sorted.csv | |
exit 0 |
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
'use strict'; | |
/** | |
* @file | |
* Comments JS for EW.com: | |
* - Attachs comments object to ew_com global. | |
*/ | |
/* globals window, jQuery, ew_com, DISQUSWIDGETS, DISQUS */ | |
// Only if jQuery is defined | |
if(typeof jQuery !== 'undefined') { |
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
Listen 80 | |
# Use name-based virtual hosting. | |
UseCanonicalName Off | |
LogFormat "%V %h %l %u %t \"%r\" %s %b \"%{Referer}i\" \"%{User-Agent}i\"" dynamic_vhosts | |
CustomLog /var/log/apache2/access_log dynamic_vhosts | |
<VirtualHost *:80> | |
ServerName localhost |
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
Listen 443 | |
AddType application/x-x509-ca-cert .crt | |
AddType application/x-pkcs7-crl .crl | |
SSLPassPhraseDialog builtin | |
SSLSessionCache "shmcb:/private/var/run/ssl_scache(512000)" | |
SSLSessionCacheTimeout 300 |
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
if (!reference_domain.empty()) { | |
DCHECK(reference_domain.starts_with(".")); | |
// Do not allow wildcards for public/ICANN registry controlled domains - | |
// that is, prevent *.com or *.co.uk as valid presented names, but do not | |
// prevent *.appspot.com (a private registry controlled domain). | |
// In addition, unknown top-level domains (such as 'intranet' domains or | |
// new TLDs/gTLDs not yet added to the registry controlled domain dataset) | |
// are also implicitly prevented. | |
// Because |reference_domain| must contain at least one name component that |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
ADB female socket from the front: | |
,--_--. | |
/ o4 3o \ 1: Data | |
| o2 1o | 2: Soft power (Power up) | |
- === - 3: VCC | |
`-___-' 4: GND |
OlderNewer