Skip to content

Instantly share code, notes, and snippets.

View namzo's full-sized avatar

Ernest Ojeh namzo

View GitHub Profile
@namzo
namzo / humble-new-tab-page-settings.json
Last active June 21, 2024 12:55
Humble New Tab Page Settings
{"options.highlight_round":"2","options.remember_open":"1","options.shadow_blur":"0","column.0.0":"258","column.1.0":"254","column.4.1":"closed","options.hide_options":"1","options.slide":"0.439","options.show_apps":"0","open.259":"true","column.2.0":"259","options.spacing":"0.588","options.lock":"0","options.css":".column .icon{filter:grayscale(100%)}\n\n@media (prefers-color-scheme: dark) {\n#main a{color:#bbbbbb}\nbody{background-color:#1a1a1a}\n#main a:hover{background-color:#2a4456}\n#main a:hover{color:#ffffff}\n#main a:hover{box-shadow:0 0 0px #3d7ab3}\n.column .icon{filter:invert(1) grayscale(100%)}\n}\n\n","options.font_size":"14","options.font_weight":"400","column.4.0":"recent","options.fade":"0","options.auto_close":"1","column.3.0":"2","options.show_top":"0","options.show_root":"1","options.show_1":"0","options.v_margin":"0.158","open.254":"true","column.4.2":"devices","options.font":"iA Writer Quattro S","open.258":"true"}
@namzo
namzo / banana-cake.txt
Last active June 20, 2024 16:01
My Banana Cake
Ingredients:
- Bananas (3-4 overripe)
- Butter (113g)
- Eggs (2)
- Brown sugar (150g)
- Flour (215g)
- Baking soda (1 teaspoon)
- Salt (½ teaspoon)
- Cinnamon (½ teaspoon)
@namzo
namzo / chrome-url-search-draft.md
Last active January 30, 2022 16:33
Chrome url search

Default

{google:baseURL}search?q=%s&{google:RLZ}{google:originalQueryForSuggestion}{google:assistedQueryStats}{google:searchFieldtrialParameter}{google:iOSSearchLanguage}{google:prefetchSource}{google:searchClient}{google:sourceId}{google:contextualSearchVersion}ie={inputEncoding}

My preferred

{google:baseURL}search?gl=us&q=%s&{google:originalQueryForSuggestion}{google:prefetchSource}{google:contextualSearchVersion}ie={inputEncoding}

Tracking?

{google:baseURL}search?gl=us&q=%s&{google:originalQueryForSuggestion}{google:prefetchSource}{google:searchClient}{google:sourceId}{google:contextualSearchVersion}ie={inputEncoding}

@namzo
namzo / fujifilm_x100_versions.md
Created June 23, 2021 16:38
Fujifilm X100 Versions
Camera model Release date Resolution
X100 September 2010 12 megapixels
X100S January 2013 16 megapixels
X100T September 2014 16 megapixels
X100F January 2017 24 megapixels
X100V February 2020 26 megapixels
@namzo
namzo / exif-photo-import.txt
Last active September 27, 2024 11:32
ExifTool - Copy photos from SD Card without importing files that exist in destination
exiftool -o . -d ~/Pictures/Camera\ Photos/%Y/%m-%b/%Y-%m-%d/ "-directory<filemodifydate" "-directory<createdate" "-directory<datetimeoriginal" -r -if '!$originalfilename' /Volumes/Untitled
//
// MyDesign.swift
// MyProject
//
// Designed in DetailsPro
// Copyright © (My Organization). All rights reserved.
//
import SwiftUI
@namzo
namzo / gem-install-error-fix.md
Last active November 21, 2020 10:33
Fix gem install error - MacOS Bug Sur

If you get this error message:

ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions for the /usr/bin directory.

Fix

sudo gem install [gem-name] -n /usr/local/bin

@namzo
namzo / update-npm
Created November 19, 2020 23:41
Update npm packages when update isn't working
npm i -g npm-check-updates
ncu -u
npm install
@namzo
namzo / git-workflow.md
Last active May 11, 2020 21:43
Git workflow

1. Create new branch with changes in master

git checkout -b [feature branch name]

2. Add changes and Commit

git commit -a -m "Commit message"

3. Push changes to remote

git push origin [feature branch name]

--

@namzo
namzo / pull-from-master.md
Last active May 11, 2020 21:45
Pull changes from feature branch to master

1. Update your master branch:

git checkout master
git pull --rebase origin master

2. Merge changes from Master to feature branch

git checkout [feature branch name]
git merge --no-ff master

3. Check if your changes has been included (Optional)

git log