Skip to content

Instantly share code, notes, and snippets.

View ryujaehun's full-sized avatar
🎯
Focusing

Jaehun Ryu ryujaehun

🎯
Focusing
View GitHub Profile
@ryujaehun
ryujaehun / image_viewer
Last active April 14, 2022 23:35
image_viewer.py
#!/usr/bin/python2
import PIL.Image
try:
from Tkinter import *
import tkFileDialog as filedialog
except ImportError:
from tkinter import *
from tkinter import filedialog
import PIL.ImageTk
@ryujaehun
ryujaehun / .conkrc
Last active December 15, 2018 13:20
.conkrc
-- vim: ts=4 sw=4 noet ai cindent syntax=lua
--[[
Conky, a system monitor, based on torsmo
Any original torsmo code is licensed under the BSD license
All code written since the fork of torsmo is licensed under the GPL
Please see COPYING for details
@ryujaehun
ryujaehun / sync.py
Created October 15, 2018 04:57
my rsync python script
# /usr/bin/python3
import argparse
import subprocess
import os
parser = argparse.ArgumentParser(description='Jaehun\'s ssh script')
parser.add_argument('--destination','-d', type=str,default='ti', required=False, help="ssh destination")
parser.add_argument('--docker','-o',action='store_true', required=False, help="docker port activation")
parser.add_argument('--file','-f', type=str, required=True, help="file path")
args = parser.parse_args()
destination_list={'dell':'git.deepmi.me', 'ti':'163.180.172.26','v':'163.180.172.118','1':'163.180.118.160','5':'163.180.118.155','6':'163.180.118.156','7':"163.180.118.157"}
@ryujaehun
ryujaehun / validation.sh
Created September 18, 2018 03:05
validation data and move images to subfolders
This file has been truncated, but you can view the full file.
mkdir -p n01440764
mkdir -p n01443537
mkdir -p n01484850
mkdir -p n01491361
mkdir -p n01494475
mkdir -p n01496331
mkdir -p n01498041
mkdir -p n01514668
mkdir -p n01514859
mkdir -p n01518878
@ryujaehun
ryujaehun / Install protobuf 3.6.1 on Ubuntu 16.04
Created August 19, 2018 08:24
Install protobuf 3.6.1 on Ubuntu 16.04
#! /bin/bash
# Make sure you grab the latest version
curl -OL https://github.com/google/protobuf/releases/download/v3.6.1/protoc-3.6.1-linux-x86_64.zip
https://github.com/google/protobuf/releases/download/v3.6.1/protoc-3.6.1-linux-x86_64.zip
# Unzip
unzip protoc-3.6.1-linux-x86_64.zip -d protoc3
# Move protoc to /usr/local/bin/
sudo mv protoc3/bin/* /usr/local/bin/
@ryujaehun
ryujaehun / xbindkeysrc
Last active October 5, 2019 11:54
logitech anywhere2s gesture
"xte 'keydown Control_L' 'keydown Alt_L' 'key Down' 'keyup Alt_L' 'keyup Control_L'"
m:0x10 + b:6
"xte 'keydown Control_L' 'keydown Alt_L' 'key Up' 'keyup Alt_L' 'keyup Control_L'"
m:0x10 + b:7
"xte 'keydown Control_L' 'key W' 'keyup Control_L'"
m:0x10 + b:2
"xte 'keydown Alt_L' 'key Right' 'keyup Alt_L'"
m:0x10 + b:9
"xte 'keydown Alt_L' 'key Left' 'keyup Alt_L'"
m:0x10 + b:8
@ryujaehun
ryujaehun / libinput-gestures.conf
Created August 17, 2018 04:23
elementary touch pad gestures config
gesture swipe up 4 xdotool key super+Up
gesture swipe down 4 xdotool key super+Down
gesture swipe left 4 xdotool key super+Right
gesture swipe right 4 xdotool key super+Left
gesture swipe left 3 xdotool key alt+Left
gesture swipe right 3 xdotool key alt+Right
gesture swipe up 3 xdotool key ctrl+Page_Down
gesture swipe down 3 xdotool key ctrl+Page_Up
#usage list-dh-tags <repo>
#example: docker-tag node
function docker-tag(){
wget -q https://registry.hub.docker.com/v1/repositories/$1/tags -O - | sed -e 's/[][]//g' -e 's/"//g' -e 's/ //g' | tr '}' '\n' | awk -F: '{print $3}'
}
# use UTF8
#set -g utf8
#set-window-option -g utf8 on
# make tmux display things in 256 colors
set -g default-terminal "screen-256color"
# set scrollback history to 10000 (10k)
set -g history-limit 100000
" vim-bootstrap b990cad
"*****************************************************************************
"" Vim-PLug core
"*****************************************************************************
if has('vim_starting')
set nocompatible " Be iMproved
endif
let vimplug_exists=expand('~/.vim/autoload/plug.vim')