Skip to content

Instantly share code, notes, and snippets.

@pdfrod
pdfrod / appinfo.vdf
Last active March 22, 2022 23:48
Replace .local/share/Steam/appcache/appinfo.vdf with this one to make Assassin's Creed Brotherhood - Deluxe work on Linux
@pdfrod
pdfrod / appinfo.vdf
Last active August 29, 2022 16:48
Replace .local/share/Steam/appcache/appinfo.vdf with this one to make Assassin's Creed 2 work on Linux
@pdfrod
pdfrod / UnrealEngine.md
Last active April 29, 2023 11:30
UnrealEngine

Introduction

The notes taken here apply as of version version 4.24.3 of Unreal Engine for Linux.

Shortcuts

  • Shift + End - Snap object to the ground

Classes

@pdfrod
pdfrod / extconf.patch
Last active July 25, 2018 10:37
Patch for Ruby 2.5.1 to fix OpenSSL build error
--- a/ext/openssl/extconf.rb
+++ b/ext/openssl/extconf.rb
@@ -122,8 +122,11 @@
have_func("SSL_is_server")
# added in 1.1.0
+if !have_struct_member("SSL", "ctx", "openssl/ssl.h") ||
+ try_static_assert("LIBRESSL_VERSION_NUMBER >= 0x2070000fL", "openssl/opensslv.h")
+ $defs.push("-DHAVE_OPAQUE_OPENSSL")
+end
@pdfrod
pdfrod / decode_session_cookie.rb
Last active July 4, 2024 14:20 — forked from profh/decode_session_cookie.rb
A simple script to decode Rails 4 session cookies
@pdfrod
pdfrod / gist:f8c32031536fd4b355bd
Created June 16, 2015 15:11
Scrap emails from attending.io
require 'nokogiri'
page = Nokogiri::HTML(open('attendees.html'))
page.css('li.attendee').each do |attendee|
name = attendee.css('.attendee__name > a:first-child').text.strip
email = attendee.to_s.scan(/mailto:([^"]+)/)[0][0]
puts "\"#{name}\",#{email}"
end
@pdfrod
pdfrod / codejam.rb
Last active December 16, 2015 11:09
Scrapes the list of contestants in Portugal from the Google Code Jam 2013 Qualification Round
require 'open-uri'
require 'json'
MAXPOS = 21261
STEP = 20
def getUrl(pos)
"http://code.google.com/codejam/contest/2270488/scoreboard/do/?cmd=GetScoreboard&start_pos=#{pos}"
end