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 | |
# Alot of these configs have been taken from the various places | |
# on the web, most from here | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# Set the colours you can use | |
black='\033[0;30m' | |
white='\033[0;37m' | |
red='\033[0;31m' |
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 configuration is a working copy which I have tested on Apache 2.2.x and 2.4.x | |
I highly recommend you use this version of mod_fastcgi as it works with Apache 2.4.x, fastcgi.com version does not! | |
https://github.com/ByteInternet/libapache-mod-fastcgi | |
The fastcgi.com version is 2.4.6, the version I am recommending registers as 2.4.7 | |
To patch mod_fastcgi for use with Apache 2.4.x look at the debian/patches folder. It's not specific to Debian OS so don't let that fool you. I personally use Archlinux. | |
Of course to compile mod_fastcgi: |
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
require 'fileutils' | |
start_time = Time.now | |
SOURCE_DB = { | |
:name => 'db_name', | |
:user => 'db_user', | |
:password => 'db_pass', | |
:host => '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
Custom `minprice` = | |
`max(min(DBHistorical, DBGlobalMarketAvg, DBGlobalHistorical, DBRegionMarketAvg, DBRegionHistorical), VendorSell)` | |
Commonly used Shopping > Price | |
*OLD* | |
check(minprice - 100000g, 90% minprice, check(minprice - 50000g, 80% minprice, check(minprice - 10000g, 60% minprice, check(minprice - 5000g, 50% minprice, check(minprice - 1000g, 30% minprice, check(minprice - 500g, 20% minprice)))))) | |
*UPDATED* | |
[https://www.reddit.com/r/woweconomy/comments/3ax9av/anyone_else_have_a_tsm_sniper_rule_theyre_proud/cterek0/] |
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 | |
brew install [email protected] | |
cd /usr/local/bin/ | |
ln -s lua5.3 lua |
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
function validateEmail(email) { | |
var re = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/; | |
return re.test(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
//sticky | |
$(function() { | |
// Hide Header on on scroll down | |
var didScroll = false; | |
var lastScrollTop = 0; | |
var delta = 5; | |
var navbarHeight = $('.c-header').outerHeight() + 30; | |
if ($(window).scrollTop() == 0) { | |
$('.c-header').addClass('js-at-top'); |
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
createUuid: function() { | |
// Copy & paste form http://stackoverflow.com/questions/105034/create-guid-uuid-in-javascript/2117523#2117523 | |
// This is a cryptograhically not secure implementation, but is good enough for the given use case | |
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx' | |
.replace(/[xy]/g, function(c) { | |
var r = Math.random() * 16|0, v = c == 'x' ? r : (r&0x3|0x8) | |
return v.toString(16) | |
}) | |
}, |
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
.fx *, .fx::after, .fx::before { | |
box-sizing: border-box; | |
} | |
.fx .dot { | |
align-items: center; | |
background-color: rgba(43, 178, 76, 0.38); | |
border: 1px solid rgba(43, 178, 76, 0.54); | |
border-radius: 1rem; | |
box-shadow: 0 1px 10px 0 rgba(0, 0, 0, 0.15); |
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
function main() { | |
var targetCPA = 20; | |
var productGroupSelector = AdWordsApp | |
.productGroups() | |
.withCondition("Impressions > 100") | |
.forDateRange("LAST_MONTH") | |
.orderBy("Clicks DESC"); | |
var productGroupIterator = productGroupSelector.get(); |
OlderNewer