Skip to content

Instantly share code, notes, and snippets.

View vikrantsingh47's full-sized avatar

vikrant singh vikrantsingh47

View GitHub Profile
@clarkwinkelmann
clarkwinkelmann / Blender.desktop
Created April 2, 2015 18:54
Blender desktop file, compatible with "open with..." and prevents duplication of icon in launcher
[Desktop Entry]
Name=Blender
Comment=To place in /usr/share/applications/ or $HOME/.local/share/applications/
Exec=/PATH/TO/BLENDER/FOLDER/blender %U
Terminal=false
Type=Application
Encoding=UTF-8
Icon=/PATH/TO/BLENDER/FOLDER/icons/scalable/apps/blender.svg
StartupNotify=true
StartupWMClass=Blender
@soul-wish
soul-wish / countries.html
Last active January 31, 2023 14:04
HTML Select List Of Countries (english and russian versions, sorted by alphabet)
<select name="countries">
<option value="United States">United States</option>
<option value="United Kingdom">United Kingdom</option>
<option value="Afghanistan">Afghanistan</option>
<option value="Albania">Albania</option>
<option value="Algeria">Algeria</option>
<option value="American Samoa">American Samoa</option>
<option value="Andorra">Andorra</option>
<option value="Angola">Angola</option>
<option value="Anguilla">Anguilla</option>
@adamjohnson
adamjohnson / publickey-git-error.markdown
Last active May 10, 2024 10:00
Fix "Permission denied (publickey)" error when pushing with Git

"Help, I keep getting a 'Permission Denied (publickey)' error when I push!"

This means, on your local machine, you haven't made any SSH keys. Not to worry. Here's how to fix:

  1. Open git bash (Use the Windows search. To find it, type "git bash") or the Mac Terminal. Pro Tip: You can use any *nix based command prompt (but not the default Windows Command Prompt!)
  2. Type cd ~/.ssh. This will take you to the root directory for Git (Likely C:\Users\[YOUR-USER-NAME]\.ssh\ on Windows)
  3. Within the .ssh folder, there should be these two files: id_rsa and id_rsa.pub. These are the files that tell your computer how to communicate with GitHub, BitBucket, or any other Git based service. Type ls to see a directory listing. If those two files don't show up, proceed to the next step. NOTE: Your SSH keys must be named id_rsa and id_rsa.pub in order for Git, GitHub, and BitBucket to recognize them by default.
  4. To create the SSH keys, type ssh-keygen -t rsa -C "your_email@example.com". Th