This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| ###################################################### | |
| # | |
| # transmission finished torrent clear script. | |
| # | |
| # 20.01.12 paran_son@outlook.com | |
| ###################################################### | |
| # | |
| # 포트 => 기본 포트는 9091이며, 따로 지정한 경우는 입력 | |
| # 아이디 => rpc 접속 아이디 입력 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # You need python3 | |
| # Python mail bot | |
| # 2017 - paran_son@outlook.com | |
| import smtplib | |
| def prompt(prompt): | |
| return input(prompt).strip() | |
| fromaddr = '보내는이 주소' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // r, g, b 값은 0 ~ 1 사이 | |
| // h = [0,360], s = [0,1], v = [0,1] | |
| // if s == 0, then h = -1 (undefined) | |
| void RGBtoHSV( float r, float g, float b, float *h, float *s, float *v ) | |
| { | |
| float min, max, delta; | |
| min = MIN( r, g, b ); | |
| max = MAX( r, g, b ); | |
| *v = max; // v | |
| delta = max - min; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| " This file for paran_son@outlook.com 's vimrc setting file | |
| " Last updated 19.11.13 | |
| if has("syntax") | |
| syntax on | |
| endif | |
| set autoindent " auto indent | |
| set cindent " for c language indent | |
| set nu " linenumber |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Compile | |
| g++ -I/usr/local/include/opencv4 -O0 -g3 -Wall -c -fmessage-length=0 -no-pie -v -MMD -MP -MF"main.d" -MT"main.o" -o "main.o" "../main.cpp" | |
| # Linking | |
| g++ -L/usr/local/lib -o "opencv_homework1" ./main.o -lopencv_core -lopencv_imgproc -lopencv_imgcodecs -lopencv_highgui -lopencv_ml -lopencv_videoio -lopencv_video -lopencv_features2d -lopencv_calib3d -lopencv_objdetect -lopencv_flann |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /bin/bash | |
| # ============================= | |
| # | |
| # Hugo fast commit script | |
| # | |
| # Created 19.09.23(paran_son@outlook.com) | |
| # | |
| # ============================= |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Tensorflow version check & upgrade | |
| # Written by paran_son@outlook.com | |
| # Updated 19.09.23 | |
| %%bash | |
| var=`python3 -c 'import tensorflow as tf; print(tf.__version__)'` | |
| if [ "${var:0:1}" = "2" ];then | |
| echo "version2" | |
| else | |
| echo "version1" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /bin/bash | |
| # ============================= | |
| # | |
| # Hugo fast write script | |
| # | |
| # Created 19.09.17(paran_son@outlook.com) | |
| # | |
| # ============================= | |
| # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| #================ | |
| # Script on paran_son@outlook.com | |
| # | |
| # Updated on: 19.09.10 | |
| #================ | |
| # ref: https://github.com/bitnami/bitnami-docker-dokuwiki | |
| # I'm tested in GCP and now running. |
NewerOlder