Skip to content

Instantly share code, notes, and snippets.

View ikeikeikeike's full-sized avatar
🈵
Working

ikedat / Tatsuo Ikeda ikeikeikeike

🈵
Working
  • 3C
  • Tokyo, Japan
  • 10:07 (UTC +09:00)
View GitHub Profile
@ikeikeikeike
ikeikeikeike / great-namer.py
Created August 27, 2023 15:05
Great Namer.
stroke_data = {}
with open("./ucs-strokes.txt", "r", encoding="utf-8") as file:
lines = file.readlines()
for line in lines:
if not line.startswith("#"):
parts = line.strip().split("\t")
if len(parts) == 3:
_, char, count = parts
try:
stroke_data[char] = int(count)
@markpundsack
markpundsack / heroku-CVE-2013-0156.rb
Last active November 27, 2023 15:44 — forked from elliottkember/heroku-CVE-2013-0156.rb
Forked from https://gist.github.com/4489689 by elliottkember. CVE-2013-0156 is a nasty vulnerability in many versions of Rails. This script checks all your Heroku apps for this vulnerability in one quick (slow) move. More info: https://groups.google.com/forum/#!topic/rubyonrails-security/61bkgvnSGTQ/discussion
## The quick-and-nasty CVE-2013-0156 Heroku inspector!
## Originally brought to you by @elliottkember with changes by @markpundsack @ Heroku
## Download and run using:
## ruby heroku-CVE-2013-0156.rb
`heroku list`.split("\n").each do |app|
app = app.strip
# Some "heroku apps" lines have === formatting for grouping. They're not apps.
next if app[0..2] == "==="