Skip to content

Instantly share code, notes, and snippets.

View bassamsdata's full-sized avatar

Bassam Data bassamsdata

View GitHub Profile
@bassamsdata
bassamsdata / float_tabline.lua
Created August 1, 2024 04:51
enhanced version of tabline to show calendar in neovim by using floating window.
-- original source: https://www.reddit.com/r/neovim/comments/1egdcql/show_upcoming_notion_calendar_event_in_neovim/
-- plugin/tabline.lua
---@return string|osdate
local function current_time()
return os.date("%H:%M")
end
---@return string|osdate
local function current_day()

Option 1: Command-line download extension as zip and extract

extension_id=jifpbeccnghkjeaalbbjmodiffmgedin   # change this ID
curl -L -o "$extension_id.zip" "https://clients2.google.com/service/update2/crx?response=redirect&os=mac&arch=x86-64&nacl_arch=x86-64&prod=chromecrx&prodchannel=stable&prodversion=44.0.2403.130&x=id%3D$extension_id%26uc" 
unzip -d "$extension_id-source" "$extension_id.zip"

Thx to crxviewer for the magic download URL.

@bassamsdata
bassamsdata / keybindings.json
Created May 8, 2024 06:33 — forked from bitterteasweetorange/keybindings.json
setup vscode like neovim
[
{
"command": "projectManager.listGitProjects#sideBarGit",
"key": "cmd+o"
},
{
"command": "expand_region",
"key": "ctrl+=",
"when": "editorTextFocus"
},
@bassamsdata
bassamsdata / _Notes.md
Last active August 28, 2024 23:45
MiniFiles Git integration

Below is a code for Minifiles Git integration code snippet.

How to use it

Just insert the code below into this function in your Minifiles config:

config = function()
-- add the git code here
end
@bassamsdata
bassamsdata / README.md
Created December 2, 2022 06:03 — forked from hofmannsven/README.md
Increase key repeat rate on macOS

Increase key repeat rate on macOS

Settings: System Preferences » Keyboard » Key Repeat/Delay Until Repeat

Use the commands below to increase the key repeat rate on macOS beyond the possible settings via the user interface. The changes aren't applied until you restart your computer.

Source: https://apple.stackexchange.com/a/83923