Skip to content

Instantly share code, notes, and snippets.


Ben Bleything bleything

View GitHub Profile
harrisj /
Last active November 24, 2020 11:03
Tweet Signatures: a simple solution for thwarting forged tweets

A Simple Solution for Faked Tweets

Recently, a somewhat large selection of my timeline was shocked by the discovery that it's simple to make a fake-looking tweet on the web. Some feared it would be only a matter of time before some news organization is suckered by a fake tweet that seems to come from a real source.

Luckily, the solution already exists, and it's something you already use constantly: GNU PrivacyGuard signatures Here is an approach for verifying a tweet is authentic and hasn't been tampered with that is so simple even @KimKardashian could figure it out. To get started, we just need to do a little setup first:

  1. Of course, you have already installed GnuPG for your own use, generated a keypair and uploaded it to a keyserver so that other people can look it up. Its email address must be publicly listed in your twitter profile.
  2. Then, you must collect the public keys of the people you fo
bryanveloso / ff_favorites.rst
Last active March 31, 2021 23:40
I live for the J/RPG.
View ff_favorites.rst

This is an opinionated list of my top 10 favorite entries in the Final Fantasy series.

  1. Final Fantasy XIV
  2. Final Fantasy IV (Nostalgic Favorite.)
  3. Final Fantasy VII: Remake
  4. Final Fantasy XV
  5. Final Fantasy Tactics (Preference given to the "War of the Lions" remake.)
  6. Final Fantasy XII
  7. Final Fantasy VI
  8. Final Fantasy VII
gavinheavyside / fizzbuzz.rb
Last active September 27, 2019 08:43 — forked from mrb/fizzbuzz.rb
Writing FizzBuzz without modulus division or 'if'
View fizzbuzz.rb
fizz = [nil, nil, "Fizz"].cycle
buzz = [nil, nil, nil, nil, "Buzz"].cycle
(1..100).zip(fizz, buzz) do |num, *fb|
puts fb.compact.reduce(:+) || num
paulirish / gist:3098860
Created July 12, 2012 15:26
Open Conference Expectations
View gist:3098860

Open Conference Expectations

This document lays out some baseline expectations between conference speakers and conference presenters. The general goal is to maximize the value the conference provides to its attendees and community and to let speakers know what they might reasonably expect from a conference.

We believe that all speakers should reasonably expect these things, not just speakers who are known to draw large crowds, because no one is a rockstar but more people should have the chance to be one. We believe that conferences are better -- and, dare we say, more diverse -- when the people speaking are not just the people who can afford to get themselves there, either because their company paid or they foot the bill themselves. Basically, this isn't a rock show rider, it's some ideas that should help get the voices of lesser known folks heard.

These expectations should serve as a starting point for discussion between speaker and organizer. They are not a list of demands; they are a list of rea

View fibur.markdown


Fibur is a library that allows concurrency during Ruby I/O operations without needing to make use of callback systems. Traditionally in Ruby, to achieve concurrency during blocking I/O operations, programmers would make use of Fibers and callbacks. Fibur eliminates the need for wrapping your I/O calls with Fibers and a callback. It allows you to write your blocking I/O calls the way you normally would, and still have concurrent execution during those I/O calls.


Say you have a method that fetches data from a network resource:

zerowidth / copy_rtf.vim
Created July 21, 2011 01:50
copy a vim buffer or selection as syntax-highlighted RTF to the clipboard
View copy_rtf.vim
" copy the entire buffer or selected text as RTF
" inspired by
" but only uses commands available by default on OS X.
" To set html conversion options, :help TOhtml
" And, undocumented, to set the font used,
" let g:html_font="Your Preferred Font"
function! CopyRTF(line1,line2)
if !executable('textutil')
alexg0 / Rakefile
Created April 16, 2010 18:02
for chef-repo - load and dump data bags
View Rakefile
# ...
# append following lines
Dir[ File.join(File.dirname(__FILE__), 'tasks', '*.rake') ].sort.each do |f|
load f