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 [email protected] | |
# | |
# Updated on: 19.09.10 | |
#================ | |
# ref: https://github.com/bitnami/bitnami-docker-dokuwiki | |
# I'm tested in GCP and now running. |
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([email protected]) | |
# | |
# ============================= | |
# |
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 [email protected] | |
# 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 commit script | |
# | |
# Created 19.09.23([email protected]) | |
# | |
# ============================= |
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
" This file for [email protected] '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
// 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
# You need python3 | |
# Python mail bot | |
# 2017 - [email protected] | |
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
#!/usr/bin/env bash | |
###################################################### | |
# | |
# transmission finished torrent clear script. | |
# | |
# 20.01.12 [email protected] | |
###################################################### | |
# | |
# 포트 => 기본 포트는 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
# 맨 아래 붙여 넣을것. | |
# Paste to bottom. | |
export PS1="[`hostname`]\[\033[36m\]\u\[\033[m\]@\[\033[32m\] \[\033[33;1m\]\w\[\033[m\] (\$(git branch 2>/dev/null | grep '^*' | colrm 1 2)) \$ " |
OlderNewer