Skip to content

Instantly share code, notes, and snippets.

View michel-carbone's full-sized avatar

Michel Carbone michel-carbone

View GitHub Profile
@michel-carbone
michel-carbone / recover mysql.db file on Windows.md
Last active May 9, 2023 09:44
recover mysql.db file on Windows

In Windows Event Viewer, error message is

mysqld: Table '.\mysql\db' is marked as crashed and should be repaired

Open shell from from control panel and start mysql with this command:

mysqld –-console –-skip-grant-tables –-skip-external-locking

Open another shell from control panel and repair database with this command:

@michel-carbone
michel-carbone / GitExtensions integration in VS2008.md
Last active January 27, 2020 09:59
GitExtensions integration in VS2008

Git integration in VS2008

New releases of GitExtentions does not support VS2008; last supported release should be v2.49.03 (to be confirmed)

Working solution

With Microsoft Visual Studio 2008 Version 9.0.30729.1 SP, GitExtensions has to be downgraded to version 2.48.05, otherwise the addins crash with error 8012101b... Deleting content of \AppData\Roaming\GitExtensions and \AppData\Local\GitExtensions does not solve the problem. Download at :

https://sourceforge.net/projects/gitextensions/files/v2.48.05/GitExtensions-2.48.05-Setup.msi/download

@michel-carbone
michel-carbone / git_submodules.md
Created August 29, 2019 12:20 — forked from gitaarik/git_submodules.md
Git Submodules basic explanation

Git Submodules basic explanation

Why submodules?

In Git you can add a submodule to a repository. This is basically a repository embedded in your main repository. This can be very useful. A couple of advantages of using submodules:

  • You can separate the code into different repositories.
@michel-carbone
michel-carbone / Update fork from upstream.md
Last active August 29, 2019 13:06 — forked from CristinaSolana/gist:1885435
Keeping a fork up to date #git #fork

Update a fork with changes in the upstream

1. Clone your fork:

git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git

git fetch upstream