Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Rafael Santiago rmxsantiago

🎯
Focusing
Block or report user

Report or block rmxsantiago

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
@redhot2007
redhot2007 / System Design.md
Created Sep 5, 2019 — forked from vasanthk/System Design.md
System Design Cheatsheet
View System Design.md

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
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.
#
@primaryobjects
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 = chatskills.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\nhttp://www.bigbuckbunny.org",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" ],
"subtitle" : "By Blender Foundation",
"thumb" : "images/BigBuckBunny.jpg",
"title" : "Big Buck Bunny"
},
{ "description" : "The first Blender Open Movie from 2006",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4" ],
@magicznyleszek
magicznyleszek / jekyll-and-liquid.md
Last active Feb 21, 2020
Jekyll & Liquid Cheatsheet
View jekyll-and-liquid.md

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

Running a local server for testing purposes:

@mattratleph
mattratleph / vimdiff.md
Last active Mar 30, 2020 — forked from roothybrid7/vimdiff_cheet.md
vimdiff cheat sheet
View vimdiff.md

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
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

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

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 "your_email@youremail.com"
You can’t perform that action at this time.