This file contains 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
# Enable USB debugging in the Developer settings and | |
# then connect phone via USB | |
# Open a terminal and connect to the phone via: | |
adb shell | |
# Lock your phone and then unlock with fingerprint to trigger the vibration. | |
# List the recent vibrations: | |
for pkg in $(pm list packages | sed 's/package://'); | |
do | |
echo "$pkg $(appops get $pkg VIBRATE)" | grep 'time=+[0-9]*s'; | |
done; |
This file contains 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
# -*- coding: utf-8 -*- | |
""" | |
skin_tone_modifiers = { | |
'LIGHT': '\U0001f3fb', | |
'MEDIUMLIGHT': '\U0001f3fc', | |
'MEDIUM': '\U0001f3fd', | |
'MEDIUMDARK': '\U0001f3fe', | |
'DARK': '\U0001f3ff', | |
} |
This file contains 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
// new versions at https://github.com/cvzi/telegram-bot-cloudflare | |
const TOKEN = '123456789:Tnm6EJ8jjk_KhepfI8PlU1n7x0dAAy-QOxO' // Get it from @BotFather https://core.telegram.org/bots#6-botfather | |
const WEBHOOK = '/endpoint' | |
const SECRET = 'QUEVEDO_BZRP_Music_Sessions_52' // A-Z, a-z, 0-9, _ and - | |
/** | |
* Wait for requests to the worker | |
*/ | |
addEventListener('fetch', event => { |
This file contains 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
/* global addEventListener, Response, fetch */ | |
// http://f-droid-build.cuzi.workers.dev/{package}/ | |
const fetchConfig = { | |
cf: { | |
// Always cache this fetch regardless of content type | |
// for a max of 10min before revalidating the resource | |
cacheTtl: 10 * 60, | |
cacheEverything: true |
This file contains 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
/* global addEventListener, Response, fetch */ | |
// https://f-droid-build.cuzi.workers.dev/{package}/ | |
const fetchConfig = { | |
cf: { | |
// Always cache this fetch regardless of content type | |
// for a max of 60min before revalidating the resource | |
cacheTtl: 60 * 60, | |
cacheEverything: true |
This file contains 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
/* | |
https://github.com/cvzi/play/ | |
Copyright (C) 2022 cuzi | |
This program is free software: you can redistribute it and/or modify | |
it under the terms of the GNU General Public License as published by | |
the Free Software Foundation, either version 3 of the License, or | |
(at your option) any later version. |
This file contains 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 eBay - Hilight Items With Bids | |
// @namespace http://userscripts.org/users/126140 | |
// @include https://*.ebay.*/* | |
// @grant unsafeWindow | |
// @version 2.4.0 | |
// @require https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js | |
// @description Highlights items that have bids with a red border and yellow background. | |
// ==/UserScript== |
This file contains 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
""" | |
requirements.py - find updates for packages in requirements.txt on pypi | |
https://github.com/cvzi/requirements | |
Copyright (C) 2021 cvzi <[email protected]> | |
This program is free software: you can redistribute it and/or modify | |
it under the terms of the GNU General Public License as published by | |
the Free Software Foundation, either version 3 of the License, or | |
(at your option) any later version. |
This file contains 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 | |
# | |
# Check staged .js files with standard (https://standardjs.com) | |
# Run with --all/-A to check all tracked *.js files, not just staged | |
# | |
if [ "$1" != "--all" ] && [ "$1" != "-A" ]; then | |
fileList=$(git diff --cached --name-only --diff-filter=ACM | grep ".js$") | |
else | |
fileList=$(git ls-tree --full-tree -r --name-only HEAD | grep ".js$") |
This file contains 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
""" | |
List all colors available in your terminal with VT100 sequences | |
""" | |
from __future__ import print_function | |
import ctypes | |
if hasattr(ctypes, 'WinDLL'): | |
# In some Windows consoles you need to enable support for theses sequences. See: | |
# Enable VT100 sequences "Console Virtual Terminal Sequences" for colored font/background in the Windows terminal |
NewerOlder