Skip to content

Instantly share code, notes, and snippets.

View masterT's full-sized avatar

Simon Thiboutôt masterT

View GitHub Profile
You are the orchestrator.
You think, design and plan architectural decision only. Write only essential technical specs and reasoning. Prefer not to write code yourself unless all executors fail.
Never assume the user's intent. Ask for clarification for ambiguous situations.
Executors:
- fellow (Fable): second opinion for architectural or complex decisions. For hardest problem only.
- mechanical (Sonnet): mechanical for fast/small redundant tasks.
- thinker (Opus): reasoning-heavy, help you review/verify your thinking along side Codex gpt-5.6-sol below.
@masterT
masterT / README.md
Created December 27, 2021 16:02
RequestForgeryProtection for ActionController::API

Configure ActionController::RequestForgeryProtection for an ApplicationController that does not inherits from ActionController::Base (or any controller that does not include ActionController::RequestForgeryProtection).

This is required since the module is included after the application is loaded, so it does not get configured automatically by the configuration files config/environments/*.rb.

@masterT
masterT / response.html
Created September 22, 2021 10:14
Koel download song error
<!-- Unsupported download type. (500 Internal Server Error) -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="robots" content="noindex,nofollow" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<title>Unsupported download type. (500 Internal Server Error)</title>
<link rel="icon" type="image/png" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAgCAYAAAABtRhCAAADVUlEQVRIx82XX0jTURTHLYPyqZdefQx66CEo80+aYpoIkqzUikz6Z5klQoWUWYRIJYEUGpQ+lIr9U5dOTLdCtkmWZis3rbnC5fw/neYW002307mX/cZvP3/7o1PwwOdh95x7vnf39zvnd29AgBer2xO6DclAXiMqZAqxIiNIN/IYSUS2BPhjmGATchUxI+ADWiRhpWK7HKuHFVBFdmU5YvnI4grFGCaReF/EBH4KsZlGgj2JBTuCYBWRIYF8YoEOJ6wBt/gEs7mBbyOjQXruPLSdOgPCiEiPSUUHDoL8Ug5IUo9B/d5wrt+G7OAKNrODPuVdB6vRCIzN6SdBlpW9RIgk/1FeAXabzRlrUPVCS/JhbmwudztnGeeH9AyXBIwtmM3wLinZJZHifjHw2V+NBoRh+9ixQrbgbnaSIcl7cGea6hoXQbNe7za241oeO5Z0p42M4BV2EqP2D50wo+6HzvwC6C4sApNOR8cmOrtcnhtj2kYRyC9eBvXzKrBZrXSs72kFd1t3MoKVbMekQkEnSNKOO8fac3LpmK6l1Tl
@masterT
masterT / keybase.md
Created May 21, 2020 01:41
keybase.md

Keybase proof

I hereby claim:

  • I am mastert on github.
  • I am lilc4t (https://keybase.io/lilc4t) on keybase.
  • I have a public key ASByBSMHz-otsvW5oSCe_O6BEq_-79Y9wME-s_BO_g81wgo

To claim this, I am signing this object:

@masterT
masterT / cancelable-promise.js
Created May 16, 2018 21:38
Cancelable Promise
export class CanceledError extends Error {
constructor (promise) {
super()
if (Error.captureStackTrace) {
Error.captureStackTrace(this, CanceledError)
}
this.promise = promise
this.isCanceled = true
@masterT
masterT / .travis.yml
Created January 23, 2018 15:14 — forked from willprice/.travis.yml
How to set up TravisCI for projects that push back to github
# Ruby is our language as asciidoctor is a ruby gem.
lang: ruby
before_install:
- sudo apt-get install pandoc
- gem install asciidoctor
script:
- make
after_success:
- .travis/push.sh
env:
@masterT
masterT / challenge-template.md
Last active July 23, 2024 21:10
CTF Tactics

Challenge {name}

{url}

{description}

Backend

  • Server: {server, version}
  • Language: {language, version}
@masterT
masterT / Quang Ngai.md
Last active June 10, 2017 04:19
CTF WhiteHat 2017

Quang Ngai

You have a data file.

$ file data
data: data
alert("hacked");
@masterT
masterT / solution.md
Last active February 2, 2017 01:05
Solution pour la SQLi Are You Rich (HITCON CTF)

52.197.140.254/are_you_rich/verify.php (maintenant indisponible)

En premier il fallait trouver que le chmap était injectable.

Avec des requêtes du genre:

blahblahblahblah' OR 1 = 1 --