Skip to content

Instantly share code, notes, and snippets.

View namzo's full-sized avatar

Ernest Ojeh namzo

View GitHub Profile
@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
exiftool -d %Y/%B/%Y-%m-%d/ "-directory<filemodifydate" "-directory<createdate" "-directory<datetimeoriginal" .
//
// 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 / 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

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

--