Skip to content

Instantly share code, notes, and snippets.

View cfillion's full-sized avatar

Christian Fillion cfillion

View GitHub Profile
@bagder
bagder / slop.md
Last active July 5, 2025 10:26
AI slop security reports submitted to curl

Slop

This collection is limited to only include the reports that were submitted as security vulnerabilities to the curl bug-bounty program on Hackerone.

Reports

  1. [Critical] Curl CVE-2023-38545 vulnerability code changes are disclosed on the internet. #2199174
  2. Buffer Overflow Vulnerability in WebSocket Handling #2298307
  3. Exploitable Format String Vulnerability in curl_mfprintf Function #2819666
@the-bass
the-bass / application.html.erb
Last active April 15, 2020 15:01
Using Google Analytics with Rails 5 and Turbolinks 5. This code is taken from the conversation between @preetpalS and @packagethief on https://github.com/turbolinks/turbolinks/issues/73.
<%# Put this code snippet between the <head></head>-tags in your application layout and %>
<%# replace 'UA-XXXXXXXX-X' with your own unique Google Analytics Tracking ID %>
<%# ... %>
<head>
<%# ... %>
<% if Rails.env.production? %>
<script type="text/javascript">
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
@alexbaumgertner
alexbaumgertner / stylish_input_mono_font_force_enable.css
Last active October 14, 2024 08:33
Enable Input Mono font for all monospaced fonts
@font-face {
font-family: 'Consolas';
src: local(input mono);
}
@font-face {
font-family: 'Liberation Mono';
src: local(input mono);
}
@font-face {
font-family: 'Menlo';

radare2

load without any analysis (file header at offset 0x0): r2 -n /path/to/file

  • analyze all: aa
  • show sections: iS
  • list functions: afl
  • list imports: ii
  • list entrypoints: ie
  • seek to function: s sym.main
@mattbrictson
mattbrictson / application.html.erb
Last active February 23, 2025 03:58
Simpler nested layouts in Rails using the parent_layout helper
<%= render("shared/navbar") %>
<div class="container">
<%= render("shared/alerts") %>
<%= render("shared/page_header") %>
<%= yield %>
<%= render("shared/footer") %>
@1wErt3r
1wErt3r / SMBDIS.ASM
Created November 9, 2012 22:27
A Comprehensive Super Mario Bros. Disassembly
;SMBDIS.ASM - A COMPREHENSIVE SUPER MARIO BROS. DISASSEMBLY
;by doppelganger ([email protected])
;This file is provided for your own use as-is. It will require the character rom data
;and an iNES file header to get it to work.
;There are so many people I have to thank for this, that taking all the credit for
;myself would be an unforgivable act of arrogance. Without their help this would
;probably not be possible. So I thank all the peeps in the nesdev scene whose insight into
;the 6502 and the NES helped me learn how it works (you guys know who you are, there's no
@henrik
henrik / prawn_stroke_dashed_horizontal_line.rb
Created October 8, 2009 08:07
Basic stroke_dashed_horizontal_line to draw dashed lines/dotted lines in Prawn.
module Prawn::Graphics
# E.g. stroke_dashed_horizontal_line(0, 5.cm, :at => 10.cm, :line_length => 1.cm, :space_length => 1.mm)
# Currently rounds up line/space periods: 1 cm line length + 1 mm space as a 3 cm line would be "- - -", 3.2 cm total.
def stroke_dashed_horizontal_line(x1,x2,options={})
options = options.dup
line_length = options.delete(:line_length) || 0.5.mm
space_length = options.delete(:space_length) || line_length
period_length = line_length + space_length
total_length = x2 - x1