Skip to content

Instantly share code, notes, and snippets.

🤡
Computerin'

Ben Bleything bleything

🤡
Computerin'
Block or report user

Report or block bleything

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@harrisj
harrisj / tweet_signatures.md
Last active Jan 1, 2019
Tweet Signatures: a simple solution for thwarting forged tweets
View tweet_signatures.md

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
bryanveloso / ff_favorites.rst
Last active Oct 25, 2018
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 XV
  4. Final Fantasy Tactics (Preference given to the "War of the Lions" remake.)
  5. Final Fantasy XII
  6. Final Fantasy VI
  7. Final Fantasy VII
  8. Final Fantasy VIII
@gavinheavyside
gavinheavyside / fizzbuzz.rb
Last active Sep 27, 2019 — 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
end
@paulirish
paulirish / gist:3098860
Created Jul 12, 2012
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

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.

Example

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

@zerowidth
zerowidth / copy_rtf.vim
Created Jul 21, 2011
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 https://github.com/dharanasoft/rtf-highlight
" 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
alexg0 / Rakefile
Created Apr 16, 2010
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
end
You can’t perform that action at this time.