Skip to content

Instantly share code, notes, and snippets.

View amadeobrands's full-sized avatar
🦄
Moving Forward

Amadeo Brands amadeobrands

🦄
Moving Forward
View GitHub Profile
<files wp-config.php>
order allow,deny
deny from all
</files>
order deny,allow
allow from 192.168.5.1
deny from all
<Files wp-login.php>
order deny,allow
Deny from all
# allow access from my IP address
allow from 192.168.5.1
</Files>
order allow,deny
deny from 456.123.8.9
allow from all
Options All -Indexes
add_action(‘template_redirect’, ‘bwp_template_redirect’);
function bwp_template_redirect()
{
if (is_author())
{
wp_redirect( home_url() ); exit;
}
}
<script>
(function() {
var xhrSend = window.XMLHttpRequest.prototype.send;
window.XMLHttpRequest.prototype.send = function() {
var xhr = this;
var intervalId = window.setInterval(function() {
if(xhr.readyState != 4) {
return;
}
dataLayer.push({
{
gtm: {
start: 1480870076652,
uniqueEventId: 1480870077339,
historyChangeSource: 'replaceState',
oldUrlFragment: '',
newUrlFragment: '',
oldHistoryState: {
id: '1480870090888-60',
pageInfo: {
@amadeobrands
amadeobrands / Raamcontracten Query
Last active December 20, 2016 15:40
Raamcontracten Query
SELECT
BPO.ID,
orkrg.ordernr[OrderNumber],
FORMAT(orkrg.orddat,'MM/dd/yyyy')[Contractstartdate],
FORMAT(orkrg.afldat,'MM/dd/yyyy')[Contractenddate],
FORMAT(BPO.contractstartdate,'MM/dd/yyyy')[startdate],
FORMAT(BPO.contractenddate,'MM/dd/yyyy') [Enddate],
STR(cicmpy.debcode)[DebtorNumber],
BPO.sysguid[BlanketOrderLine],
BPO.artcode[ItemCode],
SELECT staffl.ID,
staffl.prijslijst[PriceListProperty],
'ItemAssortment'[ListType],
(CASE WHEN staffl.AccountID IS NULL THEN NULL ELSE 1 END)[IsPriceAgreement],
STR(cicmpy.debcode)[AccountCode],
CAST(SUBSTRING(staffl.artcode,21,10) AS INT)[Assortment],
aantal1[Quantity01],
staffl.bedr1[Discount01],
FORMAT(staffl.validfrom,'MM-dd-yyyy')[ValidFrom],
FORMAT(staffl.validto,'MM-dd-yyyy')[ValidTo]