Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

# vim:fileencoding=utf-8:foldmethod=marker
# font_family FiraCode Nerd Font #SFMono Nerd Font
# font_family SFMono Nerd Font
# font_family SFMono Nerd Font
# bold_font SFMono Nerd Font Bold
# italic_font SFMono Nerd Font Italic
# bold_italic_font SFMono Nerd Font Bold Italic
@adibhanna
adibhanna / settings.json
Created April 18, 2024 17:56
zed settings
{
"theme": "Gruvbox Dark Hard",
"base_keymap": "VSCode",
"buffer_font_family": "BerkeleyMono Nerd Font",
"buffer_font_size": 15,
"vim_mode": true,
"relative_line_numbers": true,
"cursor_blink": false,
"scrollbar": {
"show": "never"
@adibhanna
adibhanna / keymap.json
Created April 18, 2024 17:55
zed keymaps
[
{
"context": "Editor && VimControl && !VimWaiting && !menu",
"bindings": {
"ctrl-w z": "workspace::ToggleZoom",
"ctrl-w t": "terminal_panel::ToggleFocus",
"g ]": "editor::GoToDiagnostic",
"g [": "editor::GoToPrevDiagnostic",
"g r": "editor::FindAllReferences",
"shift-k": "editor::Hover",
#--------------------------------------------------------------------------
# Configuration
#--------------------------------------------------------------------------
# Use Vi mode
setw -g mode-keys vi
# Increase scrollback buffer size
set -g history-limit 10000
@adibhanna
adibhanna / settings.json
Created May 4, 2023 14:06
VSCode Vim config
{
"vim.easymotion": false,
"vim.incsearch": true,
"vim.useSystemClipboard": true,
"vim.useCtrlKeys": true,
"vim.hlsearch": true,
"vim.insertModeKeyBindings": [
{
"before": [
"j",
@adibhanna
adibhanna / alacritty.yml
Last active February 15, 2024 11:15
Alacritty
font:
size: 18
offset:
y: 16
glyph_offset:
y: 9
normal:
family: "SFMono Nerd Font"
window:
padding:
@adibhanna
adibhanna / tmux.conf
Last active March 16, 2024 17:03
Tmux config
#--------------------------------------------------------------------------
# Configuration
#--------------------------------------------------------------------------
# Use Vi mode
setw -g mode-keys vi
# Increase scrollback buffer size
set -g history-limit 10000
<?php
namespace App\Repositories;
class Repository
{
/**
* The model instance.
*
@adibhanna
adibhanna / docker-cleanup-resources.md
Created April 2, 2019 05:40 — forked from dreamuth/docker-cleanup-resources.md
docker cleanup guide: containers, images, volumes, networks

Docker - How to cleanup (unused) resources

Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...

delete volumes

// see: https://github.com/chadoe/docker-cleanup-volumes

$ docker volume rm $(docker volume ls -qf dangling=true)

$ docker volume ls -qf dangling=true | xargs -r docker volume rm

@adibhanna
adibhanna / filter_by_july.php
Last active May 23, 2018 23:46
Software Developer
return array_filter($data, function($e) {
if((new DateTime($e->created_at))->format('M') == 'Jul') {
return [
'name' => $e->name,
'price' => $e->price,
'created_at' => $e->created_at
];
}
});