Skip to content

Instantly share code, notes, and snippets.

@curtkim
curtkim / index.md
Last active April 17, 2021 05:17
ubuntu install

개요

nvidia driver install : https://www.linuxbabe.com/ubuntu/install-nvidia-driver-ubuntu-18-04
vnc server : https://www.cyberciti.biz/faq/install-and-configure-tigervnc-server-on-ubuntu-18-04/
ssh server : sudo apt install openssh-server

mount 하기

sudo blkid

@curtkim
curtkim / Dockerfile
Last active August 7, 2019 05:56
openMVS dockerfile
FROM ubuntu:16.04
#Prepare and empty machine for building:
RUN apt-get update -qq && apt-get install -qq
RUN apt-get -y install build-essential \
git \
mercurial \
cmake \
libpng-dev \
libjpeg-dev \
CPPFLAGS="-I$(brew --prefix zlib)/include" pyenv install -v 3.7.0
pip install --ignore-installed futures
{
"bip": "10.252.0.1/16"
}
conda create -n p2 python=2.7
conda activate p2
pip install --upgrade pip setuptools
pip install --upgrade python-openstackclient
@curtkim
curtkim / a
Created July 31, 2018 04:36
gradle
// downloaded jar
compile fileTree(dir: 'ext', include: '*.jar')
// sibling project
testCompile project(':stream-test')
@curtkim
curtkim / a.sql
Created March 22, 2018 01:00
greenplum sql
SELECT
relname as "Table",
pg_size_pretty(pg_total_relation_size(relid)) As "Size",
pg_size_pretty(pg_total_relation_size(relid) - pg_relation_size(relid)) as "External Size"
FROM pg_catalog.pg_statio_user_tables
where schemaname = '' and relname = ''
conda env create --file enviornment.yml
conda activate p3
conda install ipython
conda env export > environment2.yml
conda deactivate
import com.mashape.unirest.http.HttpResponse
import com.mashape.unirest.http.JsonNode
import com.mashape.unirest.http.Unirest
import com.mashape.unirest.http.async.Callback
import com.mashape.unirest.http.exceptions.UnirestException
import java.util.concurrent.CountDownLatch
import java.util.concurrent.Future
int count = 100
db.gates.insert(
{
boundary : { type: "Polygon", coordinates: [ [ [ 127, 37] , [127.1 , 37] , [127 , 37.1] , [ 127, 37] ] ] },
gate : {type: "Point", coordinates:[127, 37] }
}
)
db.gates.createIndex( { boundary : "2dsphere" } )
db.gates.find( { boundary :
{ $geoWithin :