Skip to content

Instantly share code, notes, and snippets.

@evopix
evopix / KohanaForumHideRussian.user.js
Last active September 24, 2015 17:47
Removing jQuery dependency and updating to work with Scriptish.
// ==UserScript==
// @id forum.kohanaframework.org-d0515b72-1b32-4b30-a2e6-ab4f0f3fbb13@evopix
// @name KohanaForumHideRussian
// @version 2.0
// @namespace evopix
// @author Brandon Summers
// @description Hide Russian threads from Kohana forum.
// @include *forum.kohanaframework.*
// @run-at document-end
// ==/UserScript==
@aliendeveloper
aliendeveloper / SudokuSolver.class.php
Created March 27, 2011 08:35
A PHP Class to solve the sudoku.
<?php
/**
* @author Anush Prem <[email protected]>
* @package Solver
* @subpackage Sudoku
* @version 0.1
*/
/**
@zeelot
zeelot / view_model.php
Created April 6, 2011 18:15
Wrapper for ORM models to add view logic on top
<?php defined('SYSPATH') or die('No direct script access.');
class View_Model
{
public static function factory(Model $model)
{
// Get the associated View_ name (ex: View_Model_User)
$class = 'View_'.get_class($model);
if (class_exists($class))
@zombor
zombor / authenticated.php
Created May 9, 2011 13:42
Controller/Action ACL logic
<?php
/**
* Extension to Controller_Website that enforces authentication
*
* @package
* @author Jeremy Bush
* @copyright (c) 2011 Jeremy Bush
*/
class Controller_Website_Authenticated extends Controller_Website
{
@slacker
slacker / hotslogs-anti-adblock.user.js
Last active August 1, 2017 13:05
A Greasemonkey script for allowing AdBlock/uBlock on HotsLogs
// ==UserScript==
// @name Hotslogs Bypass
// @version 1.3
// @description Stops redirects
// @author https://github.com/slacker
// @match https://www.hotslogs.com/*
// @grant none
// @run-at document-start
// ==/UserScript==
@hpaul-osi
hpaul-osi / DisablingServicesOnServer2016wDE.ps1
Created June 11, 2017 01:41
Disable unnecessary services that on Windows Server 2016 Desktop Experience (based on MS Security Blog recommendations)
# Disable extraneous services on Server 2016 Desktop Experience
# https://blogs.technet.microsoft.com/secguide/2017/05/29/guidance-on-disabling-system-services-on-windows-server-2016-with-desktop-experience/
Configuration DisablingServicesOnServer2016wDE
{
param(
[String]$ComputerName = "localhost",
[ValidateSet('ShouldBeDisabledOnly','ShouldBeDisabledAndDefaultOnly','OKToDisable','OKToDisablePrinter','OKToDisableDC')]
[String]$Level = 'OKToDisable'
)