I hereby claim:
- I am ta1kt0me on github.
- I am ta1kt0me (https://keybase.io/ta1kt0me) on keybase.
- I have a public key ASDX5EMGrQ283yL5_ZGyrL2fbMKuEEqn0vcZ2HlQT1IyQAo
To claim this, I am signing this object:
# frozen_string_literal: true | |
require "bundler/inline" | |
gemfile(true) do | |
source "https://rubygems.org" | |
git_source(:github) { |repo| "https://github.com/#{repo}.git" } | |
gem "rails", "7.1.3.2" |
module SimpleStateManager | |
class InvalidTransitionError < StandardError; end | |
def self.included(klass) | |
klass.extend(ClassMethods) | |
attr_accessor :state | |
klass.class_eval do | |
original_method = instance_method(:initialize) |
require 'minitest/autorun' | |
class CompressString | |
def initialize(text) | |
@text = text | |
end | |
def text | |
@text | |
end |
# https://rails-sqli.org/ を参考に ActiveRecord を利用した SQL Injection のサンプルを試す | |
# 試した環境は Rails 5.2.4 | |
# delete_allやdestroy_allでは引数を渡せない状況になったりもしているので全てのサンプルを試すことはできなかった。 | |
# | |
# db/seeds.rb | |
# (1..100).each do |i| | |
# Task.create(name: "task_#{i}") | |
# end | |
# | |
# db:seed を実行した後に以下のスクリプトを実行する |
FROM python:3.8.3-alpine3.11 | |
RUN apk add --no-cache gcc=9.2.0-r4 musl-dev=1.1.24-r2 libffi-dev=3.2.1-r6 openssl-dev=1.1.1g-r0 openssh-client=8.1_p1-r0 | |
RUN mkdir /app | |
WORKDIR /app | |
COPY requirements.txt /app/ | |
RUN pip install -r requirements.txt |
I hereby claim:
To claim this, I am signing this object:
ssh_config = File.read(ENV.fetch('HOME') + "/.ssh/config") | |
group = {} | |
host = [] | |
ssh_config.each_line do |line| | |
line.strip! | |
if line.start_with?(/Host |host /) | |
unless host.empty? | |
values = host[1..-1].map { |str| [str.strip.split(" ", 2)].to_h }.inject(&:merge) |
// ==UserScript== | |
// @name WIP Pull Request Unhighlignter | |
// @author sinsoku | |
// @version 0.4.1 | |
// @match https://github.com/* | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; |
require 'nokogiri' | |
require 'byebug' | |
f = File.open("./mailFilters.xml") | |
doc = Nokogiri::XML(f) | |
body = [] | |
doc.xpath('//xmlns:entry').each do |entry| | |
body << "filter {\n" |
# frozen_string_literal: true | |
source "https://rubygems.org" | |
git_source(:github) {|repo_name| "https://github.com/#{repo_name}" } | |
gem "aws-sdk-cloudwatchlogs" |