Skip to content

Instantly share code, notes, and snippets.

View wktk's full-sized avatar
🏠
Working from home

wktk

🏠
Working from home
View GitHub Profile
@MaxLap
MaxLap / rubocop.rb
Last active March 12, 2024 17:15 — forked from skanev/rubocop.rb
A Rubocop wrapper that checks only added/modified code
#!/usr/bin/env ruby
# A sneaky wrapper around Rubocop that allows you to run it only against
# the recent changes, as opposed to the whole project. It lets you
# enforce the style guide for new/modified code only, as opposed to
# having to restyle everything or adding cops incrementally. It relies
# on git to figure out which files to check.
#
# Here are some options you can pass in addition to the ones in rubocop:
#
@mala
mala / a.md
Last active June 30, 2020 15:13
Chrome ExtensionのLive HTTP Headersの調査(CoolBar.Pro導入 Extensionが何を行うかの調査)

Chrome ExtensionのLive HTTP Headersを調査した。Firefox用のものではない。Firefox用のものではない。

11/7追記

English version: https://translate.google.com/translate?sl=ja&tl=en&js=y&prev=_t&hl=ja&ie=UTF-8&u=https%3A%2F%2Fgist.github.com%2Fmala%2Fe87973df5029d96c9269d9431fcef5cb&edit-text=&act=url

Summary in english.

@masatokinugawa
masatokinugawa / zoku_yimg_jp_dom_xss2.md
Last active October 12, 2020 02:16
続 Yahoo広告配信用 s.yimg.jp ドメインでのXSSの解説(多重縛りXSS編)

以下の記事の続きです。

https://gist.github.com/masatokinugawa/304d243b6a5142500b9b9efb3fb540c0

今回は、前回の記事に比べると、テクニカルなXSSの解説寄りです。 この知識が多くの人にとってどれほど役に立つかはわかりませんが、攻撃を通すまでのステップが複雑で面白かったので共有したいと思います。

前回の修正後

ジビエ開始まで

  1. 猟銃等の扱い初心者講習
  2. 新規狩猟免許取得
  3. 銃の所持許可証取得

狩猟免許の種類

第一種銃猟免許(散弾銃、ライフル銃)、第二種銃猟免許(空気銃) 網による狩猟、罠による狩猟

以上の4種類。

machine:
java:
version: openjdk7
environment:
RAILS_ENV: test
JRUBY_OPTS: -J-XX:+TieredCompilation -J-XX:TieredStopAtLevel=1 -J-noverify -X-C -Xcompile.invokedynamic=false --1.9 -J-Xmx2g
dependencies:
cache_directories:
- '~/.rvm/rubies'
@miyayo
miyayo / support.md
Last active September 7, 2023 04:58

『スキルアップ! 情報検索 : 基本と実践』サポートページ

このページについて

VimConf 2018完全攻略法 -- Vim Advent Calendar 2017

つい先日である27日前に、VimConf 2017 が日本の東京で開催されました。VimConfは世界初かつ世界で唯一の、コミュニティによって定期運営されているVimの国際カンファレンスで、今年で5回目です。

VimConf 2018が来年2018年に開催されることが予告されましたが、これに参加することは熾烈を極める争いになることが予想されます。27日前のVimConf 2017開催中に、「来年の同じ会場を予約する」という発言がありました。同じ会場、つまり客席数は同じです。一方、VimConf 2017の時点ですでにチケットは完売して参加できなかった人も大勢発生しており、このいまの高まるVim熱を鑑みるに、来年は今年の2倍、3倍の激しいチケット争奪戦になることはもはや確定事項といえます。

そんなVimConf 2018のチケットを入手するにはどうすればよいか、公開情報のみから考察し、まとめます。((なお著者のujihisaはVimConfのスタッフで、裏事情のすべてを完全に把握しているかもしれない人物ですが、この記事では公開されていない情報は一切知らなかったことにして考察を進めています。)) 以下に4項目を、難易度の低い順に羅列します。基本的に上の方に記述されているものを優先し、それができなかったら代替案として下に記述されているものを採用すると、すべての物事がスムーズに進み便利です。

招待される

@kazuho
kazuho / git-blame-pr.pl
Last active June 28, 2022 07:15
git-blame by PR #
#! /usr/bin/perl
#
# Written in 2017 by Kazuho Oku
#
# To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty.
# You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
#
use strict;
use warnings;

目的

xxの機能により KPI を伸ばす!

仮説

  • A によって B が増える

やること

@ksasao
ksasao / findmarker.py
Last active February 20, 2022 09:12
某スーツの水玉をみつけるやつ
import numpy as np
import random
import math
import cv2
from PIL import Image
def recognize(im):
# 輪郭線抽出のための二値化
im_gray = cv2.cvtColor(im, cv2.COLOR_BGR2GRAY)
im_blur = cv2.GaussianBlur(im_gray, (3, 3), 0)