Best Roast For Cold Brew And Coffee Beans For Automatic Espresso

A cold beer is suddenly everywhere. Sure, you’ve found it in brewed coffee like Starbucks and Peet’s Coffee for a while, but now it’s available as a drink in traditional stores, at least here in the…

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




How to make a snake that eats all of your GitHub contribution graph.

Of course, not literally otherwise that would have been the end of the world for you and me.

So while searching for a source code for a project, I stumbled upon a GitHub profile which was pretty neatly maintained. Apart from the GitHub stats and contributions the person had, the most intriguing aspect of his profile which got my eyes glued was the snake eating all of his contributions and the kid inside me decided that this has to be a part of my profile too.

So here I am, to help all those people whose eyes light up when they see things like this.

Although, it’s not that difficult but it took me some time to figure out an issue that I was facing. I have shed some light on that part in the latter half.

For now, without further adieu, let’s do this…

First thing first: For this to happen, we will have to make a repository with our username. For that, you will have to . . .

Click on your profile picture in the top right corner → Your repositories

→ New → enter your username under “Repository name”.

Once you do, GitHub will tell you it’s a special repository like the person who is reading this. :)

You will find an option to check “Add a README file” option. Do that.

then click [Create repository].

Once the repository is created, go to the repository, click on [Add File] →

[Create new file]

Enter .github (use / to move to the column) → workflows → then snake.yml

Copy and paste the below code into the snake.yml file.

It should look somewhat like this:

Note: Don’t forget to change your username. Just change the yellow part (line number 17).

Click on [Commit Changes].

Go to actions and on the left side, you should see “Generate Datas” option has been enabled, click on that…

… you will see “Run Workflow (the grey one) on the right side. Click on that and after that → click on “Run workflow” (the green one). Once you do this, you will see a green tick against

“Generate Datas”.

Note: In case your workflow doesn’t work or you get this error “Permission to git denied to github-actions[bot]”. Click here, sir!

Once this is done, an SVG file will be created in the output branch.

How to get there? Click on code → main → output

It should look somewhat like this.

Note: We have to change the branch from main to output.

Now, go to your README.md file. Copy and paste the below code it.

(I had pasted it at the end but you can paste it wherever you want. The eating snake will appear where you command it to be.

Before committing to changes, click on [Preview] to see the changes.

and Voila!!!

I was in the same place. I felt bad too.

The good news is, it has been taken care of.

Now, go to your special repository and click on settings, after that under actions, click on General:

Down below, you will find workflow permissions, change that to “Read and write permissions”.

Save it and commit changes.
Go to your profile and the snake should appear now.

Would like to complete this blog with a quote:

If you happen to spare some time for yourself, think about it. Cheers!!

Add a comment

Related posts:

Learn about the various kinds of bone fractures

There are various kinds of bone fractures, and each kind can differ slightly from the others. Fracture where the bone is visible outside the leg after breaking through the skin. Or the bone is…

Thai restaurant las vegas

Check out our menu where we feature classic Thai dishes such as Pad Thai and Spicy Basil. We also cook different foods with more modern savors such as the Beef Salad and Curry Puff. Experience the…

What Causes Shaky Hands?

Arthritis is a term used to describe a group of conditions that affect the joints, bones, and muscles. It can be caused by a number of different factors, including age, genetics, and lifestyle…