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
on run {input, parameters} | |
set cmd to "nvim; exit" | |
if input is not {} then | |
set filePath to POSIX path of input | |
set cmd to "nvim \"" & filePath & "\"; exit" | |
end if | |
tell application "System Events" | |
set isRunning to (exists (processes where name is "kitty")) | |
end tell |
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 map = vim.keymap.set | |
-- Disable arrows in every mode | |
map("n", "<Up>", ":echoe 'Get off my lawn!'<CR>") | |
map("n", "<Down>", ":echoe 'Get off my lawn!'<CR>") | |
map("n", "<Left>", ":echoe 'Get off my lawn!'<CR>") | |
map("n", "<Right>", ":echoe 'Get off my lawn!'<CR>") | |
map("i", "<Up>", "<C-o>:echoe 'Get off my lawn!'<CR>") | |
map("i", "<Down>", "<C-o>:echoe 'Get off my lawn!'<CR>") | |
map("i", "<Left>", "<C-o>:echoe 'Get off my lawn!'<CR>") |
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
<!-- This is a collection of useful CheckStyle XPath rules --> | |
<!-- See https://checkstyle.sourceforge.io/checks/coding/matchxpath.html --> | |
<!-- Some useful rules can also be found in https://github.com/checkstyle/checkstyle/blob/master/config/checkstyle-checks.xml --> | |
<!-- Forbids usage of Collectors#toList in favour of Stream#toList --> | |
<module name="MatchXpath"> | |
<property name="query" value="//METHOD_CALL[./DOT/IDENT[@text='collect'] and ..//METHOD_CALL//IDENT[@text='toList']]"/> | |
<message key="matchxpath.match" value="Use Stream#toList() method to collect items."/> | |
</module> |
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/sh | |
# This script automatically pulls revanced-cli, revanced-patches and revanced-integrations source code. | |
# Then builds and runs revanced-cli with necessary dependencies for APK patching. | |
# | |
# Requirements: git, openjdk 11 | |
# | |
# Usage: ./revanced-patch.sh your-app.apk | |
# You can also provide any additional options supported by revanced-cli | |
# See usage docs for more details https://github.com/ReVanced/revanced-cli/blob/main/docs/1_usage.md |
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
/* | |
* Copyright (c) 2017 Andrejs Mivreniks | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal | |
* in the Software without restriction, including without limitation the rights | |
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
* copies of the Software, and to permit persons to whom the Software is | |
* furnished to do so, subject to the following conditions: | |
* |
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
-- requires subdl: https://github.com/akexakex/subdl | |
-- default keybinding: b | |
-- add the following to your input.conf to change the default keybinding: | |
-- keyname script_binding subdl_load_subs | |
local utils = require 'mp.utils' | |
local subdl = "/usr/bin/subdl" -- use 'which subdl' to find the real path | |
function subdl_load() | |
mp.msg.info("Searching subtitles...") | |
mp.osd_message("Searching subtitles...") |