Skip to content

Instantly share code, notes, and snippets.

View ikkentim's full-sized avatar

Tim Potze ikkentim

View GitHub Profile
@ikkentim
ikkentim / Memory.cs
Last active July 14, 2022 18:27
(C#) Memory class capable of reading memory of a certain process.
public struct ProcessMemory
{
#region Constructors
private ProcessMemory(Process process, int address) : this()
{
Process = process;
Address = address;
}
@ikkentim
ikkentim / md5bruterforcer.cs
Last active December 29, 2015 16:01
MD5 brute forcer
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Security.Cryptography;
using System.Threading;
using System.Threading.Tasks;
namespace ConsoleApplication2
@ikkentim
ikkentim / rsabruteforcer.cs
Last active December 29, 2015 13:57
RSA bruteforcer
using System;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
namespace BruteForceRSA
{
internal class Program
{
private static void Main(string[] args)
@ikkentim
ikkentim / primegenerator.cs
Last active August 29, 2015 14:05
A prime generator. I think it works all right
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
namespace Primer
{
class PrimeGenerator
{
private readonly BigInteger _checkStep = 5000;
@ikkentim
ikkentim / Postfix calculator.cs
Created September 11, 2014 12:20
Simple postfix calculator, including a infix to postfix converter.
using System;
using System.Collections.Generic;
using System.Linq;
namespace Calculator
{
class Program
{
static void Main(string[] args)
{
@ikkentim
ikkentim / ProgressBar.cs
Created November 15, 2014 14:16
ProgressBar class for SA-MP#
public class ProgressBar : Pool<ProgressBar>
{
private readonly PlayerTextDraw _back;
private readonly PlayerTextDraw _fill;
private readonly PlayerTextDraw _main;
private float _value;
private float _max;
public ProgressBar(Player player, float x, float y, float value, Color color = default(Color),
float width = 55.5f, float height = 3.2f,
@ikkentim
ikkentim / designer.html
Created November 18, 2014 14:32
designer
<link rel="import" href="../paper-input/paper-input.html">
<link rel="import" href="../core-input/core-input.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
@ikkentim
ikkentim / ProgressBar.cs
Last active August 11, 2021 12:15
SA-MP progress bar converted to C#
public class ProgressBar
{
private readonly PlayerTextDraw _back;
private readonly PlayerTextDraw _fill;
private readonly PlayerTextDraw _main;
private float _value;
private float _max;
public ProgressBar(BasePlayer player, float x, float y, float value, Color color = default(Color),
float width = 55.5f, float height = 3.2f,
@ikkentim
ikkentim / brainfuck.cpp
Last active August 29, 2015 14:14
Basic brainfuck interpreter
#include <iostream>
#include <fstream>
using namespace std;
int main() {
ifstream codeFile ("main.bf");
codeFile.seekg(0,ifstream::end);
int size=codeFile.tellg();
@ikkentim
ikkentim / asciitable.bf
Last active August 29, 2015 14:14
brainfuck ASCII tabl
+ #0: Current char
[
.
> +++++ +++++ +++++ +++++ +++++ +++++ ++. (space)
> +++++ +++++ +++++ +++++ +++++ +++++ +++++ +++++ +++++ +++++ +++++ +++.[-] (:) and clear
<.[-] (space) and clear
<[->>+<<]>>[-<+<+>>]< Copy #0 to #1
>>++++++++++<<[->+>-[>+>>]>[+[-<+>]>+>>]<<<<<<]>>[-]>>>++++++++++<[->-[>+>>]>[+[-