Skip to content

Instantly share code, notes, and snippets.

View aziascreations's full-sized avatar
💭
Why is this even a feature ?

Herwin Bozet aziascreations

💭
Why is this even a feature ?
View GitHub Profile
> Increment pointer
< Decrement pointer
+ Increment byte at pointer
- Decrement byte at pointer
. Output byte at pointer
, Input byte at pointer
[ Loop start
] Loop end
.s output byte as string
@aziascreations
aziascreations / BrainfuckIO.java
Last active January 18, 2017 21:15
A basic Brainfuck interpretor in java.
package com.azias.test.brainfuckio;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Paths;
public class BrainfuckIO {
//public static byte[] cells; //Values cells
public static int[] cells; //Values cells
@aziascreations
aziascreations / nodejs-installer-rpi.sh
Created February 15, 2017 21:16
RaspberryPi Node.js installer
#!/bin/bash
# UNFINISHED AND UNTESTED
# DO NOT USE
#!/bin/bash
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root"
exit 1
fi
@aziascreations
aziascreations / rc.local
Created March 9, 2017 22:36
Debian gateway quickstart
#!/bin/sh
# Gateway Stuff
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
exit 0
@aziascreations
aziascreations / ClipboardNameExtractor.java
Created April 14, 2017 22:58
A simple program that scans your clipboard for POE item stats to extract the name.
import java.awt.HeadlessException;
import java.awt.Toolkit;
import java.awt.datatransfer.Clipboard;
import java.awt.datatransfer.DataFlavor;
import java.awt.datatransfer.StringSelection;
import java.awt.datatransfer.UnsupportedFlavorException;
import java.io.IOException;
import java.util.Arrays;
import java.util.List;
@aziascreations
aziascreations / termux-url-opener
Last active January 11, 2021 05:21
Termux URL opener script with youtube downloader
#!/bin/bash
clear
bold=$(tput bold)
normal=$(tput sgr0)
if [[ $1 =~ ^.*youtu.*$ ]]; then
echo "${bold}Youtube-dl${normal}"
echo "> ${1}"
package main
import (
"syscall"
"unsafe"
)
var (
user32, _ = syscall.LoadLibrary("user32.dll")
messageBox, _ = syscall.GetProcAddress(user32, "MessageBoxW")
@aziascreations
aziascreations / up.bat
Created August 17, 2017 10:35
Simple script that lets go back in the current path easily
@echo off
if "%1"=="" (echo Error: No arguments passed ! && exit /B)
set "var="&for /f "delims=0123456789" %%i in ("%1") do set var=%%i
if defined var (echo Error: Non-numeric value passed ! && exit /B)
for /l %%x in (1, 1, %1) do cd ..
OpenConsole()
Procedure CRC16CCITT(*mem.Ascii,len)
Protected crc.u = $FFFF;
While a < len
For i = 0 To 7
bit = (*mem\a >> (7-i) & 1)
c15 = ((crc >> 15) & 1)
crc << 1
If Bool(c15 ! bit)
@aziascreations
aziascreations / UTPackageVersion.pbi
Created November 10, 2018 01:04
A basic procedure to check Unreal Engine package's version in PureBasic
; As described in:
; http://eliotvu.com/page/unreal-package-file-format
Enumeration UnrealEngineVersion
; U and U2 are also missing (U could be 69 since it's the same engine ?)
#UE_UT99 = 69
; UT2003 is missing from the docs :/
#UE_UT_UT2004 = 128
#UE_UT_UT3 = 512