Skip to content

Instantly share code, notes, and snippets.

View igbanam's full-sized avatar
🤿
vi/vim

Igbanam Ogbuluijah igbanam

🤿
vi/vim
View GitHub Profile
@igbanam
igbanam / manuscript-os-x-M1-first-run
Created May 10, 2021 17:48
manuskript os x startup failures
╭─   ~/projects ···································································································································  3.0.0 at  06:27:21 PM ─╮
╰─❯ manuskript ─╯
[1] 64214 killed manuskript
╭─   ~/projects ·················································································································· ✘ KILL took  3s  3.0.0 at  06:27:42 PM ─╮
╰─❯ manuskript ─╯
[64232] Error loading Python lib '/opt/homebrew/Caskroom/manuskript/0.10.0/manuskript/Python': dlopen: dlopen(/opt/homebrew/Caskroom/manuskript/0.10.0/manuskript/Python, 10): no suitable image found. Did find:
/opt/homebrew/Caskroom/manuskript/0.10.0/manuskript/Python: code
@igbanam
igbanam / nested-files.txt
Created September 16, 2019 16:12
Nested Orders
app
|-- controllers
|-- customer_controller.rb
|-- customers
|-- order_controller.rb
|-- models
|-- customer.rb
|-- customers
|-- order.rb
@igbanam
igbanam / hanami-gemfile-tutorial
Created September 13, 2019 18:16
Base Gemfile for Hanami 1.3
source 'https://rubygems.org'
gem 'rake'
gem 'hanami', '~> 1.3'
gem 'hanami-model', '~> 1.3'
gem 'pg'
group :development do
# Code reloading
@igbanam
igbanam / no-assignments-1.rb
Last active June 11, 2019 14:26
Methods are better without assignments
class SomethingWithAssignments
def nice
first_thing = @modifier * 2
another_thing = some_method.to_i
three_divides = @modifier % 3 == 0 ? true : false
if three_divides
return first_thing + another_thing
else
return another_thing
@igbanam
igbanam / my-git-aliases
Last active June 1, 2018 14:54
My Git Aliases
[alias]
a = add
b = branch
c = commit
d = diff
l = log
o = checkout
p = pull
r = remote
@igbanam
igbanam / log-alias-output
Created June 1, 2018 10:47
Log Alias Output
95557d7 (HEAD -> develop, origin/develop) halfway through something
c8bb349 used JsonApi with Ember
593b582 I broke something
bae3a26 rails 5.1.4 stuff
@igbanam
igbanam / log-aliases
Created June 1, 2018 10:36
Git Log Aliases
[alias]
log-retro = !git log --since '1 week ago' --author $(git config user.email) --pretty=short --oneline
log-standup = !git log --since yesterday --author $(git config user.email) --pretty=short --oneline
@igbanam
igbanam / log-output
Created June 1, 2018 10:27
Log Output
commit 95557d77cb5bf0f7f282c1de6317f9b16924f3a7 (HEAD -> develop, origin/develop)
Author: You <you@company.com>
Date: Tue Oct 17 21:09:04 2017 +0100
halfway through something
commit c8bb349eb52221ca61e72be47cbc37fadbbe685c
Author: you <you@personal.com>
Date: Sun Oct 15 21:03:18 2017 +0100
@igbanam
igbanam / git-top-performer-alias
Last active March 28, 2018 17:06
Top Performers
# ~/.gitconfig
... other stuff
[alias]
top-performers = shortlog --summary --numbered --no-merges
# using this alias in the shell
$ git top-performers
12 Alice Doe
5 Bob Doe
@igbanam
igbanam / git-basic-alias
Last active March 28, 2018 16:31
Some basic yet pervasive commands
[alias]
a = add
c = commit
d = diff
o = checkout
p = pull
s = status