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 Aternos Anti Anti-adblock | |
// @namespace r0630hh1edcuum5397kimyc0ucwy2h3psn4c6r1u4j | |
// @version 0.1.23 | |
// @description Fuck anti-adblock from the free hosting minecraft servers Aternos.org. Parry this you filthy casual! | |
// @author Angry Developer against excessive ADs | |
// @source https://gist.github.com/DvilMuck/f2b14f3f65e8f22974d781277158f82a | |
// @supportURL https://gist.github.com/DvilMuck/f2b14f3f65e8f22974d781277158f82a | |
// @updateURL https://gist.github.com/DvilMuck/f2b14f3f65e8f22974d781277158f82a/raw/aternosAntiAntiadblock.user.js | |
// @downloadURL https://gist.github.com/DvilMuck/f2b14f3f65e8f22974d781277158f82a/raw/aternosAntiAntiadblock.user.js |
In Neovim, the .
character repeats "the most recent action"; however, this is not always respected by plugin actions. Here we will explore how to build dot-repeat support directly into your plugin, bypassing the requirement of dependencies like repeat.vim.
When some buffer-modifying action is performed, Neovim implicitly remembers the operator (e.g. d
), motion (e.g. iw
), and some other miscellaneous information. When the dot-repeat command is called, Neovim repeats that operator-motion combination. For example, if we type ci"text<Esc>
, then we replace the inner contents of some double quotes with text
, i.e. "hello world"
→ "text"
. Dot-repeating from here will do the same, i.e. "more samples"
→ "text"
.
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
from dbus_next.aio import MessageBus | |
from dbus_next.constants import BusType | |
import asyncio | |
BLUEZ = "org.bluez" | |
#replace hci0 with your bluetooth adapter name and FF_FF_FF_FF_FF_FF with your keyboard address | |
BLUEZ_PATH = "/org/bluez/hci0/dev_FF_FF_FF_FF_FF_FF" | |
GATT_SERVICE = 'org.bluez.GattService1' | |
GATT_CHARACTERISCITC = 'org.bluez.GattCharacteristic1' | |
GATT_CHARACTERISCITC_DESCR = 'org.bluez.GattDescriptor1' | |
BATTERY_UUID = "0000180f-0000-1000-8000-00805f9b34fb" |
OlderNewer