Skip to content

Instantly share code, notes, and snippets.

Avatar

Emil Stahl emilstahl

View GitHub Profile
@emilstahl
emilstahl / wp-config.php
Created Aug 19, 2015
wp-config.php essentials
View wp-config.php
/* WordPress Cache */
define( 'WP_CACHE', true );
/* Compression */
define( 'COMPRESS_CSS', true );
define( 'COMPRESS_SCRIPTS', true );
define( 'CONCATENATE_SCRIPTS', true );
define( 'ENFORCE_GZIP', true );
/* Memory limit */
@emilstahl
emilstahl / backorder.sh
Created Aug 19, 2015
UnoEuro Backorder
View backorder.sh
#!/bin/bash
# copy the autologin cookie from your browser
# run /ue.sh list.txt
while IFS='' read -r line || [[ -n "$line" ]]; do
curl -o /dev/null --silent 'https://www.unoeuro.com/controlpanel/backorder.php' -H 'Cookie: language=1; autologin=XXXXXX;' --data 'domain='$line'&extension=dk'
done < "$1"
@emilstahl
emilstahl / config.fish
Last active Aug 29, 2015
Easy DMARC lookup
View config.fish
function dmarc
dig TXT +short _dmarc.$argv
end
@emilstahl
emilstahl / dmarc.txt
Last active Aug 29, 2015
DMARC check on FDIM toplist
View dmarc.txt
QUESTION IN TYPE ANSWER Virksomhed
_dmarc.dba.dk. IN TXT "v=DMARC1\; p=none\; rua=mailto:iq4jzkji@ag.dmarcian.com\; ruf=mailto:iq4jzkji@fr.dmarcian.com\;" eBay
_dmarc.jobindex.dk. IN TXT "v=DMARC1\; p=none\; rua=mailto:dmarc-reports@jobindex.dk" Jobinex
_dmarc.bilbasen.dk. IN TXT "v=DMARC1\; p=none\; rua=mailto:iq4jzkji@ag.dmarcian.com\; ruf=mailto:iq4jzkji@fr.dmarcian.com\;" eBay
_dmarc.newsbreak.dk. IN TXT "v=DMARC1\; p=none\; rua=mailto:dmarc@mailvision.dk\; ruf=mailto:forensic@mailvision.dk\; adkim=r\; aspf=r\; pct=100\; rf=afrf\; ri=86400\; sp=none" Uffe Dahl
_dmarc.amino.dk. IN TXT "v=DMARC1\; p=none\; rua=mailto:dmarc@amino.dk" AMINO ApS To ejere gŒr igen
_dmarc.min-mave.dk. IN TXT "v=DMARC1\; p=none\; rua=mailto:dmarc@min-mave.dk" MIN MAVE ApS sikkert samme IT
_dmarc.stepstone.dk. IN TXT "v=DMARC1\; p=none\; rua=mailto:dmarc-reports@stepstone.dk" Jobinex
_dmarc.it-jobbank.dk. IN TXT "v=DMARC1\; p=none\; rua=mailto:dmarc-reports@stepstone.dk" Jobinex
@emilstahl
emilstahl / functions.php
Last active Aug 29, 2015
WooCommece cost price custom field
View functions.php
// Cost price
add_action('woocommerce_product_options_pricing', 'cost_price');
function cost_price() {
woocommerce_wp_text_input(
array(
'id' => '_cost_price',
'class' => 'wc_input_price short',
'label' => __('Cost price', 'woocommerce').' ('.get_woocommerce_currency_symbol().')',
'type' => 'text',
)
View -
_______________________________________________________________
__ _______ _____
\ \ / / __ \ / ____|
\ \ /\ / /| |__) | (___ ___ __ _ _ __
\ \/ \/ / | ___/ \___ \ / __|/ _` | '_ \
\ /\ / | | ____) | (__| (_| | | | |
\/ \/ |_| |_____/ \___|\__,_|_| |_|
WordPress Security Scanner by the WPScan Team
Version 2.7
@emilstahl
emilstahl / available.txt
Created Apr 26, 2015
Available three letter .dk domains
View available.txt
aay.dk
aew.dk
afe.dk
afq.dk
afw.dk
afx.dk
afy.dk
afz.dk
agq.dk
agz.dk
View available.txt
aay.dk
aew.dk
afe.dk
afq.dk
afw.dk
afx.dk
afy.dk
afz.dk
agq.dk
agz.dk
View jonas.sh
# IP addresses
alias ip="dig +short myip.opendns.com @resolver1.opendns.com"
alias localip="ipconfig getifaddr en0"
alias ips="ifconfig -a | grep -o 'inet6\? \(\([0-9]\+\.[0-9]\+\.[0-9]\+\.[0-9]\+\)\|[a-fA-F0-9:]\+\)' | sed -e 's/inet6* //'"