Skip to content

Instantly share code, notes, and snippets.

View roxxydev's full-sized avatar
🤖

Roxxy roxxydev

🤖
View GitHub Profile
@roxxydev
roxxydev / multiple_ssh_setting.md
Created July 11, 2022 08:02 — forked from jexchan/multiple_ssh_setting.md
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 "your_email@youremail.com"
@roxxydev
roxxydev / package.json
Created June 23, 2022 05:49
setup script
{
"name": "setup",
"version": "1.0.0",
"description": "This is the common setup script for most of my workshops",
"bin": "./setup.js"
}
@roxxydev
roxxydev / package.json
Created June 23, 2022 05:39
Validates that the versions of tools specified in `engines` in the package.json are installed on the machine.
{
"name": "computer-validator",
"version": "1.0.0",
"description": "Use this to validate people's computers have the proper versions of node and npm installed",
"bin": "./validate-system.js",
"dependencies": {
"semver": "7.1.3"
}
}
@roxxydev
roxxydev / gitflow.md
Last active April 7, 2022 23:29
Gitflow - taking into consideration monorepo

Workflow:

  • master becomes now our develop branch (no need to rename)
  • we will have a separate "production" branch
  • we will have a separate "release" branch
  • we will have a separate "hotfix" branch for hotfixes
  • we will maintain and continue to use feature branches

Rule:

@roxxydev
roxxydev / react-native-zustand-example.ts
Created January 20, 2022 00:14
React Native example using Zustand
import create from 'zustand';
import { persist } from 'zustand/middleware';
import AsyncStorage from '@react-native-async-storage/async-storage';
import type Product from '../Product';
interface ProductsStore {
products: Product[];
updateProducts: (products: Product[]) => void;
}
@roxxydev
roxxydev / Android_Development_Kotlin.md
Last active November 26, 2020 16:06
Android with Kotlin
  • kotlin_lambda.md - Lambda in Kotlin
  • HiltExampleActivity.kt - Basic usage of Hilt dependency injection
@roxxydev
roxxydev / marvelcharacters.json
Created November 14, 2020 11:24
Dummy JSON data
[
{
"id": 0,
"title": "Iron Man",
"body": "Inventor Tony Stark applies his genius for high-tech solutions to problems as Iron Man, the armored Avenger.",
"image": "https://terrigen-cdn-dev.marvel.com/content/prod/1x/002irm_ons_crd_03.jpg",
"category": "main"
},
{
"id": 1,
@roxxydev
roxxydev / System Design.md
Created October 25, 2020 08:20 — forked from vasanthk/System Design.md
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?
@roxxydev
roxxydev / Dockerfile
Last active November 12, 2020 09:23
Dockerfile example
FROM ubuntu:20.04
RUN echo Updating existing packages..
RUN apt-get update
# Add the PostgreSQL PGP key to verify their Debian packages.
# It should be the same key as https://www.postgresql.org/media/keys/ACCC4CF8.asc
# RUN apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys B97B0AFCAA1A47F044F244A07FCC7D46ACCC4CF8
@roxxydev
roxxydev / app dir level - build.gradle
Created January 11, 2017 09:32
android-project-gradle-circleci
apply plugin: 'com.android.application'
repositories {
maven { url "https://jitpack.io" }
maven { url 'https://maven.fabric.io/public' }
}
// Production version
def versionMajor = 1;
def versionMinor = 0;