This is a general step by step of my Git workflow. I know this is an overkill for one person operation but I guess I need to prepare myself in working as a team. The idea is using branch for every changes I want to make and merge back to master. I have used this in multiple laptop and developing/fixing different functionalities in parallel (yes I know it sounds weird).
So far so good but I have not really tested it for working with people. So here is the recipe:
Type this in the cmd window to set it (or put it inside a .bat files):
I use this to download python module via PIP every now and then.
the one I used
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
# User-specific files
# Build results
# Visual C++ cache files
# Visual Studio profiler
# ReSharper is a .NET coding add-in
# Installshield output folder
# DocProject is a documentation generator add-in
# Click-Once directory
# Office Temp Files
Generated_Code #added for RIA/Silverlight projects
# Backup & report files from converting an old project file to a newer
# Visual Studio version. Backup files are not needed, because we have git
This following code is to display a long string of XML into a textfield with proper indentation and such. I grab it from one of the websites. Continue reading
In some cases, I want to change git origin URL. Say when switching from SSH to HTTPS protocol. Easiest way to do so is by changing origin information inside .git/config
$ git config --global http.proxy http://proxyuser:email@example.com:8080
$ git config --system http.sslcainfo /bin/curl-ca-bundle.crt
$ git remote add origin https://mygithubuser:firstname.lastname@example.org/repoUser/repoName.git
$ git push origin master
proxyuser= the proxy user I was assigned by our IT dept, in my case it is the same windows user I use to log in to my PC, the Active Directory user
proxypwd= the password of my proxy user proxy.server.com:8080 = the proxy name and port, I got it from Control Panel, Internet Options, Connections, Lan Settings button, Advanced button inside the Proxy Server section, use the servername and port on the first (http) row.
mygithubuser = the user I use to log in to github.com
mygithubpwd = the password for my github.com user
repoUser = the user owner of the repo
repoName = the name of the repo
Prerequisite: Git 1.7 and above
I got this information from http://markashleybell.com/articles/portable-git-windows-setting-home-environment-variable. Visit his blog. Quite neat.
Anyway, I want to create portable git environment where I can continue my work within different environment. Portable git can do the trick. To bad it is tied to user directory for SSL information.
The easiest way to do this is to create folder home under
(you can change ‘aditya’ with your username and ‘git’ with your git portable folder home)
Followed by adding…
For git-bash.bat user
above the line
# normalize HOME to unix path
HOME="$(cd "$HOME" ; pwd)"
For git-cmd.bat user
@if not exist "%HOME%" @set HOME=%HOMEDRIVE%%HOMEPATH%
@if not exist "%HOME%" @set HOME=%USERPROFILE%
Recently I was attempting to follow tutorial on python from LearnPythonTheHardWay.org (yes the name explains it pretty well). I am currently on exercise 37 where I need to review list of Python symbols among many other things. I decided to go slightly beyond what is required and jot down some snippets code too. Here are they Continue reading
Booking via online travel agents might be convenient and easy. Not to mention, their names always popped up on the first few rows of popular search engine. However, those online travel agents might not , for whatever reasons, list regional airlines in their sites which in all fairness cheaper than full fledged carrier. This post will list budget airlines that serve routes between Singapore and Jakarta as well as around the South East Asia region. You can definitely book those airlines via their own website and in many cases cheaper than what online travel agent offers.
Many people mistakenly believe the name of the last photo (e.g. 101-4511 is 14511st pic) is the indication of the shutter count of the camera. While it might be true most of the time, those number is not accurate as the software can be modified. Finding the REAL actual actuation or shutter count from Canon G10 can be done with a bit of effort.