Skip to content

Instantly share code, notes, and snippets.

set $block_user_agent 0;
if ($http_user_agent ~* ("WebBandit"|"2icommerce"|"Accoona"|"ActiveTouristBot"|"adressendeutschland"|"aipbot"|"Alexibot"|"Alligator"|"AllSubmitter"|"almaden"|"anarchie"|"Anonymous"|"Apexoo"|"Aqua_Products"|"asterias"|"ASSORT"|"ATHENS"|"AtHome"|"Atomz"|"attache"|"autoemailspider"|"autohttp"|"b2w"|"bew"|"BackDoorBot"|"Badass"|"Baiduspider"|"Baiduspider"+|"BecomeBot"|"berts"|"Bitacle"|"Biz360"|"Black.Hole"|"BlackWidow"|"bladder fusion"|"Blog Checker"|"BlogPeople"|"Blogshares Spiders"|"Bloodhound"|"BlowFish"|"Board Bot"|"Bookmark search tool"|"BotALot"|"BotRightHere"|"Bot mailto:craftbot@yahoo.com"|"Bropwers"|"Browsezilla"|"BuiltBotTough"|"Bullseye"|"BunnySlippers"|"Cegbfeieh"|"CFNetwork"|"CheeseBot"|"CherryPicker"|"Crescent"|"charlotte"/|"ChinaClaw"|"Convera"|"Copernic"|"CopyRightCheck"|"cosmos"|"Crescent"|"c-spider"|"curl"|"Custo"|"Cyberz"|"DataCha0s"|"Daum"|"Deweb"|"Digger"|"Digimarc"|"digout4uagent"|"DIIbot"|"DISCo"|"DittoSpyder"|"DnloadMage"|"Download"|"dragonfly"|"DreamPassport"|"D
@uniacid
uniacid / apt.sources.list
Last active August 29, 2015 14:03
apt sources
deb http://ftp.fr.debian.org/debian/ squeeze main contrib non-free
deb-src http://ftp.fr.debian.org/debian/ squeeze main contrib non-free
deb http://security.debian.org/ squeeze/updates main contrib non-free
deb-src http://security.debian.org/ squeeze/updates main contrib non-free
# squeeze-updates, previously known as 'volatile'
deb http://ftp.fr.debian.org/debian/ squeeze-updates main contrib non-free
deb-src http://ftp.fr.debian.org/debian/ squeeze-updates main contrib non-free
on *:TEXT:.random:#: {
sockclose sick
sockopen sick www.sickipedia.org 80
set %sick.chan $chan
}
alias sick {
sockopen sick www.sickipedia.org 80
set %sick.chan $chan
}
@uniacid
uniacid / custom-functions.php
Last active August 29, 2015 14:05
The Diamond Lining API Hook
<?php
session_start();
add_action('gform_after_submission_6', 'post_to_b79_api', 10, 2);
function post_to_b79_api($entry, $form) {
// Set phone
$phoneNumber = $entry['10'];
// Split names properly
$name_parts = explode(' ', $entry[8]);
$name_first = array_shift($name_parts);
@uniacid
uniacid / Package Control.sublime-settings
Created September 27, 2014 20:16
Sublime Text 3 Packages
{
"auto_upgrade_last_run": null,
"installed_packages":
[
"AdvancedNewFile",
"Alignment",
"BracketHighlighter",
"CakePHP (Native)",
"CodeFormatter",
"ColorPicker",
@uniacid
uniacid / DownloadClickReport.php
Last active August 29, 2015 14:07
click report
<?php
/**
* This example downloads a criteria report to a file.
*
* Copyright 2014, Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
// ==UserScript==
// @name haaretz
// @namespace http://www.haaretz.co.il
// @description redirects haaretz to webcace
// @include http://www.haaretz.co.il/*
// @include http://webcache.googleusercontent.com/*
// @version 1
// @grant none
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js
// ==/UserScript==
@uniacid
uniacid / sources.list
Created June 1, 2015 20:37
Debian 8 apt source (FR)
deb http://ftp.fr.debian.org/debian/ jessie main contrib non-free
deb-src http://ftp.fr.debian.org/debian/ jessie main contrib non-free
deb http://security.debian.org/ jessie/updates main contrib non-free
deb-src http://security.debian.org/ jessie/updates main contrib non-free
# jessie-updates, previously known as 'volatile'
deb http://ftp.fr.debian.org/debian/ jessie-updates main
deb-src http://ftp.fr.debian.org/debian/ jessie-updates main
@uniacid
uniacid / GoWithC.go
Last active September 2, 2015 11:41 — forked from 17twenty/GoWithC.go
Cross Compiling and Language Interop oh my!
package main
import (
"./binding"
"fmt"
)
func main() {
binding.PrintHello()
binding.Seed(1)
fmt.Println(binding.Random())
@uniacid
uniacid / python27_on_debian.sh
Created December 2, 2015 16:32 — forked from lukaslundgren/python27_on_debian.sh
How to install python 2.7 on debian
sudo apt-get install build-essential libsqlite3-dev zlib1g-dev libncurses5-dev libgdbm-dev libbz2-dev libreadline5-dev libssl-dev libdb-dev
wget http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz
tar -xzf Python-2.7.3.tgz
cd Python-2.7.3
./configure --prefix=/usr --enable-shared
make
sudo make install
cd ..