This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env -S deno run --allow-read --allow-write | |
| /** | |
| * fix-neovim-shada.ts | |
| * | |
| * ## What this script does | |
| * | |
| * Fixes corrupted Neovim shada files by removing problematic newline characters (0x0a, 0x0d). | |
| * These newline characters can appear in command history or search history entries, | |
| * causing plugins like cmdpalette.nvim to crash with errors like: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- readonly() {{{ | |
| ---Creates a readonly table | |
| ---@generic K, V | |
| ---@param x table<K, V> | |
| ---@return table<K, V> --But readonly | |
| local function readonly(x) | |
| return setmetatable({}, { | |
| __index = x, | |
| __newindex = function(_, key, value) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| local neoscroll = require('neoscroll') | |
| -- ... ここにその他設定(setup()など) | |
| local keymaps_opts = { | |
| duration = 200, | |
| easing = 'quadratic', | |
| } | |
| vim.keymap.set('n', 'gg', function() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| function usage() { | |
| echo "Usage:" | |
| echo " $0 <nas_local_mount_point> <nas_remote_photoframe_dir> <nas_remote_ip> [<nas_remote_username> <nas_remote_password> [nas_remote_user_dir]]" | |
| echo 'Example:' | |
| echo " $0 /home/pi/LS210D6E9 /Pictures/Family 192.168.1.20" | |
| echo ' # Start photoframe with pictures in /home/pi/LS210D6E9/Pictures/Family' | |
| echo ' # When NAS directory is not mounted yet, this fails.' | |
| echo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ! 2025/04/08 https://techfeed.io | |
| techfeed.io###entry-67f41c072c7c9e46424dc2e6 > .entry-content > .gnyyy.mobile-view.has-recommendation > .gnyyy-entry > .entry-inner > div.entry-action-buttons > .action-buttons > .emotion-buttons.action-buttons-start > tf-score-button.no-count.action-button > .over-20.hot > .icon > .fas.fa-fire | |
| techfeed.io###entry-67f41c072c7c9e46424dc2e6 > .entry-content > .gnyyy.mobile-view.has-recommendation > .gnyyy-entry > .entry-inner > div.entry-action-buttons > .action-buttons > .emotion-buttons.action-buttons-start > tf-score-button.no-count.action-button > .over-20.hot > .label | |
| ! 2025/07/16 https://x.com | |
| x.com##.r-cwly78.css-175oi2r > .css-175oi2r | |
| ! 2025/06/28 https://zenn.dev | |
| zenn.dev##.style-medium.LikeButton_container__YlckE > .LikeButton_likedCount__nJzwt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ---A rich polymorphic container type. | |
| --- | |
| ---@generic ValueType | |
| ---@class PipedData : { value: ValueType } | |
| --- | |
| ---Example: | |
| ---```lua | |
| ---local result = PipedData.new('hello') | |
| --- :apply(string.upper) | |
| --- :apply(function(s) return s .. '!' end) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "$schema": "https://raw.githubusercontent.com/LuaLS/vscode-lua/master/setting/schema.json", | |
| "Lua.runtime.version": "LuaJIT", | |
| "Lua.diagnostics.globals": [ | |
| "vim" | |
| ], | |
| "Lua.workspace.userThirdParty": [ | |
| "${workspaceFolder}/types" | |
| ], | |
| "Lua.workspace.library": [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- Main vimrc module (replacement for autoload/vimrc.vim) | |
| local list_util = require('utils.list') | |
| local msg_util = require('utils.message') | |
| local M = {} | |
| -- Allows to reuse `self`. | |
| -- Params: | |
| -- self: A |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name Override CSS Styles | |
| // @namespace https://gist.github.com/aiya000/0514d3b7994d9c13bf8a75075ddea82c | |
| // @version 0.1 | |
| // @description Override CSS Styles (Disable all existing styles of elements matching a CSS selector and apply new styles) | |
| // @author aiya000 | |
| // @match *://*/* | |
| // @grant none | |
| // ==/UserScript== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* ==UserStyle== | |
| @name Hide TechFeed count numbers | |
| @namespace github.com/aiya000 | |
| @version 1.0.0 | |
| @description As the name suggests | |
| @author aiya000 | |
| ==/UserStyle== */ | |
| @-moz-document url-prefix("http") { | |
| /** |
NewerOlder