Sunday, December 25, 2016

git rebase -i --root master

Rebase up to the initial commit

Saturday, December 24, 2016

.vimrc example

syntax on
set tabstop=4 softtabstop=0 expandtab shiftwidth=4 smarttab

ls alias

alias ls='ls --color=auto'

OSX: alias ls='ls -G'

Sunday, December 11, 2016

git config --local core.quotepath false

for multibyte code file name

Friday, November 25, 2016

fuse-ext2 for Mac OS Sierra

Sunday, November 6, 2016

cygstart (OS X open command in Cygwin)

Add this in the end of bashrc

alias open='cygstart'


Wednesday, November 2, 2016

Cygwin XWin for larger dpis

$ run XWin -multiwindow -clipboard -dpi 150

Monday, October 31, 2016

Firefox from OS X terminal

- Shell script: /opt/local/bin/firefox

#!/usr/bin/env sh

/Applications/ "$@"

- Profile select on start up

/Applications/ -profilemanager

Friday, October 28, 2016

x11 cygwin application in terminal

1. Run startxwin

2. Set env variable DISPLAY

export DISPLAY=:0.0

3. Run X11 application

Thursday, October 27, 2016

Cygwin x64 on Windows 10?

Using direct connection results in various errors, such as run time and setup.ini rejection. Using Internet Explorer proxy settings may solve this issue.

Friday, October 7, 2016

OS X Atom symbolic link setup

sudo ln -s /Applications/ /opt/local/bin/atom

Tuesday, September 20, 2016

Custom bin path in .bashrc (*nix) or .profile (OS X)

# Set path for custom binaries
if [ -d "$HOMEBIN" ]; then
    export PATH="$HOMEBIN:$PATH"

Saturday, September 17, 2016

Amazon free private git repo

Tuesday, September 6, 2016

Friday, September 2, 2016

atom symbolic link in OS X

ln -s /Applications/ /usr/local/bin/atom

Thursday, September 1, 2016

Cygwin Git modified file inconsistency introduced by synchronization

When a repository is synchronized using cygwin unison through Windows network file sharing, the file modes would be corrupted. This is because of the incompatibility between the ways in which Windows and Cygwin look at the files. In this case, git would mark the files modified even if those files were not modified. Having git ignore the file modes can resolve this issue.

git config --local core.filemode false

Unison keep timestamp


Wednesday, August 17, 2016

OSMC (Raspberry pi) motion mmal

sudo modprobe bcm2835-v4l2

* Loading the module at boot time
echo bcm2835-v4l2 >> /etc/modules

chmod a+rw /dev/video0
v4l2-ctl --set-ctrl vertical_flip=1
v4l2-ctl --set-ctrl horizontal_flip=1

* Trim data cron example

5 5 * * * find /home/user/motion -mtime +7 -type f -delete
5 5 * * * find /home/user/motion -mtime +1 -type f -iname '*.jpg' -delete

Tuesday, April 12, 2016

VS2015 migration issue

Another solution:

// int main(cli::array^ args)
int APIENTRY wWinMain(_In_ HINSTANCE hInstance,
_In_opt_ HINSTANCE hPrevInstance,
_In_ LPWSTR    lpCmdLine,
_In_ int       nCmdShow)

Sunday, March 20, 2016

Saturday, March 5, 2016

Apply pull request into local

curl -L | git am


curl with redirection

curl -L

Friday, February 12, 2016

Python google client api auth error


1018 325i 3D 3D Printer 3M 500GB 7200RPM 747 850i A-GPS A-ha A8 ACCIDENT Actor Administrator Privilege ADOBE AdSense aGPS Airplane Algorithm Animation Ansur Antennagate API Apple AppleCare April Fool ARLuxrender Asian Assisted GPS ATT Audi Auto Bash Battleship BBC Bejeweled Bejeweled 3 Belkin Bike BITCOIN Black n Decker Blender Blog Blogspot Bluetooth BMW Bose Browser BTC Bump mapping Butter Butterface Butterfly C C++ C220 Calculator Calvin Klein CAR Cartoon Casshern CBR CBR600RR Cell CF CG Chair Chinese Chrome City Hunter CK Clie Clothe Coffee Coffee maker Color Comics Command Prompt Comment Commercial Compiler Computer Computer architecture Computer graphics Computer science Connex Content-Aware Fill Cowboy Bebop CRYPTOCURRENCY Cryptography CURL Cygwin Dabdate DB Decal Design Design thinking Development Digital Camera Digital communication Disaster Diskette Display Dog Dragon Ball Drama Drawing Driving Drying rack DSP Duck E-TRADE EA Earthquake Easter Egg eBay Economy Encryption ENGINEERING Error ESL etc ETH Ethernet expect F1 Face Fashion find Firefox Fish Flight Dynamics Floppy FON Food FREE Fun FWD G4 Game Gangsta Gangster GDAX GFX Ghost GIT Gizmo5 Golf Google Google Analytics Google Voice Gossip GPS Graphics Green Day GTI Gundam Gurren Lagann Hacking Hackintosh HANGOUTS HARRP HASP SRM HCI HDD Headset Helicopter Helio High-tech History Hobby Honda Horror HP HTS Humor Hyundai iBook iBook G4 IKEA Illustration Image processing information theory Initial D Intel Internet Intro Iomega iPad iPhone iPhone 4 iPhone theme iPod iPod Video Iron IU Jailbreak Japan Java Jawbone Jeremy Jordan Jet Jetpack K12KB KAO Ken Block Ketchup Keynote KORBIT Korea Korean Kpop KRAKEN Kumho Kuwait Language Laptop LaserJet LCD Leaf Lego Lenovo Leopard Lexus LG Library Light saber Lightning Linear algebra Linux login LTC LTE Luxrender Lyric M30 MAC MacBook Macintosh MACOS Macross Macross 2 Macross Plus Magic MapReduce MARKET Matlab Mazinger Z MDRCBB Mechanical engineering Memory MESSAGE Microsoft Microwave Miniature Mio MLT Mobile Mobile Phone Moped Motorcycle Motorola Mouse Movie MP4 Music Music video Network Nike NODE. JS Nonlinear Optimization NORWAY Novel Octave Odaiba Olleh OpenGL Opening Orthodontics Oslo OSX Outlook Parody PBRT pctools Peanut Performance Perl Phone Photoshop PHP Picture Pidgin Plane Playstation Poem Polar bear Pop Portuguese post Pragma Prank Call Printer Program PROGRAMMING Protocol PS PUMA Push Push Push II PushPush PwnageTool PYTHON QuickTime R8 RAM RAYTRACING RAZR RC Recording Report Robot Rock Rocket punch RSYNC Russel Crowe RWD Samsung Sandstorm Satellite Satellite Radio Scanner Science Score Script SD SDK Security sed Semantic Web Semiconductor SF Shell SHOW SIP Skype SK네트웍스 Slang Sleeve Soccer SOFTWARE Sonata Song Sounddock Soundgarden Space Spyshot SQL SSD ssh sshd Stanford bunny StarTrek Starwars Stethoscope Steve Jobs Sticker Stock Storage system Subaru Sun Super Deformed T-Shirt Taekwon V TALK TBD Tease Technology Teeth Telecommunication Tennis tethering Textfree TH55 The Perfect Storm Theme TI-89 TIBURON Tires Titanium Tom Mabe Tooth Tooth Explorer Torrent Toshiba Toshiba Power Saver Toy TPS Transformer Tsunami TV TV shows Ubuntu UC Ultrabase UMN Universal Century Unix Unlock USB Used Video Virtuosity Vista Visual Studio VISUALC++ VoIP VW WALLET Wallpaper Wanna Girl Wardriving Web 3.0 Wedding WiFi Wild Willy Windows Windows 7 Windows Vista Wireless WireShark WMV WOW WPS WRE54G X61 xargs XBOX XCode Yamato YF Youtube Z Gundam Zeliard Zuma 김간지 김현국 미국여자 방배추 뽀로로 위성 라디오 유희열 일본여자 조까를로스 주역 천자문 周易 天字文 德經 老子

Blog Archive