Skip to content

Instantly share code, notes, and snippets.

View Koopzington's full-sized avatar
🐢

Koopz Koopzington

🐢
View GitHub Profile
# SpamAssassin - Querying the rspamd uribl
###########################################################################
# Requires the Mail::SpamAssassin::Plugin::URIDNSBL plugin be loaded.
ifplugin Mail::SpamAssassin::Plugin::URIDNSBL
urirhssub URIBL_RSPAMD uribl.rspamd.com. A 127.0.0.2
body URIBL_RSPAMD eval:check_uridnsbl('URIBL_RSPAMD')
describe URIBL_RSPAMD Contains an URL listed in the rspamd URI blocklist
<?php declare(strict_types = 1);
namespace MyCodingStandard\Sniffs\Formatting;
use PHP_CodeSniffer\Sniffs\Sniff;
use PHP_CodeSniffer\Files\File;
class StringClassReferenceSniff implements Sniff
{
public function register()
1. Installing Informix Client SDK for Linux x86_64
1.1 Download Informix Client SDK 3.70 for Linux x86_64 from IBM website, https://www-01.ibm.com/marketing/iwm/tnd/search.jsp?rs=ifxdl
1.2 Extract the file, `cd /opt/informix; tar -xvf clientsdk.3.70.FC8DE.LINUX.tar`
1.3 Start installation, `./installclientsdk`, install all
2. Installing PDO Informix
// ==UserScript==
// @name Github - Show all files
// @namespace https://github.com/Koopzington
// @version 0.1
// @description Shows all files by default
// @author koopzington@gmail.com
// @match https://github.com/*
// @downloadURL https://gist.github.com/Koopzington/8c374786511a37ebfac47cfd2db958c6/raw/github-show-all-files.user.js
// @grant none
// ==/UserScript==
@Koopzington
Koopzington / PhpStorm-things
Created July 27, 2018 12:14
PhpStorm-things
Replace 3-line comments with one-liner:
/**
* @var Adapter $adapter
*/
/** @var Adapter $adapter */
Search: \/\*\*\n.*(\@.*).*\n.*\*\/
Replace: \/\*\* $1 \*\/
@Koopzington
Koopzington / app.php
Created July 26, 2018 09:45 — forked from miraris/app.php
👌👀👌👀👌👀👌👀👌👀 good shit go౦ԁ sHit👌 thats ✔ some good👌👌shit right👌👌there👌👌👌 right✔there ✔✔if i do ƽaү so my self 💯 i say so 💯 thats what im talking about right there right there (chorus: ʳᶦᵍʰᵗ ᵗʰᵉʳᵉ) mMMMMᎷМ💯 👌👌 👌НO0ОଠOOOOOОଠଠOoooᵒᵒᵒᵒᵒᵒᵒᵒᵒ👌 👌👌 👌 💯 👌 👀 👀 👀 👌👌Good shit
<?php
require 'vendor/autoload.php';
require 'proxygrabber.php';
const XML_FILE_NAME = 'data/anime-titles.xml';
const ARCHIVE_NAME = 'data/anime-titles.gz';
/**
* Decompresses a gunzip arhive
<?php
namespace Foo\Validator;
use Zend\Validator\ValidatorInterface;
final class LicensePlateValidator implements ValidatorInterface
{
const FORMATS = [
// Germany (Total Length: 8 characters excluding spaces, No leading zeros, can end in E or H)
#!/usr/bin/env php
<?php
/**
* DISCLAIMER: Even though I tried my best to prevent anything bad from happening,
* I can't guarantee that your code won't break after using this script on it.
*
* What does this script do?
* It replaces all occurences of $FooBar and $foo_bar with properly camelCased $fooBar.
* Replacements also include references to class properties like $this->foo_bar and $this->FooBar
*
@Koopzington
Koopzington / da-hotkeys.user.js
Last active September 21, 2018 12:30
deviantArt Hotkeys for Notifications
// ==UserScript==
// @name dA Hotkeys
// @namespace https://koopzington.github.com/
// @version 0.4
// @description DeviantArt also has Hotkeys now!
// @author Koopzington@gmail.com
// @match https://*.deviantart.com/*
// @downloadURL https://gist.github.com/Koopzington/e5a9d0d52630355e7a07b314eac19f7f/raw/da-hotkeys.user.js
// @grant none
// ==/UserScript==
// ==UserScript==
// @name GIVE ALL THE LLAMAS - Group Memberlist
// @namespace http://github.com/koopzington/
// @version 1.2.3
// @description Script to let your browser automatically click you One-Click-Llama-Buttons on memberlists of groups
// @author Koopzington
// @match https://*.deviantart.com/modals/memberlist*
// @match https://www.deviantart.com/*/modals/memberlist*
// @downloadURL https://gist.githubusercontent.com/Koopzington/a13d421ff3bf65f49b3348b5dc0d7962/raw/give-all-the-llamas.user.js
// @grant none