Skip to content

Instantly share code, notes, and snippets.

View dongkwan-kim's full-sized avatar
🎯
Focusing

Dongkwan Kim dongkwan-kim

🎯
Focusing
View GitHub Profile
@dongkwan-kim
dongkwan-kim / bashrc_pintos.sh
Last active September 4, 2017 07:31
bashrc for pintos
# for git
alias gitpintos="git clone [email protected]:todoaskit/pintos.git"
# for pinto settings
alias pintosrun="pintos -v --bochs -- -q run"
# indivisual test
result() {
make
echo ""
@dongkwan-kim
dongkwan-kim / pintos-test-repeat.sh
Last active May 21, 2017 02:09
test-repeat shell script for pintos
#! /bin/bash
# make sure there's ./testresult directory
# For individual test: $ bash test.sh testdir/testname
# For whole test: $ bash test.sh
test_all() {
for i in $(seq 1 10)
do
make clean > testresult/dummy.txt
make > testresult/dummy.txt
@dongkwan-kim
dongkwan-kim / my_uwsgi.ini
Created February 25, 2017 11:21
my_uwsgi.ini with ubuntu, django
[uwsgi]
chdir = /home/ubuntu/(.*)
module = (.*).wsgi
home = /home/ubuntu/env
master = true
processes = 10
socket = /home/ubuntu/(.*)/(.*).sock
@dongkwan-kim
dongkwan-kim / my_nginx.conf
Last active February 25, 2017 11:22
my_nginx.conf with ssl
upstream django {
server unix:///home/(.*)/(.*).sock;
}
# configuration of the server
server {
listen 80;
listen 443 ssl;
server_name (.*);
charset utf-8;
wget https://github.com/google/googletest/archive/release-1.7.0.tar.gz
tar xf release-1.7.0.tar.gz
cd googletest-release-1.7.0
cmake .
make
cp -a include/gtest ../KENSv3/include
cp -a libgtest* ../KENSv3/lib
cd ..
rm release-1.7.0.tar.gz
rm -rf googletest-release-1.7.0/