Skip to content

Instantly share code, notes, and snippets.

View vetras's full-sized avatar
🤠

Carlos Campos vetras

🤠
View GitHub Profile
//
// 2022-11-10
// sample api response of an application we were looking into integrating with.
// we didn't.
//
//
{
"user": {
"estado_civil": [],
@vetras
vetras / chocolatey.md
Created June 20, 2018 15:51
chocolatey useful commands

Chocolatey cheat sheet

Update choco itself

$ choco upgrade chocolatey

Update a package

 $ choco upgrade pacagename
Verifying that "vetras.id" is my Blockstack ID. https://onename.com/vetras
// 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 February 4, 2019 12:42
Programming perls I encountered myself over the years. Epic mistakes to remember. Things I've seen that cannot be unseen.

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 August 29, 2017 11:25
Template for git config files
#
# 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 May 27, 2021 13:24
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 through it.


@vetras
vetras / keybase.md
Created February 9, 2016 14:34
verifying keybase identity

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 July 20, 2016 11:26
Play with bits in 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);