Skip to content

Instantly share code, notes, and snippets.

View mrveress's full-sized avatar
🍋
Just a lemon

Adam Petrovich mrveress

🍋
Just a lemon
View GitHub Profile
@matthewjberger
matthewjberger / instructions.md
Last active March 9, 2026 18:36
Install a nerd font on ubuntu

1.) Download a Nerd Font

2.) Unzip and copy to ~/.fonts

3.) Run the command fc-cache -fv to manually rebuild the font cache

@gauravbarthwal
gauravbarthwal / Multi-Part zip extraction in Ubuntu.txt
Last active December 11, 2025 16:09
How to extract multi-part .zip, .z01, .z02 files in ubuntu
Download/Copy all related *.zip files in one directory.
Open terminal and change to that directory which has all zip files.
Enter command zip -s- FILE_NAME.zip -O COMBINED_FILE.zip
Enter unzip COMBINED_FILE.zip
@oanhnn
oanhnn / using-multiple-github-accounts-with-ssh-keys.md
Last active March 13, 2026 08:37
Using multiple github accounts with ssh keys

Problem

I have two Github accounts: oanhnn (personal) and superman (for work). I want to use both accounts on same computer (without typing password everytime, when doing git push or pull).

Solution

Use ssh keys and define host aliases in ssh config file (each alias for an account).

How to?

  1. Generate ssh key pairs for accounts and add them to GitHub accounts.
@alexpchin
alexpchin / Setting_upa_new_repo.md
Last active February 22, 2026 15:28
Create a new repository on the command line

Setting up a new Git Repo

##Create a new repository on the command line

touch README.md
git init
git add README.md
git commit -m "first commit"

git remote add origin git@github.com:alexpchin/.git

@cobyism
cobyism / gh-pages-deploy.md
Last active February 17, 2026 22:18
Deploy to `gh-pages` from a `dist` folder on the master branch. Useful for use with [yeoman](http://yeoman.io).

Deploying a subfolder to GitHub Pages

Sometimes you want to have a subdirectory on the master branch be the root directory of a repository’s gh-pages branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master branch alongside the rest of your code.

For the sake of this example, let’s pretend the subfolder containing your site is named dist.

Step 1

Remove the dist directory from the project’s .gitignore file (it’s ignored by default by Yeoman).