Skip to content

Instantly share code, notes, and snippets.

@zuccs
zuccs / gist:1dae44c81ef8888e59f9fcc5b0de4d2c
Created March 21, 2018 23:35
Print User Agent to HTML Comment
<! -- User-agent: <?php echo $_SERVER[“HTTP_USER_AGENT”]; ?> -->
function SlackAPI(config) {
this.webhookUrl = config.webhookUrl;
// Send a message to slack. The config can
// be as simple as a string or an object
// for passing more complex messages.
this.sendMessage = function(config) {
if(typeof config == 'object') {
postToSlack(this.webhookUrl, config);
} else {

Keybase proof

I hereby claim:

  • I am zuccs on github.
  • I am zuccs (https://keybase.io/zuccs) on keybase.
  • I have a public key ASAs-znM14AydSni3UvynITxL80779lIOQvV1Ds03I3KbQo

To claim this, I am signing this object:

# Craft Files
craft/app/*
craft/storage/*
craft/config/db.php
craft/config/license.key
# App Files
public/uploads/*
# Block the main Analytics Spammers
# Crazy big list here: http://perishablepress.com/blacklist/ultimate-referrer-blacklist.txt
SetEnvIfNoCase Referer semalt.com spammer=yes
SetEnvIfNoCase Referer darodar.com spammer=yes
SetEnvIfNoCase Referer buttons-for-website.com spammer=yes
SetEnvIfNoCase Referer fbdownloader.com spammer=yes
SetEnvIfNoCase Referer descargar-musicas-gratis.com spammer=yes
SetEnvIfNoCase Referer baixar-musicas-gratis.com spammer=yes
SetEnvIfNoCase Referer savetubevideo.com spammer=yes
SetEnvIfNoCase Referer srecorder.com spammer=yes