2015년 3월 8일 일요일

Git (version control system) - commands

//create git
git config --global user.name "Your Name"
git config --global user.name "GraySH"
git config --global user.email res18zt5@gmail.com
git config --list
git remote -v

//set remote address for git
git remote add origin git@github.com:GraySH/CSH_CODE_WORRIOR.git
git remote set-url origin git@github.com:GraySH/CSH_CODE_WORRIOR.git

//commands
git status
git branch


//Adding files
git add *
git commit -m "Version 000"

//replace local changes
git fetch origin
git reset --hard origin/master
##
git checkout -- filename


//create branch local
git checkout -b V_000

//delete branch local
git branch -d the_local_branch


//adding branch to remote server
git push  remote-name branch-name
git push origin V_001

//Delete branch from remote server
git push remote-name :branch-name
git push origin :V_000

2014년 11월 7일 금요일

grub windows 7 and 8 dual boot.

http://askubuntu.com/questions/135272/how-to-boot-into-windows-7-when-grub-is-installed-in-the-windows-partition

A possible work-around to boot Windows 7

Below is a suggestion for editing your GRUB boot commands which may allow you to boot Windows 7. I am not sure this will work, but it seems worth trying.
Currently your grub.cfg uses the GRUB boot commands below to boot Windows 7.
menuentry "Windows 7 (loader) (on /dev/sda1)" --class windows --class os {
    insmod part_msdos
    insmod ntfs
    set root='(hd0,msdos1)'
    search --no-floppy --fs-uuid --set=root 1EA0019AA0017A13
    chainloader +1
}
I am suggesting you try changing this and use these commands instead.
menuentry "Windows 7 (loader) (on /dev/sda1)" --class windows --class os {
    insmod part_msdos
    insmod ntfs
    insmod ntldr
    set root='(hd0,msdos1)'
    search --no-floppy --fs-uuid --set=root 1EA0019AA0017A13
    ntldr ($root)/bootmgr
}
Here are the steps to do this.
  1. Boot your system to the GRUB menu.
  2. Select (highlight) the GRUB boot menu entry Windows 7 (loader) (on /dev/sda1).
  3. Press e to edit the GRUB boot commands for Windows 7.
  4. Make two changes to this list of commands as illustrated in the menuentry above.
    • Add the command insmod ntldr
    • Change the command
      chainloader +1
      to
      ntldr ($root)/bootmgr
  5. Press either Ctrl+X or F10 to boot using these edited commands.
Note 1:
If the above work-around succeeds in loading the Windows 7 boot menu, then you could make it semi-persistent by
  1. Using sudo to edit the file /etc/grub.d/40_custom and add the second, modified menuentry shown above. (If you do this, I'd also suggest you change the title of this "custom" entry.)
  2. Run the command sudo update-grub to update /boot/grub/grub.cfg to include your customized entry. (It will be on the bottom of the GRUB menu when you boot.)
I would view the suggestion above as only a partly-baked solution. A better solutions is to restore the Windows VBR to the Windows partition without also destroying the ability of GRUB to boot.
I think ... but am not 100% sure ... that the Windows recovery command bootsect can be used to do this. If you want to risk it, one possible way to do this is outlined below.
  • When booting Windows, press F8 to bring up the Advanced Boot Options menu.
  • Select the Repair Your Computer entry.
  • Walk through the next windows until you reach System Recovery Options.
  • Select Command Prompt
  • Run the command bootsect /nt60 C:
But you might also want to wait a bit and see what other answers you get to your question before you take the risk of trying the above.
Note 2:
While searching for other things, I ran across two other questions on AskUbuntu which are related to your problem.
  1. Windows 7 won't boot after installing Ubuntu 11
  2. Windows 7 doesn't boot after Ubuntu install
I'm not sure how much help these questions provide. The answer to the second question was to use the command bootrec /fixboot to restore the VBR for the Windows partition. My understanding from that question was that using the bootrec /fixboot command solved the problem.
But the second question insists that bootrec /fixboot did not solve the problem.
(Beats the heck out of me as to what might be going on there.)

2014년 9월 20일 토요일

extend trial period of windows 8.1 enterprise

Re: 'Windows is in notification mode' message

Hi, Actually I have found another solution : just go to cmd.exe, open as admistrator and then type in : "slmgr -rearm" and restart computer.

It give another delay, and it is repeatable to inifnity.

I'll try your way too, thought. Thanks!

2014년 8월 28일 목요일

How to freeze date/time in VMWARE

https://forums.virtualbox.org/viewtopic.php?t=11234


How to freeze date/time in VirtualBox?




this can be achived by editing the *.vmx file and adding:

time.synchronize.continue = "FALSE"
time.synchronize.restore = "FALSE"
time.synchronize.resume.disk = "FALSE"
time.synchronize.shrink = "FALSE"
rtc.startTime = 1199206860
time.synchronize.tools.startup = FALSE


UTC seconds calculator


http://www.mbari.org/staff/rich/utccalc.htm

2014년 8월 9일 토요일

Keep video full screen with multiple monitors (Firefox)

2012-11-24: Browser tip: Keep video full screen with multiple monitors (Firefox)

Posted at 2012-11-24 22:46:28 by SHD
If you have multiple monitors and use Firefox to view a HTML5 video (using the tag, such as in the YouTube HTML5 player) or perhaps have a WebGL game that runs full-screen, you will find that the moment you click away to another window on the other monitor, Firefox leaves full-screen mode. This makes it completely useless for watching video while doing something else. There is a fix for it.
Keep video full screen on a secondary monitor.
In Firefox, go to about:config, find a property called full-screen-api.exit-on-deactivate and set it to false (which you can do by doubleclicking on it). No need to restart the browser. It'll keep your full-screen content full-screen. Quite why this isn't the default is beyond me. Of course, to get out of full-screen mode, just press Esc.
Source: Bugzilla Bug #724554.

Comments

Thank you!
Posted at 2013-01-22 15:29:46 by Brad
Thanks a lot for this, way easier than lifehacker's modified dll (that can always prove to be a virus). Actually on my setup the property either was not visible or wasn't there at all, so I right clicked, created it as a boolean and set it to false... and it did the trick.

Nice find and huge thanks.
Cheers.

sublime close without confirmation

  Close without confirm   Yes, you can just write a plugin to set the view as scratch and close it. Then create a keybinding for that c...