Skip to content

Instantly share code, notes, and snippets.

View m8rge's full-sized avatar
👨‍💻
Code is for developers first

Andrey m8rge

👨‍💻
Code is for developers first
View GitHub Profile
@m8rge
m8rge / fish-build-install.sh
Last active February 23, 2024 20:35 — forked from Brandonshire/fish-build-install.sh
Install Fish Shell 3+ on Raspberry Pi using nix-shell
#!/usr/bin/env nix-shell
#! nix-shell -i bash
#! nix-shell -p cmake gettext ncurses5 pcre2
# This script uses [nix-shell package manager](https://nixos.org/download)
# to install fish clearly without any useless packages aftewards
set -e
FISH_VERSION="3.7.0"
@m8rge
m8rge / HashBuilder.php
Last active August 29, 2015 14:21 — forked from mncaudill/similar.php
Image similarity algorithm
<?php
# Algorithm found here: http://www.hackerfactor.com/blog/index.php?/archives/432-Looks-Like-It.html
class HashBuilder
{
private $buf;
function __construct()
{
$this->buf = imagecreatetruecolor(8, 8);
}