Skip to content

Instantly share code, notes, and snippets.

View Steve-Mr's full-sized avatar

Maary Steve-Mr

View GitHub Profile
@Steve-Mr
Steve-Mr / index.js
Last active June 10, 2025 11:58 — forked from sakarie9/index.js
Cloudflare Workers Telegram Bot for Url Conversion
/**
* https://github.com/cvzi/telegram-bot-cloudflare
*/
const TOKEN = ENV_BOT_TOKEN // Get it from @BotFather https://core.telegram.org/bots#6-botfather
const WEBHOOK = '/endpoint'
const SECRET = ENV_BOT_SECRET // A-Z, a-z, 0-9, _ and -
const UA = 'Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0'
@Steve-Mr
Steve-Mr / crx_download.sh
Created April 25, 2024 09:19 — forked from slhck/crx_download.sh
Download CRX file from Chrome Web Store
#!/usr/bin/env bash
#
# Download a Chrome extension from the webstore.
# Extract it to a specified path.
#
# Author: Werner Robitza
set -e
CHROME_VERSION="101.0.4951.57"
/*
* Global Media Controls Panel
* Written by Tam710562
*/
(function () {
'use strict';
const gnoh = {
createElement: function (tagName, attribute, parent, inner, options) {
// ==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
@Steve-Mr
Steve-Mr / keepassxc-setup.sh
Created July 28, 2022 01:46 — forked from piratecarrot/keepassxc-setup.sh
Setting up KeePassXC with Google Drive synchronisation and SSH Agent
# This is intended to be copied and pasted to a console, not executed as a script... for now.
# Install some stuff, I use yay, you may use something else
sudo pacman -S keepassxc rclone curl
mkdir -p ~/.local/bin
mkdir -p ~/.local/lib/private
chmod 0700 ~/.local/lib/private
# CREATE YOUR KEEPASSXC BASE IN ~/.local/lib/private/
@Steve-Mr
Steve-Mr / bash_to_zsh_history.rb
Created June 26, 2022 08:43 — forked from goyalankit/bash_to_zsh_history.rb
Import bash history to zsh history.
#################################################################
# = This script transfers bash history to zsh history
# = Change bash and zsh history files, if you don't use defaults
#
# = Usage: ruby bash_to_zsh_history.rb
#
# = Author: Ankit Goyal
#################################################################
# change if you don't use default values