Skip to content

Instantly share code, notes, and snippets.

View ayinlaaji's full-sized avatar
🧐
Observing

Àyìnlá Ọmọ́tọ́ṣọ̀ Abdulsalam ayinlaaji

🧐
Observing
View GitHub Profile
@ayinlaaji
ayinlaaji / index.md
Created August 26, 2022 14:06 — forked from agarrharr/index.md
Common Ledger CLI Commands

Common Ledger CLI Commands

  • Income vs expenses this month?

    $ ledger balance income expenses --period "this month"
  • What did my budget look like at a certain date?

@ayinlaaji
ayinlaaji / .mbsyncrc
Created August 8, 2022 21:13 — forked from agraul/.mbsyncrc
Example mbsyncrc for mailbox.org
# These settings can also go under an "Account" section, but then the
# "IMAPStore" section needs to reference the account. This is not
# needed for just one store per account.
IMAPStore mailbox-remote
Host imap.mailbox.org
User alexander.graul@mailbox.org
PassCmd "gpg --quiet --decrypt ~/.mbsync-pw-mailbox.gpg"
SSLType STARTTLS
MaildirStore mailbox-local
@ayinlaaji
ayinlaaji / README.md
Created January 5, 2022 14:13 — forked from tannerlinsley/README.md
Replacing Create React App with the Next.js CLI

Replacing Create React App with the Next.js CLI

How dare you make a jab at Create React App!?

Firstly, Create React App is good. But it's a very rigid CLI, primarily designed for projects that require very little to no configuration. This makes it great for beginners and simple projects but unfortunately, this means that it's pretty non-extensible. Despite the involvement from big names and a ton of great devs, it has left me wanting a much better developer experience with a lot more polish when it comes to hot reloading, babel configuration, webpack configuration, etc. It's definitely simple and good, but not amazing.

Now, compare that experience to Next.js which for starters has a much larger team behind it provided by a world-class company (Vercel) who are all financially dedicated to making it the best DX you could imagine to build any React application. Next.js is the 💣-diggity. It has amazing docs, great support, can grow with your requirements into SSR or static site generation, etc.

So why

@ayinlaaji
ayinlaaji / debugger pause beforeunload
Created November 3, 2020 11:18 — forked from carcinocron/debugger pause beforeunload
Chrome: pause before redirect
// Run this in the F12 javascript console in chrome
// if a redirect happens, the page will pause
// this helps because chrome's network tab's
// "preserve log" seems to technically preserve the log
// but you can't actually LOOK at it...
// also the "replay xhr" feature does not work after reload
// even if you "preserve log".
window.addEventListener("beforeunload", function() { debugger; }, false)
@ayinlaaji
ayinlaaji / study-link.org
Last active July 26, 2020 20:35
Resources for front end developers
@ayinlaaji
ayinlaaji / countries.sql
Created February 22, 2020 15:04 — forked from adhipg/countries.sql
Sql dump of all the Countries, Country Codes, Phone codes.
CREATE TABLE IF NOT EXISTS `country` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`iso` char(2) NOT NULL,
`name` varchar(80) NOT NULL,
`nicename` varchar(80) NOT NULL,
`iso3` char(3) DEFAULT NULL,
`numcode` smallint(6) DEFAULT NULL,
`phonecode` int(5) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
@ayinlaaji
ayinlaaji / luhn.go
Created January 7, 2020 17:41
Validating credit card numbers
package main
import (
"fmt"
"strconv"
)
func luhnCheck(cardNo int) bool {
toStr := strconv.Itoa(cardNo)
@ayinlaaji
ayinlaaji / Dockerfile
Created October 14, 2019 10:04
Dockerfile to setup development environment
FROM debian:buster
MAINTAINER abdul@quadlobe.com
WORKDIR /quadlobe
ADD https://raw.githubusercontent.com/ayinlaaji/dotfile/master/init.vim /root/.config/nvim/init.vim
ADD https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim /root/.local/share/nvim/site/autoload/plug.vim
ADD https://github.com/bazelbuild/bazel/releases/download/0.27.0/bazel-0.27.0-installer-linux-x86_64.sh /opt/bazel-0.27.0-installer-linux-x86_64.sh
ADD https://deb.nodesource.com/setup_12.x /opt/nodejs_setup_12.x
ADD https://yarnpkg.com/install.sh /opt/yarn_installer.sh
RUN git clone https://github.com/ayinlaaji/ultisnips.git /.vim/UltiSnips
@ayinlaaji
ayinlaaji / NERDTree Commands
Created September 22, 2019 10:32 — forked from adamdb/NERDTree Commands
A list of useful NERDTree commands.
Use the natural Vim navigation keys hjkl to navigate the files.
Press o to open the file in a new buffer or open/close directory.
Press t to open the file in a new tab.
Press i to open the file in a new horizontal split.
Press s to open the file in a new vertical split.
Press p to go to parent directory.
Press r to refresh the current directory.
Press m to launch NERDTree menu inside Vim.
@ayinlaaji
ayinlaaji / .screenrc
Created August 20, 2019 10:22
Settings for GNU screen
# terminfo and termcap for nice 256 color terminal
# allow bold colors - necessary for some reason
attrcolor b ".I"
# tell screen how to set colors. AB = background, AF=foreground
termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
# erase background with current bg color
defbce "on"
mousetrack on