Skip to content

Instantly share code, notes, and snippets.

@little-apps
little-apps / lss-tables-fix.php
Created January 12, 2016 19:24
This is to correct the error with the table data types in Little Software Stats v0.2.1.
<?php
/*
* This is to correct the error with the table data types in Little Software Stats v0.2.1.
*
* To use, upload this file to the base directory of Little Software Stats and then execute it.
*
* !!! REMOVE THIS FILE IMMEDIATELY AFTER USE !!!
**/
extension_loaded( 'mysqli' ) or die( 'MySQLi extension must be loaded.' );
@little-apps
little-apps / NtfsBootSector.cs
Created October 10, 2015 03:32
This example loads the first 512 bytes of a NTFS partition using C#. You will need administrator privileges to use this program.
/*
This example loads the first 512 bytes of a NTFS partition using C#. You will need administrator privileges to use this program.
Author: Little Apps (https://www.little-apps.com)
License: GNU Lesser General Public License v3
*/
using System;
using System.ComponentModel;
using System.IO;
@little-apps
little-apps / CSF to CloudFlare
Created May 6, 2015 01:38
Transfers IP addresses from CSF to CloudFlare
<?php
// Must be run as root
// This will re-add IP addresses as Cloudflare API doesn't support getting existing blacklists IP addresses
define('CSF_DENY', '/etc/csf/csf.deny');
define('CF_TOKEN', '');
define('CF_EMAIL', '');
if (!file_exists(CSF_DENY))
@little-apps
little-apps / addipv6block.php
Created July 29, 2014 07:02
This script is designed so you can be able to assign many (many) IPv6 addresses to a CentOS 6 machine.
<?php
/*
* Description:
* This script is designed so you can be able to assign many (many) IPv6 addresses to a CentOS 6 machine.
*
* Created By: Little Apps (http://www.little-apps.com)
*
* Steps:
* 1. The first step is to figure out what the IPv6 block is and the gateway for it
@little-apps
little-apps / LPC Plugin Example.xml
Created March 28, 2013 06:11
Little Privacy Cleaner Plugin Example
<?xml version="1.0" encoding="UTF-8"?>
<!--
Little Privacy Cleaner
Copyright (C) 2008-2013 Little Apps (http://www.little-apps.org/)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.