Skip to content

Instantly share code, notes, and snippets.

Matthew Barber Honno

Block or report user

Report or block Honno

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Honno
Honno / expert-system.lisp
Last active Aug 5, 2019
An inference engine for an expert system.
View expert-system.lisp
;; Forward & Backward Chaining
;;
;; Use (run *rules *goals) in CLISP to try it out.
;;
;; Written by Matthew Barber <quitesimplymatt@gmail.com> under MIT
;;
;; The MIT License (MIT)
;;
;; Copyright (c) 2019 Matthew Barber
;;
@Honno
Honno / find-crc32.py
Created Jul 26, 2019
Multiprocessing bruteforcing script to find a valid CRC32 checksum in a file which quotes said CRC32 value, i.e. a self-referential CRC32.
View find-crc32.py
#!/usr/bin/python3
import logging
import argparse
import sys
import binascii
import multiprocessing as mp
from time import sleep
SLEEP_TIME = 0.1
View health_lotto_quick_win_lag_pentest.js
const fetch = require("node-fetch");
const next_draw_api_url = "https://bornlucky-prod.gamevy.com/health-lottery/next-draw";
const draw_api_url = "https://bornlucky-prod.gamevy.com/health-lottery/draws/";
const bet_api_url = "https://bornlucky-prod.gamevy.com/health-lottery/bet";
const refer_base = "https://games.gamevy.com/d/";
const refer_queries = "/index.html?env=prod&region=LON&platform=geneity&mode=real&currency=GBP&lang=en-GB&operator=health-lottery&numbers=&lobbyUrl=&clientType=desktop&sid=";
const time_before_spam = 200;
View find-it.js
window.onload = function() {
document.getElementById('find').onclick = findRequest;
};
function findRequest() {
var from = document.getElementById('from').value;
var to = document.getElementById('to').value;
var ajax = new XMLHttpRequest();
ajax.onload = injectDirections;
View findDirectors.php
<?php
$year = $_REQUEST["year"];
$rating = $_REQUEST["rating"];
$pdo = require 'connectdb.php';
$query = "
SELECT DISTINCT d.id, CONCAT(d.last_name, ', ', d.first_name) AS name
FROM directors d
View palindrome.php
<?php
function isPalindrome($string) {
if (strlen($string) <= 1) {
return true;
} elseif (strtolower(substr($string, 0, 1)) == strtolower(substr($string, -1))) {
isPalindrome(substr($string, 1, -1));
} else {
return false;
}
}
View process.php
<?php
function para($msg) { echo "<p>$msg</p>"; }
function error($msg) {
$valid = false;
para($msg);
}
$name = trim($_REQUEST["name"]);
View license.txt
__________________________________________________________________________
// __ ____ __ \\
| ________________________ \ /\ / **>><<***>><<***>><<***>><<***>> |
| / \ \/MM\/ Official Association |
| | .adAMMMAbn. | /\WW/\ HUNTER'S LICENSE |
| | dMMMMMMMMMMA. | _/ _\/_ \_ <<***>><<***>><<***>><<***>><<** |
| | 'HMMMMMMMMMMMl. | |
| | db\MMM^" "^j | NAME(-S): Matthew Roy AGE: 20 |
| | MMY : | SURNAME: Barber GENDER: Male |
| | ,M|`,----. ,---. | NICKNAME: Honno OCCUPATION: Student |
@Honno
Honno / Dice.cs
Created Mar 17, 2018
Slot machine-like dice animation
View Dice.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class DiceManager: MonoBehaviour {
/* component reference */
private Image image;
private TravelLightsDisplay hud;
@Honno
Honno / flashygoodness_extract.py
Created Oct 18, 2017
Quick Python script to extract the "archive" music from the flashygoodness site—it isn't available for purchase or download anywhere!
View flashygoodness_extract.py
## Music in question https://www.flashygoodness.com/music/gallery/
import requests
import os
import xml.etree.ElementTree as ET
import urllib
import re
folder_name = r'flashygoodness'
You can’t perform that action at this time.