Skip to content

Instantly share code, notes, and snippets.

View choryuidentify's full-sized avatar

Choryu Park choryuidentify

  • Asan, Republic of Korea
View GitHub Profile
# cryptojustice.py
#
# 2021 Kyoungkyu Park (choryuidentify)
#
# Incomplete port of crypto-js by Evan Vosberg
# https://github.com/brix/crypto-js
#
# It support AES mode ECB, and decrypt only.
# If you want to encrypt or Other AES modes like CBC, You can add it yourself.
#
@choryuidentify
choryuidentify / fan_ctrl_opi.py
Last active October 5, 2022 08:39
fan_ctrl_opi.py
#!/usr/bin/python
# -*- coding: utf-8 -*-
# For Orange Pi
# Tested on Orange Pi Plus 2
import OPi.GPIO as GPIO
import time
import sys
@choryuidentify
choryuidentify / fan_ctrl_manual_opi.py
Last active December 28, 2019 05:36
fan_ctrl_manual_opi.py
#!/usr/bin/python
# -*- coding: utf-8 -*-
import OPi.GPIO as GPIO
import time
import sys
#import os
FAN_PIN = 21
WAIT_TIME = 1
@choryuidentify
choryuidentify / calib_fan_opi.py
Created December 28, 2019 05:00
calib_fan_opi.py
#!/usr/bin/python
# -*- coding: utf-8 -*-
import OPi.GPIO as GPIO
import time
import sys
#import os
FAN_PIN = 21
WAIT_TIME = 1
@choryuidentify
choryuidentify / azw3_analyze.py
Last active December 19, 2019 13:45
MobiPocket Analyze, Target file is KF8 Format.
import locale, struct
file_data = None
#################################################################################
# #
# MOBI HEADER PARSER - EXAMPLE #
# #
# 2019 Choryu Park (Kyoungkyu Park) #
# #
@choryuidentify
choryuidentify / mpeg2.log
Created October 27, 2019 03:05
libva-v4l2-request driver
Config:
Video path: /dev/video0
Media path: /dev/media0
DRM path: /dev/dri/card0
DRM driver: sun4i-drm
Slices path: data/bbb-mpeg2
Slices filename format: slice-%d.dump
FPS: 0
Preset:
@choryuidentify
choryuidentify / mpeg4.log
Created October 27, 2019 03:05
libva-v4l2-request driver
Config:
Video path: /dev/video0
Media path: /dev/media0
DRM path: /dev/dri/card0
DRM driver: sun4i-drm
Slices path: data/bbb-h264-32
Slices filename format: slice-%d.dump
FPS: 0
Preset:
@choryuidentify
choryuidentify / vlc.log
Created October 27, 2019 03:05
libva-v4l2-request driver
-- logger module started --
main debug: VLC media player - 3.0.8 Vetinari
main debug: Copyright © 1996-2019 the VideoLAN team
main debug: revision 3.0.8-0-gf350b6b5a7
main debug: configured with ./configure '--prefix=/usr' '--sysconfdir=/etc' '--with-kde-solid=/usr/share/solid/actions/' '--disable-rpath' '--enable-gles2' '--enable-nls' '--enable-archive' '--enable-live555' '--enable-dc1394' '--enable-dv1394' '--enable-dvdread' '--enable-dvdnav' '--enable-bluray' '--disable-opencv' '--enable-smbclient' '--enable-sftp' '--enable-nfs' '--enable-realrtsp' '--enable-dvbpsi' '--enable-gme' '--enable-ogg' '--enable-shout' '--enable-matroska' '--enable-mod' '--enable-mpc' '--enable-mad' '--enable-mpg123' '--enable-gst-decode' '--enable-avcodec' '--enable-libva' '--enable-avformat' '--enable-postproc' '--enable-faad' '--enable-vpx' '--enable-twolame' '--disable-fdkaac' '--enable-a52' '--enable-dca' '--enable-flac' '--enable-libmpeg2' '--enable-vorbis' '--enable-speex' '--enable-opus' '--enable-oggspots' '--disable-sc
@choryuidentify
choryuidentify / bstidy.py
Created February 8, 2018 01:25
bstidy.py
from ebooklib.plugins.base import BasePlugin
from bs4 import BeautifulSoup
def tidy_cleanup(content):
return BeautifulSoup(content, "html.parser", from_encoding="UTF-8").prettify()
class TidyPlugin(BasePlugin):
NAME = 'Tidy HTML using BeautifulSoup4'
@choryuidentify
choryuidentify / avrdude_buspirate_error.log
Created November 4, 2017 14:43
Bus Pirate: Paged Read command returned zero.
C:\Users\Choryu\Desktop\avrdude-6.3-mingw32>avrdude.exe -c buspirate -P COM10 -p m128 -U flash:r:flash.bin:r -v > buspirate_log.log
avrdude.exe: Version 6.3, compiled on Feb 17 2016 at 09:25:53
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is "C:\Users\Choryu\Desktop\avrdude-6.3-mingw32\avrdude.conf"
Using Port : COM10
Using Programmer : buspirate