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
vetras / chocolatey.md
Created Jun 20, 2018
chocolatey useful commands
View chocolatey.md

Chocolatey cheat sheet

Update choco itself

$ choco upgrade chocolatey

Update a package

 $ choco upgrade pacagename
View VerifyingBlockstack.txt
Verifying that "vetras.id" is my Blockstack ID. https://onename.com/vetras
View jquery promises example
// see this gist as well: https://gist.github.com/sergio-fry/3917217
// 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
vetras / WallOfShame.md
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.
View WallOfShame.md

Wall of shame

Introduction

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
vetras / git.config
Last active Aug 29, 2017
Template for git config files
View git.config
#
# About line endings on windows:
# https://help.github.com/articles/dealing-with-line-endings/
#
[user]
name = John Doe
email = jdoe@example.com
@vetras
vetras / git_commands.md
Last active Jun 11, 2019
List of Usefull Git commands
View git_commands.md

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
vetras / keybase.md
Created Feb 9, 2016
verifying keybase identity
View keybase.md

Keybase proof

I hereby claim:

  • I am vetras on github.
  • I am vetras (https://keybase.io/vetras) on keybase.
  • I have a public key ASCjwL9xKpMa0_hVF72KyxyLGDHl_dKoOVzpb1BQr3dwLgo

To claim this, I am signing this object:

@vetras
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.