Skip to content

Instantly share code, notes, and snippets.

View kkung's full-sized avatar

Minyoung Jeong kkung

View GitHub Profile
@kkung
kkung / mac_hangul_input_shortcut_to_shiftspace.sh
Created July 23, 2023 22:38 — forked from msuksong/mac_hangul_input_shortcut_to_shiftspace.sh
This script change Hangul input shortcut to shift-space.
#!/bin/sh
# Select next source in Input menu
KEY=AppleSymbolicHotKeys.61.value.parameters.2
# Shift-space
VALUE=131072
plutil -replace "$KEY" -integer "$VALUE" -o /tmp/hangul_shiftspace.plist ~/Library/Preferences/com.apple.symbolichotkeys.plist
cp ~/Library/Preferences/com.apple.symbolichotkeys.plist{,.backup}
cp /tmp/hangul_shiftspace.plist ~/Library/Preferences/com.apple.symbolichotkeys.plist
@kkung
kkung / keybase.md
Created January 18, 2018 14:02
keybase.md

Keybase proof

I hereby claim:

  • I am kkung on github.
  • I am kkung (https://keybase.io/kkung) on keybase.
  • I have a public key ASA6LVvEkVOPndMQuD5BhNun2HK5HVa1pruV037BAtBVAQo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am kkung on github.
  • I am kkung (https://keybase.io/kkung) on keybase.
  • I have a public key whose fingerprint is 4F8D 1EE2 8D1A 7D45 1F49 60D1 C49E 9CEB 50D6 B105

To claim this, I am signing this object:

@kkung
kkung / duzon.py
Last active December 23, 2020 08:19
더존 급여명세서 복호화
#!/usr/bin/env python
import sys
import re
import urllib
ENC_BODY_PATTERN = re.compile(r'value=\'([^\'].*)\'')
def decrypt(name, key):
if len(key) != 6:
@kkung
kkung / result.md
Created August 14, 2014 02:52
RSA library benchmark
  • RMBP 15" / Early 2013(2.4GHz i7, 16GB RAM), CPython 2.7.6
  • rsa==3.1.4
  • pycrypto==2.6.1
  • cryptography==0.5.3
Cryptography PyCrypto RSA
1.0222690105438232 1.453489065170288 4.905964136123657
1.0008471012115479 1.3903019428253174 4.860486030578613
0.9761111736297607 1.3885319232940674 5.226905107498169
@kkung
kkung / example.md
Last active September 22, 2017 14:24
Getting AWS RDS Log files
$ python get_logs.py rds-db-instance-name rds.log aws-access-key aws-secret-key
$ ./pgbadger -p '%t:%r:%u@%d:[%p]:' ./rds.log

$ open out.html

/*
Manifest
*/
ManifestStyle
{
-kakaotalk-theme-name: url('Travel Theme');
-kakaotalk-theme-version: url('1.0.0');
-kakaotalk-theme-url: url('http://www.kakao.com');
-kakaotalk-author-name: url('Kakao Corp.');
from wand.api import *
from wand.color import Color
import ctypes
res = libmagick.NewMagickWand()
libmagick.MagickReadImage(
res,
'test/img/387062_352291954856564_1975342188_n.jpeg')
draw = libmagick.NewDrawingWand()
libmagick.DrawSetFont(
Downloading https://github.com/downloads/dahlia/libsass-python/libsass-0.1.0preview.tar.gz
Processing libsass-0.1.0preview.tar.gz
Running libsass-0.1.0preview/setup.py -q bdist_egg --dist-dir /var/folders/jf/vqynd_t5705211nzjlfllvnw0000gn/T/easy_install-xxymQM/libsass-0.1.0preview/egg-dist-tmp-57FSXq
clang: warning: argument unused during compilation: '-mno-fused-madd'
sass.c:54:24: warning: '&&' within '||' [-Wlogical-op-parentheses]
if (string != NULL && !(filename == NULL && dirname == NULL) ||
~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~
sass.c:54:24: note: place parentheses around the '&&' expression to silence this warning
if (string != NULL && !(filename == NULL && dirname == NULL) ||
^
Traceback (most recent call last):
File "runserver.py", line 4, in <module>
app = create_app()
File "/Users/kkung/private/jothief/jothief/jothief/__init__.py", line 28, in create_app
admin_blueprint = admin.create_admin_blueprint(datastore)
File "/Users/kkung/private/jothief/env/lib/python2.7/site-packages/flask_admin/__init__.py", line 87, in create_admin_blueprint
return create_admin_blueprint_new(*args, **kwargs)
File "/Users/kkung/private/jothief/env/lib/python2.7/site-packages/flask_admin/__init__.py", line 116, in create_admin_blueprint_new
**kwargs)
File "/Users/kkung/private/jothief/env/lib/python2.7/site-packages/flask/blueprints.py", line 95, in __init__