Skip to content

Instantly share code, notes, and snippets.

View Steve-Mr's full-sized avatar

Maary Steve-Mr

View GitHub Profile
import json
import os
import requests
apiAddress = "http://127.0.0.1:8081/"
urlPrefix = apiAddress + "bot" + os.getenv("TELEGRAM_TOKEN")
def findString(sourceStr, targetStr):
if str(sourceStr).find(str(targetStr)) == -1:
! 2022-03-04 https://www.ithome.com
||cmt.ithome.com/comment/$subdocument
! 2022-03-04 https://sspai.com
sspai.com###article-comment-box
! 2022-03-12 https://t.bilibili.com
||s1.hdslb.com/bfs/static/blive/blfe-dynamic-web/static/img/background.bc725153.png$image
! 2022-03-14 https://www.geeksforgeeks.org
cp /usr/lib/systemd/system/bluetooth.service /etc/systemd/system/
sed -i -r 's/ExecStart=.+/& -E/' /etc/systemd/system/bluetooth.service
systemctl daemon-reload
systemctl restart bluetooth
#!/bin/bash
#######################################################################
# Author: GwenDragon, <https://labs.gwendragon.de/blog/>
# License: GPL
#######################################################################
# 2021-06-25 removed custom.css support
# commented custom.css shell commands
# users can now use vivaldi://experiments to change CSS in UI
/*
* Global Media Controls Panel
* Written by Tam710562
*/
(function () {
'use strict';
const gnoh = {
createElement: function (tagName, attribute, parent, inner, options) {
[Adblock Plus 2.0]
! Version: 202211180347
! Title: Maary's List
! 2022-03-04 https://www.ithome.com
||cmt.ithome.com/comment/$subdocument
! 2022-03-04 https://sspai.com
sspai.com###article-comment-box
// ==UserScript==
// @name Abema 区域限制
// @version 1.0.0
// @run-at document-end
// @namespace Violentmonkey Scripts
// @match https://abema.tv/*
// @grant none
// ==/UserScript==
Object.defineProperty(__CLIENT_REGION__, 'isAllowed', {
get: () => true
@Steve-Mr
Steve-Mr / firefox-snap-to-deb.sh
Created October 21, 2022 03:55 — forked from jc00ke/firefox-snap-to-deb.sh
Migrate Firefox from snap back to deb on Ubuntu Jammy+
#!/bin/env bash
sudo snap remove firefox
sudo add-apt-repository ppa:mozillateam/ppa
echo '
Package: *
Pin: release o=LP-PPA-mozillateam
Pin-Priority: 1001
' | sudo tee /etc/apt/preferences.d/mozilla-firefox
/**
* The code below is from https://codestringz.com/share-intent-for-a-bitmap-without-saving-a-file/
*/
<!-- AndroidManifest.xml -->
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.codestringz.mytestapp">
@Steve-Mr
Steve-Mr / convert_launcher_name.py
Created August 4, 2022 10:57
convert csv generated by Package Names app to appfilter.xml format
import csv
def convert(csv_path):
with open(csv_path, newline='') as csv_file:
output = '<!-- {} --> \n<item \n component="ComponentInfo{{{}/{}/}}" \n drawable="" />'
reader = csv.reader(csv_file)
for row in reader:
print(output.format(row[0], row[1], row[2]))