Skip to content

Instantly share code, notes, and snippets.

View philographer's full-sized avatar
🎯
Focusing

Philographer philographer

🎯
Focusing
View GitHub Profile

AWS Credentials and Config

~/.aws/credentials

[default]
aws_access_key_id=keykeykeykeykeykeykeykeykeykeykeykeykeykeykeykey
aws_secret_access_key=access_keyaccess_keyaccess_keyaccess_key

~/.aws/config

@philographer
philographer / macro.md
Created May 8, 2017 18:37
IPhone Object-C Simulator Macro

IPhone Object-C Simulator Macro

#if TARGET_IPHONE_SIMULATOR
    // Simulator
#else
    // Device
#endif

Postgres

Postgres

sudo passwd root => 관리자 패스워드 설정

sudo su postgres => postgres 라는 이름으로 로그인

Postgres

Postgres

sudo passwd root => 관리자 패스워드 설정

sudo su postgres => postgres 라는 이름으로 로그인

@philographer
philographer / debug.md
Created July 16, 2017 18:08
Android DB(Sqlite) Debug

Android DB(Sqlite) Debug

adb exec-out run-as com.inbodyapp cat databases/inbodyapp.db > file

@philographer
philographer / .vimrc
Created November 5, 2017 02:04
vimrc config
"https://github.com/tpope/vim-pathogen
execute pathogen#infect()
syntax on
filetype plugin indent on
" show existing tab with 4 spaces width
set tabstop=4
" when indenting with '>', use 4 spaces width
set shiftwidth=4
" On pressing tab, insert 4 spaces
#!/usr/bin/python
import smbus
import time
import curses
bus = smbus.SMBus(1)
stdscr = curses.initscr()
@philographer
philographer / .gitignore_global
Created February 16, 2018 11:34
Global Git Ignore
.DS_Store
._.DS_Store
**/.DS_Store
**/._.DS_Store
.idea/
**/.idea/
#!/bin/bash
set -e # If Error then exit
# Result Print
cat << EOF
===========================================================
===========================================================
=================== Installation Started ==================
===========================================================
===========================================================
@philographer
philographer / bash-example.md
Created February 20, 2019 01:14
Bash Script
#!/bin/bash

BASE_PATH=$(dirname $0)
cd ${BASE_PATH}
BASE_PATH=`pwd`