Skip to content

Instantly share code, notes, and snippets.

@iio7
iio7 / xsel-setup.md
Created December 2, 2021 21:57
Set xsel as the default X clipboard on Neovim

Set the following in your init.vim. The backslash is required.

let g:clipboard = #{
      \   name: 'xsel',
      \   copy: {
      \     '+': ['xsel', '--nodetach', '-i', '-b'],
      \     '*': ['xsel', '--nodetach', '-i', '-p'],
      \   },
 \ paste: {
@iio7
iio7 / proceduralphp.md
Last active April 7, 2021 17:45 — forked from InFog/proceduralphp.md
PHP Procedural Framework Manifesto

Procedural PHP Manifesto

  1. Procedural Code over Object Orientation
  • No one needs OO to develop web applications
  1. Explicitly load what you need over autoloaders
  • Autoloaders are complex, we need manual control. Use require.
  1. One PHP file per URL
  • The web server IS the front controller. That's how the architecture is supposed to work.
  • PHP cannot do MVC.
@iio7
iio7 / benchmark.md
Last active March 17, 2023 14:36
Benchmarking MongoDB, MariaDB and PostgreSQL with Apache, Nginx and PHP.

Benchmarking MongoDB, MariaDB and PostgreSQL

I am currently in the process of building a new API that will get requested in three steps and perform three actions in a row.

  1. A product will be listed (select based upon user input).
  2. The QTY will be updated upon ordering.
  3. A customer name and address will be inserted.

No relation is needed.