Skip to content

Instantly share code, notes, and snippets.

Avatar

Emil Stahl emilstahl

View GitHub Profile
View gov_domains.txt
aabenraa.dk
aalborg.dk
aarhus.dk
adst.dk
aeroekommune.dk
aes.dk
albertslund.dk
alleroed.dk
alleroedkommune.dk
alternativet.dk
View 0redirect.csv
We can make this file beautiful and searchable if this error is corrected: It looks like row 8 should actually have 6 columns, instead of 3. in line 7.
Status Code,URL,IP,Page Type,Redirect Type,Redirect URL
301,http://netfaster-service.com/nets/maildirect,157.245.125.72,server_redirect,permanent,http://netfaster-service.com/nets/maildirect/
200,http://netfaster-service.com/nets/maildirect/,157.245.125.72,client_redirect,meta,http://netfaster-service.com/nets/maildir/
200,http://netfaster-service.com/nets/maildir/,157.245.125.72,client_redirect,javascript,http://app-nets-dk.net//Annuller-transaktionen/maildirect
301,http://app-nets-dk.net//Annuller-transaktionen/maildirect,157.245.114.174,server_redirect,permanent,http://app-nets-dk.net/Annuller-transaktionen/maildirect/
200,http://app-nets-dk.net/Annuller-transaktionen/maildirect/,157.245.114.174,client_redirect,meta,http://app-nets-dk.net/Annuller-transaktionen/maildir/
200,http://app-nets-dk.net/Annuller-transaktionen/maildir/,157.245.114.174,client_redirect,javascript,http://app-nets-dk.net//Annuller-transaktionen/?acs=100000012032
200,http://app-nets-dk.net//Annuller-transaktionen/?acs=100000012032,157.
View config.gateway.json
{
"system":{
"static-host-mapping":{
"host-name":{
"usw.local":{
"alias":[
"usw"
],
"inet":[
"10.0.0.2"
@emilstahl
emilstahl / route.sh
Created Oct 7, 2017
macOS VPN add rouute
View route.sh
sudo /sbin/route add -net 10.0.0.1/24 -interface ppp0
@emilstahl
emilstahl / functions.php
Created Sep 19, 2017
Remove plugin asssets on all other pages than needed
View functions.php
<?php
// Remove plugin asssets on all other pages than needed
add_action( 'wp_print_scripts', 'my_deregister_javascript', 100 );
function my_deregister_javascript(){
if(!is_page(408)){
wp_deregister_script('contact-form-7');
}
}
add_action( 'wp_print_styles', 'my_deregister_styles', 100 );
View stofa-trace-cust
⋊> ~ traceroute aar.srv1.dk 18:41:02
traceroute to aar.srv1.dk (86.52.35.74), 64 hops max, 52 byte packets
1 connect.onboard.info (10.0.0.1) 126.270 ms 1.498 ms 1.751 ms
2 * * 10.253.7.246 (10.253.7.246) 2326.494 ms
3 10.66.40.142 (10.66.40.142) 52.280 ms
94.144.63.189 (94.144.63.189) 44.588 ms
94.144.63.190 (94.144.63.190) 47.018 ms
4 10.66.44.2 (10.66.44.2) 45.944 ms
cybercity-2.ti.telenor.net (148.122.9.26) 54.705 ms
10.66.44.2 (10.66.44.2) 59.166 ms
View stofa-trace-wnb
⋊> ~ traceroute wnb.srv1.dk 15:49:37
traceroute to wnb.srv1.dk (185.156.96.65), 64 hops max, 52 byte packets
1 connect.onboard.info (10.0.0.1) 88.426 ms 3.115 ms 1.837 ms
2 10.253.7.246 (10.253.7.246) 28.797 ms 61.526 ms *
3 94.144.63.190 (94.144.63.190) 81.676 ms
10.66.40.142 (10.66.40.142) 66.641 ms 39.748 ms
4 212.73.252.38 (212.73.252.38) 85.160 ms 33.567 ms
10.66.44.2 (10.66.44.2) 31.183 ms
5 ip-20-16-72-178.dialup.ice.net (178.72.16.20) 52.781 ms
ae59.bar1.copenhagen2.level3.net (212.73.252.37) 31.377 ms 29.248 ms
View dsb-domains.txt
1415.dk
70131415.dk
auto-tog.dk
byenspuls.dk
børnebillet.dk
danmarkspuls.dk
design-vision-lab.dk
designvisionlab.dk
dsb-1.dk
dsb-apps.dk
View .htaccess
AddDefaultCharset UTF-8
<FilesMatch "\.(htm|html|php)$">
BrowserMatch MSIE ie
Header set X-UA-Compatible "IE=Edge,chrome=1" env=ie
</FilesMatch>
# BEGIN Security
Header set Access-Control-Allow-Origin "*"
Header always set X-Frame-Options "SAMEORIGIN"
@emilstahl
emilstahl / monit.sh
Created Aug 29, 2016
Monitor traceroute
View monit.sh
[ $(mtr -rwc 1 vpn-byen.dk | grep -oh Level3) == "Level3" ] || curl -X POST https://maker.ifttt.com/trigger/level3/with/key/xxx