Skip to content

Instantly share code, notes, and snippets.

View b1nary's full-sized avatar

Roman Pramberger b1nary

View GitHub Profile
@b1nary
b1nary / _.markdown
Created January 27, 2012 20:35
HideMage in development ;) It can save Text to images and get it back.

HideMage

What i try in this projekt is to make an simple but effective tool to hide information in Images. Text or in Binary should not matter. Also it should give some functions like decodeing it, or encrypting it (AES, ...)

Todo

  • Encryption (Aes, ...) use OpenSSL Api ^^
  • May add Twofish Encryption
  • Write Binary data to images
  • Execute Scripts hidden in Images (also width password)
@b1nary
b1nary / _.markdown
Created January 28, 2012 11:40
convert text to an binary based Image.

rBinmage

Converts text to Images based on 1 and 0. They can easily get coded and decoded. Works best with gif or Bitmap images.

Needs: rMagick

Example, the Script itself Encrypted:

Binary Image Example

@b1nary
b1nary / Main.java
Last active September 30, 2015 22:27
Java basics
public class Main {
/*
* Vl. aber nur ganz vl macht das Java logisch.
*
* NOTE: Ich erwarte den Preis für die blödesten
* Variablen Namen ;)
*
* Und ja, man schreibt Variablen normal
* nicht alle Gross, sry ^^
@b1nary
b1nary / 1.f
Last active October 1, 2015 01:18
Programming Syntax Evolution (Or some Hallo Worlds)
// Fortran
// Year: 1954–55
// Name: The IBM Mathematical FORmula TRANslating System
Program Hello
Print *, "Hello World!"
End Program Hello
package ch.seta.awsomepixelship;
import java.io.IOException;
import java.util.Random;
import javax.microedition.lcdui.Canvas;
import javax.microedition.lcdui.Graphics;
import javax.microedition.lcdui.Image;
public class ActionCanvas extends Canvas implements Runnable{
@b1nary
b1nary / _.md
Created May 1, 2012 21:44
JSP Homework

*O* Homework *O*

Sooo well done!

(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cu(a){if(!cj[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ck||(ck=c.createElement("iframe"),ck.frameBorder=ck.width=ck.height=0),b.appendChild(ck);if(!cl||!ck.createElement)cl=(ck.contentWindow||ck.contentDocument).document,cl.write((f.support.boxModel?"<!doctype html>":"")+"<html><body>"),cl.close();d=cl.createElement(a),cl.body.appendChild(d),e=f.css(d,"display"),b.removeChild(ck)}cj[a]=e}return cj[a]}function ct(a,b){var c={};f.each(cp.concat.apply([],cp.slice(0,b)),function(){c[this]=a});return c}function cs(){cq=b}function cr(){setTimeout(cs,0);return cq=f.now()}function ci(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function ch(){try{return new a.XMLHttpRequest}catch(b){}}function cb(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var d=a.dataTypes,e={},g,h,i=d.length,j,k=d[0],l,m,n,o,p;for(g=1;g<i;g++){if(g===1)for(h in
@b1nary
b1nary / google_speech_recognition.rb
Created June 13, 2012 15:33 — forked from pachacamac/google_speech_recognition.rb
google speech recognition with ruby
require 'rest_client'
require 'json'
a = `sox -d --norm -t .flac - silence -l 1 0 1% 1 6.0 1% rate 16k`
#a = `arecord -q -d 3 -c 1 -f S16_LE -r 22050 -t wav | flac - -f --totally-silent -o-`
r = RestClient.post 'https://www.google.com/speech-api/v1/recognize?lang=en-US', a,
:content_type => 'audio/x-flac; rate=16000'
if j = JSON.parse(r)
(p j; `espeak 'you said: #{j['hypotheses'].first['utterance']}'`)
end
@b1nary
b1nary / nixcolor.gemspec
Last active October 6, 2015 12:08
NixColor - Yet another 255 Ansi colors for ruby gem
Gem::Specification.new do |s|
s.name = 'nixcolor'
s.version = '0.0.2'
s.date = '2012-05-30'
s.summary = "Unix (Ansi) color gem"
s.description = "Yet another 255 Ansi colors for ruby gem"
s.authors = ["Roman Pramberger"]
s.email = '*@gmail.com'
s.files = ["lib/nixcolor.rb"]
s.homepage = 'http://rubygems.org/gems/nixcolor'