Skip to content

Instantly share code, notes, and snippets.

View mort's full-sized avatar

Manuel González Noriega mort

View GitHub Profile
SSL is the encryption protocol used to secure communications over the web (HTTP) When that little lock icon appears in your browser's location bar, the HTTP traffic between the browser and the server is being encrypted with so-called public key cryptography, making it unreadable to people sniffing your traffic. Banking transactions, communications and any other sensible information should, and these days almost in every case is, transmitted with HTTP over SSL (HTTPS)
OpenSSL is the most popular library out there for allowing servers and client to encrypt HTTP with SSL. The Heartbleed bug is a programming flaw in this library (In the library, not in the protocol itself) that allows an attacker to read the system memory of computers using it. That means reading the memory where credentials, financial information and any other kind of sensitive and non-sensitive info is stored. So, attackers could, and with all certainty have, gotten their hands on a lot of stuff they should never have had access to.
So, this
@mort
mort / gist:5038eb6afdb583937f0c
Created July 30, 2014 22:13
Reading list: Historia de la tecnología
- Pre 1960
* http://www.amazon.com/The-Victorian-Internet-Remarkable-Nineteenth/dp/0802716040/ref=pd_bxgy_b_text_y
* http://www.amazon.com/Turings-Cathedral-Origins-Digital-Universe/dp/1400075998/ref=sr_1_1
http://www.amazon.com/The-Chip-Americans-Microchip-Revolution/dp/0375758283/ref=pd_rhf_dp_s_cp_1
- General history
* http://www.amazon.com/Hackers-Computer-Revolution-Anniversary-Edition/dp/1449388396/ref=pd_vtp_b_3
@mort
mort / gist:20341
Created October 28, 2008 10:05
Oferta de trabajo en Simplelógica (28/10/08)
Oferta de trabajo en Simplelógica
http://simplelogica.net
keywords: rails, ruby, web, simplelogica, hacking
Contacto: david@simplelogica.net
Fecha: 28/10/2008
Hola,
en Simplelógica estamos buscando un/una desarrollador/desarrolladora en Rails para trabajar con nosotros. No necesitamos superexpertos, sino gente que esté entusiasmada por su experiencia con Rails hasta el momento y quiera continuar aprendiendo y mejorando en un entorno bastante agradable, con proyectos variados e interesantes y con unos compañeros Extremadamente Simpáticos™.
@mort
mort / gist:35941
Created December 15, 2008 12:35
undefined
module Kandypot
module Randomizer
def lucky(i,p = 0.8)
(rand < p) ? i : nil
end
end
end
// ==UserScript==
// @name Hang The DJ
// @namespace http://simplelogica.net/cajondesastre/hangthedj
// @description Gets rid of blipfuckingfm on Twitter
// @include http://twitter.com/*
// @author mort (manuel@simplelogica.net)
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.js
// ==/UserScript==
$(function() {
$(":contains('http://blip.fm')").parent('tr.status').hide();
config/database.yml
*~
*.cache
*.log
*.pid
tmp/**/*
.DS\_Store
db/cstore/**
doc/api
doc/app
@mort
mort / twitter_backup.rb
Created November 3, 2009 09:27 — forked from guillermo/twitter_backup.rb
Tweaking Guillermo's original script to add support for accounts with a huge amount of tweets ;)
require 'twitter'
# TwitterBackup.new(user,pass).backup!
# Will save tweets to files
# ~/.twitter_backup/tweets/tweet_id.yaml # Full yaml tweet
# ~/.twitter_backup/tweets/tweet_id.txt # Only tweet text
# Search locally in your tweets
# cat ~/.twitter_backup/tweets/*.txt | grep -i 'some text'
class RoresDownloader
MONTHS = %w(january february march april may june july august september october november december)
YEARS = 2004..2009
def self.download
YEARS.each do |year|
MONTHS.each do |month|
m = month.capitalize
url = "http://lists.simplelogica.net/pipermail/ror-es/#{year}-#{m}.txt.gz"
puts "Y: #{year}; M: #{m}; URL: #{url}"
>> lat = '51.500915'
=> "51.500915"
>> lon = '-0.122405'
=> "-0.122405"
>> radius = 1
=> 1
>> options = {}
=> {}
>> options[:flickr] = {:auth => {:api_key => 'XXXXX'}}
=> {:auth=>{:api_key=>"XXXXX"}}
require 'sinatra'
get '/:colour' do
erb "<body style='background-color:##{params[:colour]}'></body>"
end