Skip to content

Instantly share code, notes, and snippets.

View jessicamilene's full-sized avatar
👀

Jéssica Machado jessicamilene

👀
View GitHub Profile
@nasirkhan
nasirkhan / git command.markdown
Last active May 12, 2022 03:17
`git` discard all local changes/commits and pull from upstream

git discard all local changes/commits and pull from upstream

git reset --hard origin/master

git pull origin master

@JamesMGreene
JamesMGreene / gitflow-breakdown.md
Last active July 19, 2024 01:24
`git flow` vs. `git`: A comparison of using `git flow` commands versus raw `git` commands.

Initialize

gitflow git
git flow init git init
  git commit --allow-empty -m "Initial commit"
  git checkout -b develop master

Connect to the remote repository

@ipepe
ipepe / install-chrome-headless.sh
Last active June 12, 2024 13:34
Installing headless chrome on Ubuntu.
#!/bin/bash
# from https://chromium.woolyss.com/
# and https://gist.github.com/addyosmani/5336747
# and https://chromium.googlesource.com/chromium/src/+/lkgr/headless/README.md
sudo apt-get update
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:canonical-chromium-builds/stage
sudo apt-get update
sudo apt-get install chromium-browser
chromium-browser --headless --no-sandbox http://example.org/
@jessicamilene
jessicamilene / AsyncMethods.md
Last active November 10, 2021 14:46
[C#] Asynchcronous methods execution examples

Asynchronous Methods - C# Examples

Below we have a synchronous method that counts to 5.

static void Main(string[] args)
{
  Console.WriteLine("START");
  Count();
  Console.WriteLine("END");
  Console.ReadKey();
@jessicamilene
jessicamilene / add-project-to-git.md
Last active November 15, 2021 14:42
Adding an existing project to GitHub (command line)

Git

How to add your local code to a git repository?

  1. Create a repository on GitHub and save the HTTPS for later
  2. Open a command line on the root folder of your project
  3. Init a local repository git init
  4. Stage all the files git add .
  5. Commit git commit -m "First commit"
  6. Associate the Gii repository git remote add origin [YOUR_REPO_URL]