mercari.go #4 https://mercari.connpass.com/event/105640/
- catatsuyというIDで各種SNS活動しています
- かたついって呼ばれています
- メルカリのSREチームで主にGoを書いています
- 前職はピクシブでpixivのHTTPS化・PHP7.1化・HTTP/2化や、広告サーバーの新機能追加など色々やっていました
#!/usr/bin/env python2 | |
""" | |
Author: takeshix <takeshix@adversec.com> | |
PoC code for CVE-2014-0160. Original PoC by Jared Stafford (jspenguin@jspenguin.org). | |
Supportes all versions of TLS and has STARTTLS support for SMTP,POP3,IMAP,FTP and XMPP. | |
""" | |
import sys,struct,socket | |
from argparse import ArgumentParser |
mercari.go #4 https://mercari.connpass.com/event/105640/
/* | |
* parse_link_header() | |
* | |
* Parse the Github Link HTTP header used for pageination | |
* http://developer.github.com/v3/#pagination | |
*/ | |
function parse_link_header(header) { | |
if (header.length == 0) { | |
throw new Error("input must not be of zero length"); | |
} |
MessagePackが文字列とバイナリをわけないのは問題?
Objective Cの実装使ってるとある問題にぶちあたった.なので,文字列をちゃんとバイナリ(Raw)と分けるべき,という提案
(*) 俺は熟読したわけではないので,中身が気になる人はちゃんと本スレを読みましょう
@echo off | |
:: | |
:: フルバックアップ | |
:: | |
:: 1. robocopy バックアップ | |
:: 2. バックアップ元のすべてのファイルのアーカイブ属性を Off に設定 | |
:: 3. バックアップ先ディレクトリの隠し属性削除 | |
:: 注意: 1. 実行後、2. の実行までに更新されたファイルは、 | |
:: バックアップから漏れますが許容することにします。 | |
:: |
#!/bin/bash | |
username='apple-id@example.com' | |
password='apple-id-no-password' | |
authheader="Authorization: Basic $(echo -n "$username:$password" | base64)" | |
url_initClient="https://fmipmobile.icloud.com/fmipservice/device/$username/initClient" | |
url_playSound="https://fmipmobile.icloud.com/fmipservice/device/$username/playSound" | |
# initClient | |
curl -vXPOST "$url_initClient" -H "$authheader" > initClient.json |
Unofficial CLI command for mornin'+ (mornin' plus) smart curtain.
Requirements: Python 3, bluepy 3.2+, pycryptodome 3.6+
from math import cos, pi | |
import numpy | |
from chainer.training import extension | |
class CosineAnnealing(extension.Extension): | |
def __init__(self, lr_max, lr_min=0, T_0=1, T_mult=2, | |
optimizer=None): | |
super(CosineAnnealing, self).__init__() |
nvprof -o pytorch.nvprof -f python3 test_pytorch.py
nvprof -o pytorch_mp.nvprof -f python3 test_pytorch_mp.py
nvprof -o cupy.nvprof -f python3 test_cupy.py
nvprof -o cupy_mp.nvprof -f python3 test_cupy_mp.py
This is a guideline to give the standard way of implementing a new-style function in Chainer. Different developers can align the coding style by writing implementations based on this document.
A new-style function implementation consists of at least two elements:
an implementation of FunctionNode
and a user interface function.