Skip to content

Instantly share code, notes, and snippets.

View PedroPini's full-sized avatar

Pedro PedroPini

View GitHub Profile
@PedroPini
PedroPini / Add_Existing_Project_To_Git.md
Created August 24, 2024 14:47 — forked from alexpchin/Add_Existing_Project_To_Git.md
Add Existing Project To Git Repo

#Adding an existing project to GitHub using the command line

Simple steps to add existing project to Github.

1. Create a new repository on GitHub.

In Terminal, change the current working directory to your local project.

##2. Initialize the local directory as a Git repository.

git init
@PedroPini
PedroPini / Update remote repo
Created September 17, 2021 03:33 — forked from mandiwise/Update remote repo
Transfer repo from Bitbucket to Github
// Reference: http://www.blackdogfoundry.com/blog/moving-repository-from-bitbucket-to-github/
// See also: http://www.paulund.co.uk/change-url-of-git-repository
$ cd $HOME/Code/repo-directory
$ git remote rename origin bitbucket
$ git remote add origin https://github.com/mandiwise/awesome-new-repo.git
$ git push origin master
$ git remote rm bitbucket
@PedroPini
PedroPini / formToArray.js
Created July 16, 2021 01:09 — forked from AMBacelar/formToArray.js
since jQuery .serializeArray() ignores unchecked checkboxes and also doesn't return a true boolean, this code works fine in response
(function ($) {
$.fn.formToArray = function () {
var data = $(this).serializeArray();
$("form input:checkbox").each(function () {
data.push({ name: this.name, value: this.checked });
});
return data;
};
})(jQuery);
@PedroPini
PedroPini / iterm2-solarized.md
Created May 28, 2021 01:47 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k