Skip to content

Instantly share code, notes, and snippets.

View zahidmuhammadzaki's full-sized avatar
👽
Zrrrt!

Zahid zahidmuhammadzaki

👽
Zrrrt!
  • Profesi.io
  • Jakarta, Indonesia
View GitHub Profile
@andresilvagomez
andresilvagomez / SoftDeletes.js
Last active August 3, 2023 18:08
Soft deletes for Adonis 4.
// $ adonis make:trait SoftDeletes
class SoftDeletes {
register(Model, customOptions = {}) {
const deletedAtColumn = customOptions.name || `${Model.table}.deleted_at`;
Model.addGlobalScope(builder => {
builder.whereNull(deletedAtColumn);
}, 'adonis_soft_deletes');
@octocat
octocat / .gitignore
Created February 27, 2014 19:38
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@kevin-smets
kevin-smets / iterm2-solarized.md
Last active November 14, 2024 15:40
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k