Skip to content

Instantly share code, notes, and snippets.

View sublee's full-sized avatar
✔️
Hello, world!

Heungsub Lee sublee

✔️
Hello, world!
View GitHub Profile
@sublee
sublee / LICENSE
Last active October 19, 2022 14:38
Fully sequential ResNet-101 for PyTorch
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
@sublee
sublee / README.md
Last active April 1, 2019 06:27
A demonstration of the problems from parallel checkpoints

This gist demonstrates the problems (a deadlock and a recursion limit error) due to pytorch#18566. Both code are tested with PyTorch 1.0.1.post2.

Each code has a docstring to explain itself.

Keybase proof

I hereby claim:

  • I am sublee on github.
  • I am sublee (https://keybase.io/sublee) on keybase.
  • I have a public key whose fingerprint is 7090 EB35 4739 3408 6E1D C7F9 2C44 EF7E 9911 31AC

To claim this, I am signing this object:

lang:
id = "ita"
code = "it", "ita", "ita"
english = "Italian"
korean = "이탈리아어"
script = "roman"
config:
author = "Brian Jongseong Park"
stage = "beta"
[lang]
id = ita
code = it, ita, ita
script = roman
[config]
markers = ",", ";"
[vars]
"@" = "a", "e", "i", "o", "u"
lang "ita" {
code = ["it", "ita", "ita"]
script = "roman"
markers = [",", ";"]
}
vars {
"@" = ["a", "e", "i", "o", "u"]
// "aou" = ["a", "o", "u"]
// "ei" = ["e", "i"]
@sublee
sublee / cb5-edit-to-free.sh
Created December 8, 2017 07:21
Couchbase 5.0.0 "edit-to-free" Security Bug
#!/bin/bash
#
# Couchbase 5.0.0 "edit-to-free" Security Bug
# ===========================================
#
# Couchbase 5 introduced RBAC. So clients always have to provide an
# authentication to use access on any bucket. But in case of the 'default'
# bucket, if we edit the bucket once, clients can access without
# authentication.
#
@sublee
sublee / README.md
Last active May 13, 2016 02:34
Wrong callback issue with gcouchbase

When I ignore GreenletExit during getting foo, getting bar on the same greenlet returns the result of foo instead of bar. It's a critical issue because we could not believe the result of any operations.

This example reproduces the case of "wrong callback". I tested this with couchbase-2.8.0. But I've been experiencing the issue from long time ago.

@sublee
sublee / classeur-ko.css
Last active April 11, 2016 05:20
Classeur modification for Korean
@import url(//fonts.googleapis.com/earlyaccess/kopubbatang.css);
@import url(//fonts.googleapis.com/earlyaccess/nanumgothiccoding.css);
.editor__inner, .preview__inner, .navbar__inner,
.file-entry__name, .folder-entry__inner-1, .toc-tab,
input { font-family: "KoPub Batang", serif; }
.editor .code, .editor .pre, .editor .table, .preview code
{ font-family: 'Nanum Gothic Coding', monospace; }
<!--
Sublee HTML for Classeur
Author: Heungsub Lee <[email protected]>
Updated at: Jan 20, 2016
-->
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />