Skip to content

Instantly share code, notes, and snippets.

View Tittoh's full-sized avatar
🌍
Remote

Titus K. Tittoh

🌍
Remote
  • Nairobi, KE
  • 00:24 (UTC +03:00)
View GitHub Profile
@Tittoh
Tittoh / MacFuse setup.md
Last active December 10, 2023 14:48
macFuse

MacFuse Setup

Write NTFS on Mac

Install

brew tap gromgit/homebrew-fuse && brew install ntfs-3g-mac

Unmount if necessary

@Tittoh
Tittoh / github.css
Created December 15, 2022 14:49 — forked from tuzz/github.css
Github Markdown Stylesheet
/*
Copyright (c) 2017 Chris Patuzzo
https://twitter.com/chrispatuzzo
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@Tittoh
Tittoh / Mandala.jsx
Created September 4, 2022 05:40
React Mozilla MDN hero rotating animation (Mandala)
import React from 'react';
const Mandala = () => {
return (
<div className="mandala-wrapper">
<div className="mandala-container animate-colors" aria-hidden="true">
<div className="mandala-translate">
<svg
width="675"
height="675"
@Tittoh
Tittoh / postgres-brew.md
Created June 7, 2022 02:42 — forked from ibraheem4/postgres-brew.md
Installing Postgres via Brew (OSX)

Installing Postgres via Brew

Pre-Reqs

Brew Package Manager

In your command-line run the following commands:

  1. brew doctor
  2. brew update
@Tittoh
Tittoh / .babelrc
Created January 5, 2021 22:31 — forked from federicofazzeri/.babelrc
Node Express-based REST API (CRUD) using Firebase cloud Functions and FireStore cloud database + Babel config (The current Node version running in Cloud Functions is 6.10)
{
"presets": [
["env", {
"targets": {
"node": "6.10"
}
}]
]
}
@Tittoh
Tittoh / firebase-env.md
Last active November 15, 2020 08:33
Firebase environment variables. Firebase cloud functions provide a way to set and access env variables.

Its never a good idea to have sensitive data like API keys in plain site.

Set env variable

firebase functions:config:set my.secret='giraffes are cool'

Note that each config value must have a 2-part key (e.g. foo.bar) otherwise it will fail.

Deploy your functions for the change to take effect

firebase deploy --only functions

Access env variable

@Tittoh
Tittoh / firebase.yml
Created October 28, 2020 01:30
Git workflow to deploy Firebase applications
name: CI/CD
on:
push:
branches:
- master
jobs:
build: