Skip to content

Instantly share code, notes, and snippets.


vetras vetras

Block or report user

Report or block vetras

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
vetras /
Created Jun 20, 2018
chocolatey useful commands

Chocolatey cheat sheet

Update choco itself

$ choco upgrade chocolatey

Update a package

 $ choco upgrade pacagename
View VerifyingBlockstack.txt
Verifying that "" is my Blockstack ID.
View jquery promises example
// see this gist as well:
// create the "promises" objects (deferred objects)
var address = $.ajax({});
var tweets = $.ajax({});
var facebook = $.ajax({});
// wait for all to be done
$.when(address, tweets, facebook).then(function (addressResult, tweetsResult, facebookResult) {
/* all solved and the result is on each function argument */
vetras /
Last active Feb 4, 2019
Programming perls I encountered myself over the years. Epic mistakes to remember. Things I've seen that cannot be unseen.

Wall of shame


Throughout life as a software developer you see a lot of gems. Code gems.

Things that are well done, things that are not well done and things that are just plain wrong.

Programming perls I encountered myself over the years. Mainly the bad ones.

vetras / git.config
Last active Aug 29, 2017
Template for git config files
View git.config
# About line endings on windows:
name = John Doe
email =
vetras /
Last active Oct 2, 2019
List of Usefull Git commands

Git Commands

This document serves the purpose of listing some GIT commands that I find hard to remember, hard to find information about, hard to use or any combination thereof.

How to use this document

The best way to use this is to CTR+F you way trought it.

vetras /
Created Feb 9, 2016
verifying keybase identity

Keybase proof

I hereby claim:

  • I am vetras on github.
  • I am vetras ( on keybase.
  • I have a public key ASCjwL9xKpMa0_hVF72KyxyLGDHl_dKoOVzpb1BQr3dwLgo

To claim this, I am signing this object:

vetras / bits.c
Last active Jul 20, 2016
Play with bits in C
View bits.c
Set bit X to 1 : number |= 1 << x;
Set bit X to zero : number &= ~(1 << x);
Toggle bit X : number ^= 1 << x;
Checking the value of bit X : value = number & (1 << x);
You can’t perform that action at this time.