Skip to content

Instantly share code, notes, and snippets.

View manuel-rubio's full-sized avatar
👋
Say Hi! and let me know if you want to contribute!

Manuel Rubio manuel-rubio

👋
Say Hi! and let me know if you want to contribute!
View GitHub Profile
@shakna-israel
shakna-israel / LetsDestroyC.md
Created January 30, 2020 03:50
Let's Destroy C

Let's Destroy C

I have a pet project I work on, every now and then. CNoEvil.

The concept is simple enough.

What if, for a moment, we forgot all the rules we know. That we ignore every good idea, and accept all the terrible ones. That nothing is off limits. Can we turn C into a new language? Can we do what Lisp and Forth let the over-eager programmer do, but in C?


@nelsonic
nelsonic / softwareengineering
Created September 30, 2019 11:52 — forked from scottashipp/softwareengineering
Software Engineering Quotes for fortune
%
Simple things should be simple, complex things should be possible.
The Wiki Way: Quick Collaboration on the Web, Bo Leuf, Ward
Cunningham
%
Simplicity is the soul of efficiency.
Austin Freeman
%
I have yet to see any problem, however complicated, which, when you
looked at it in the right way, did not become still more complicated.
@manuel-rubio
manuel-rubio / README.md
Last active February 1, 2016 03:02
IM Binary & SSL protocol think for use with mobile platforms. This protocol has special approach on small & slow data transfers and security.

IM Binary & SSL secured

All the time I was working with XMPP I realized this protocol has a lot of flaws to use in mobile devices, even the lack of sync for the messages between several devices. This protocol tries to solve those flaws:

  1. Use of bandwidth. This protocol is binary and use keywords to save a lof of bandwidth using the same protocol and the same featureas as XMPP.
  2. Reliability of the messages. Using ACKs in every sent ensure all of the messages will arrive to the destin and in the same order. The protocol is async, but for messages the server must to use a pipeline sent.
  3. Multi-device. Capabilities to ensure the messages are delivered on all the devices the user has registered.
  4. Security. Ensuring a certificate is valid between client and server (client must to check server certificate and server must to check client certificate) ensure the communication should be more secure.

REGISTER, AUTH & SESSIONS

Testing ephp

To test how can works ephp I do a escriptize and you can use it to execute simple php code:

git clone https://github.com/bragful/ephp
cd ephp
make
@bayadeoro
bayadeoro / mysql_pager_result_query.txt
Last active December 20, 2015 19:59
Paginar el resultado mostrado en una consulta de mysql desde la consola
mysql> pager less -n -i -S
@bayadeoro
bayadeoro / magento_cambio_moneda.txt
Last active December 20, 2015 19:29
Cambiar el tipo de moneda en magento
System -> Configuration -> General -> Currency Setup
@nox
nox / atkin.erl
Last active December 20, 2015 04:49
Sieve of Atkin in Erlang with a mutable HiPE bitarray. Forgive me, I was bored.
-module(atkin).
-export([primes_smaller_than/1]).
primes_smaller_than(Limit) ->
primes_smaller_than(Limit, sieve(Limit), []).
primes_smaller_than(0, _, Acc) ->
Acc;
primes_smaller_than(N, Bin, Acc) ->
@artefactop
artefactop / calendar_iso8601.erl
Created May 21, 2013 18:04
erlang dates to integer iso8601
date_to_integer_iso8601({date,{Y,M,D}}) ->
datetime_to_integer_iso8601({datetime,{{Y,M,D},{0,0,0}}}).
datetime_to_integer_iso8601({datetime,{{Y,M,D},{H,Min,S}}}) ->
Y * 10000000000 + M * 100000000 + D * 1000000 + H * 10000 + Min * 100 + S.
#!/usr/bin/env escript
-mode(compile).
epoch() ->
{Mega,Sec,Mili} = os:timestamp(),
(Mega * 1000000) + Sec + (Mili / 1000000).
measure(F) ->
Ini = epoch(),
@andelf
andelf / beam_decompile.erl
Created March 19, 2013 03:25
Erlang BEAM file decompile to .erl file
#!/usr/bin/env escript
% -*- mode: erlang -*-
main([BeamFile]) ->
{ok,{_,[{abstract_code,{_,AC}}]}} = beam_lib:chunks(BeamFile,[abstract_code]),
io:fwrite("~s~n", [erl_prettypr:format(erl_syntax:form_list(AC))]).