Skip to content

Instantly share code, notes, and snippets.

View faizsiddiqui's full-sized avatar
🏡
working from home

Faiz Siddiqui faizsiddiqui

🏡
working from home
View GitHub Profile
@vasanthk
vasanthk / System Design.md
Last active June 29, 2024 13:02
System Design Cheatsheet

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?
@oanhnn
oanhnn / using-multiple-github-accounts-with-ssh-keys.md
Last active June 28, 2024 18:51
Using multiple github accounts with ssh keys

Problem

I have two Github accounts: oanhnn (personal) and superman (for work). I want to use both accounts on same computer (without typing password everytime, when doing git push or pull).

Solution

Use ssh keys and define host aliases in ssh config file (each alias for an account).

How to?

  1. Generate ssh key pairs for accounts and add them to GitHub accounts.
@faizsiddiqui
faizsiddiqui / SimpleTabLayout.java
Last active October 15, 2020 14:30
Android Sliding TabLayout with Icons.
package com.example.simpletablayout;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.design.widget.TabLayout;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
import android.support.v4.view.ViewPager;
import android.support.v7.app.AppCompatActivity;
@rxaviers
rxaviers / gist:7360908
Last active June 29, 2024 12:13
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@nesquena
nesquena / Rakefile
Created June 5, 2010 09:51
Dead simple gem packaging gemspec and tasks
# coding:utf-8
require 'rubygems'
require 'rubygems/specification'
require 'rake'
def gemspec
@gemspec ||= begin
gem_name = File.basename(File.dirname(__FILE__))
file = File.expand_path("../#{gem_name}.gemspec", __FILE__)