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 [email protected]
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 / 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 / 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.

Screen Cheatsheet / Quick Reference (Pocket Friendly)

Escape Key

All screen commands are prefixed by an escape key, by default Ctrl-a (that's Control-a, sometimes written ^a). To send a literal Ctrl-a to the programs in screen, use Ctrl-a a. This is useful when when working with screen within screen. For example Ctrl-a a n will move screen to a new window on the screen within screen.

Description Command
Basic
Start a new session with session name screen -S
@ayinlaaji
ayinlaaji / README.md
Created July 8, 2019 11:10 — forked from miguelmota/README.md
GNU screen reference cheat sheet

GNU screen quick reference

http://aperiodic.net/screen/quick_reference

How to Navigate, copy & paste content?

within screen sessions: Cntl a + [ : To start navigation using up/down arrow Press Space bar: To select content starting position

@ayinlaaji
ayinlaaji / .screenrc-with_solarized
Created July 8, 2019 10:43 — forked from qva5on3/.screenrc-with_solarized
Enables GNU Screen for Solarized colors.
# 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"