Skip to content

Instantly share code, notes, and snippets.

View dobladov's full-sized avatar
📺
Streaming!

Daniel Doblado dobladov

📺
Streaming!
View GitHub Profile
@dobladov
dobladov / git-temporary-ignore.md
Created July 6, 2022 09:35 — forked from sloanlance/git-temporary-ignore.md
git: A couple ways to temporarily ignore changed or new files without altering .gitignore.

There are times notifications aren't wanted about either a changed repo file or a new file that needs to be added to the repo. However, adding the name of the file to .gitignore might not be a good option, either. For example, locally-generated files that other users aren't likely to generate (e.g., files created by an editor) or files of experimental test code might not be appropriate to appear in a .gitignore file.

In those cases, use one of these solutions:

  1. If the file is a changed repo file

    Use the command:

    git update-index --assume-unchanged "$FILE"

@dobladov
dobladov / setup-gh-cli-auth-2fa.md
Created April 13, 2020 06:19 — forked from ateucher/setup-gh-cli-auth-2fa.md
Setup git on the CLI to use 2FA with GitHub

These are instructions for setting up git to authenticate with GitHub when you have 2-factor authentication set up. This authentication should be inherited by any GUI client you are using. These are intentionally brief instructions, with links to more detail in the appropriate places.

  1. Download and install the git command-line client (if required).

  2. Open the git bash window and introduce yourself to git (if required):

    git config --global user.name 'Firstname Lastname'
    git config --global user.email 'firstname.lastname@gov.bc.ca'
    
@dobladov
dobladov / arg.md
Created December 16, 2016 10:03 — forked from nucular/arg.md
Steins;Gate ARG

Steins;Gate ARG

The email address from which Okabe received the static video (sg-epk@jtk93.x29.jp) replies to blank mails with the following message:

Your mail concerning "[the subject of your email]"

sg-epk@jtk93.x29.jp はこの世界線に存在していません. [It does not exist in this world line.]
I found the multiple options confusing, so I decided to test all of them to see exactly what they do. I'm using VirtualBox 4.2.16-r86992 and Vagrant 1.3.3.
I created a directory called nametest and ran vagrant init precise64 http://files.vagrantup.com/precise64.box to generate a default Vagrantfile. Then I opened the VirtualBox GUI so I could see what names the boxes I create would show up as.
1) Default Vagrantfile
Vagrant.configure('2') do |config|
config.vm.box = "precise64"
config.vm.box_url = "http://files.vagrantup.com/precise64.box"
end