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
<?php | |
namespace App\Http\Middleware; | |
use Illuminate\Http\Request; | |
use Inertia\Middleware; | |
use Tightenco\Ziggy\Ziggy; | |
class HandleInertiaRequests extends Middleware | |
{ |
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
javascript:(function(wrapper,root,url,domain){var tools={'serpindex/domain':'Rankings','live/domain':'Live Rankings','urls/domain':'TOP URLs','changes/domain':'Veränderungen','competitors/domain':'Wettbewerber'};for(k in tools){wrapper.innerHTML+='<a href="'+url+k+'/'+domain+'?utm_source=bookmarklet" target="_blank" style="text-transform:uppercase;font-family:sans-serif;text-decoration:none;background:#e17a0c;color:white;display:inline-block;padding:6px 12px;margin-bottom:0;font-size:14px;font-weight:normal;line-height:1.428571429;text-align:center;white-space:nowrap;vertical-align:middle;cursor:pointer;background-image:none;border:1px solid transparent;border-radius:4px;margin-right:5px;">'+tools[k]+'</a>'; | |
}wrapper.style='width:100%;padding:5px;z-index:2000;position:fixed;top:0;background-color:#EFEFEF;text-align:center;border-bottom:1px solid #e6e6e6;';root.parentNode.insertBefore(wrapper,root); | |
})(document.createElement('div'),document.getElementsByTagName('head')[0],'http://metrics.tools/metricstools/too |
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
<?php | |
namespace App\Http\Middleware; | |
use Closure; | |
class RewriteLinks | |
{ | |
/** | |
* Handle an incoming request. |
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
var https = require('https'); | |
var util = require('util'); | |
exports.handler = function(event, context) { | |
console.log(JSON.stringify(event, null, 2)); | |
console.log('From SNS:', event.Records[0].Sns.Message); | |
var postData = { | |
"channel": "#aws-sns", | |
"username": "AWS SNS via Lamda :: DevQa Cloud", |