Skip to content

Instantly share code, notes, and snippets.


Rafael Santiago rmxsantiago

View GitHub Profile
redhot2007 / System
Created Sep 5, 2019 — forked from vasanthk/System
System Design Cheatsheet
View System

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?
damianrath / gist:a1808246ed45277633368cb1448047aa
Last active Dec 20, 2019
Tech Youtubers, a decent list of noteworthy mainstream and lesser known channels
View gist:a1808246ed45277633368cb1448047aa
# These are Youtube channels providing content in areas I find interesting.
# Everything from tech news and reviews & recommendations to coding and more
# in-depth technical aspects of Linux and it's ecosystem and gaming. If I
# find additional noteworthy channels I will add them to this list.
# The list is unsorted and supplied as-is. If you have any recommendations,
# please look me up @damianrath and poke me in the eye. That said, eye-poking
# does not guarantee the recommendation being added to the list.
Jonalogy /
Last active Oct 28, 2020
Handling Multiple Github Accounts on MacOS

Handling Multiple Github Accounts on MacOS

The only way I've succeeded so far is to employ SSH.

Assuming you are new to this like me, first I'd like to share with you that your Mac has a SSH config file in a .ssh directory. The config file is where you draw relations of your SSH keys to each GitHub (or Bitbucket) account, and all your SSH keys generated are saved into .ssh directory by default. You can navigate to it by running cd ~/.ssh within your terminal, open the config file with any editor, and it should look something like this:

Host *
 AddKeysToAgent yes
 UseKeyChain yes
primaryobjects / index.js
Last active Jul 24, 2017
Dragon Hunt: An example game for Amazon Alexa running on chatskills.
View index.js
var chatskills = require('chatskills');
var readlineSync = require('readline-sync');
// Define an alexa-app
var app ='dragonhunt');
var dragonTypes = [ 'fire', 'ice', 'undead', 'skeleton', 'golden' ];
app.launch(function(req,res) {
// Generate a random dragon.
View gist:3b19447b304616f18657
var mediaJSON = { "categories" : [ { "name" : "Movies",
"videos" : [
{ "description" : "Big Buck Bunny tells the story of a giant rabbit with a heart bigger than himself. When one sunny day three rodents rudely harass him, something snaps... and the rabbit ain't no bunny anymore! In the typical cartoon tradition he prepares the nasty rodents a comical revenge.\n\nLicensed under the Creative Commons Attribution license\n",
"sources" : [ "" ],
"subtitle" : "By Blender Foundation",
"thumb" : "images/BigBuckBunny.jpg",
"title" : "Big Buck Bunny"
{ "description" : "The first Blender Open Movie from 2006",
"sources" : [ "" ],
magicznyleszek /
Last active Oct 5, 2020
Jekyll & Liquid Cheatsheet

Jekyll & Liquid Cheatsheet

A list of the most common functionalities in Jekyll (Liquid). You can use Jekyll with GitHub Pages, just make sure you are using the proper version.


Running a local server for testing purposes:

mattratleph /
Last active Oct 21, 2020 — forked from roothybrid7/
vimdiff cheat sheet

vimdiff cheat sheet

##git mergetool

In the middle file (future merged file), you can navigate between conflicts with ]c and [c.

Choose which version you want to keep with :diffget //2 or :diffget //3 (the //2 and //3 are unique identifiers for the target/master copy and the merge/branch copy file names).

:diffupdate (to remove leftover spacing issues)
:only (once you’re done reviewing all conflicts, this shows only the middle/merged file)
jordelver / gist:3139365
Created Jul 18, 2012
How to write an image file to an SD card under Mac OS X (for Raspberry Pi)
View gist:3139365

Find the SD card device

In this case, the SD card is /dev/disk4. DO NOT get this wrong or you may destroy all the data on the wrong disk/card/drive.

diskutil list

   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *160.0 GB   disk0
   1:                        EFI                         209.7 MB   disk0s1
jexchan /
Created Apr 10, 2012
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C ""
You can’t perform that action at this time.