Bash script i personally use to setup a new server initially.
Fire the following command:
wget -qO https://git.io/voICQ && sudo bash
| <?php | |
| /** | |
| * Laravel Version Check | |
| * | |
| * @return bool | |
| */ | |
| private function isLaravel4() | |
| { | |
| return version_compare(get_class($this->app) . '::VERSION', '5', '<'); |
| #!/bin/sh | |
| # PATH TO YOUR HOSTS FILE | |
| ETC_HOSTS=/etc/hosts | |
| # DEFAULT IP FOR HOSTNAME | |
| IP="127.0.0.1" | |
| # Hostname to add/remove. | |
| HOSTNAME=$1 |
| <?php | |
| @header('X-Robots-Tag: "none, noindex, nofollow, noarchive, nosnippet, noodp, notranslate, noimageindex"'); |
| #!/bin/sh | |
| # genssl.sh - Generates all required certificate files in one go. Written in | |
| # 2014 by Patrick "Argure" Godschalk <[email protected]>. | |
| # | |
| # To the extent possible under law, the author has dedicated all copyright and | |
| # related and neighbouring rights to this software to the public domain | |
| # worldwide. This software is distributed without any warranty. | |
| # | |
| # You may view the CC0 Public Domain Dedication at |
| #!/bin/sh | |
| # (The MIT License) | |
| # | |
| # Copyright (c) 2013 M.S. Babaei | |
| # | |
| # Permission is hereby granted, free of charge, to any person obtaining a copy | |
| # of this software and associated documentation files (the "Software"), to deal | |
| # in the Software without restriction, including without limitation the rights | |
| # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
| <?php | |
| /** | |
| * Ported from Laravel 4 for external usage. | |
| */ | |
| function is($pattern, $value) { | |
| if ($pattern == $value) return true; | |
| $pattern = preg_quote($pattern, '#'); |
Method 1: You can check for the existence of window.google_jobrunner after the page has finished loading. We are using setTimeout to take care of asynchronous Google AdSense that may not load immediately.
<script>
window.onload = function() {
setTimeout(function() {
if ( typeof(window.google_jobrunner) === "undefined" ) {
console.log("ad blocker installed");
} else {
| server { | |
| listen 80; | |
| listen 443 ssl; | |
| server_name www.domain.tld; | |
| return 301 $scheme://domain.tld$request_uri; | |
| } |
This is my script for handling unsolicited sales calls. I can tell by the caller id as they usually come in on our second (unpublished) phone number.
Thank you for calling Planet Argon. If you know your party’s extension, please say or enter it followed by the pound key.