Skip to content

Instantly share code, notes, and snippets.

const Asena = require("../Utilis/events");
const { forwardOrBroadCast } = require("../Utilis/groupmute");
const { getBuffer } = require('../Utilis/download');
const { parsedJid } = require("../Utilis/Misc");
// chnage url for custom photo and change caption if
const url1 = 'https://files.catbox.moe/e4f0bu.jpeg'
const url2 = 'https://previews.123rf.com/images/dimagroshev/dimagroshev1307/dimagroshev130700030/35819725-love-you-stylish-text.jpg'
Asena.addCommand(
{ pattern: 'mforward ?(.*)', fromMe: true, desc: "Forward replied msg." },
@chenshengzhi
chenshengzhi / git_ssh_proxy.md
Last active April 15, 2025 04:37
git ssh 代理设置

仅为 GitHub 设置代理

git 代理

设置 git config --global http.https://github.com.proxy socks5://127.0.0.1:1086
设置完成后, ~/.gitconfig 文件中会增加以下条目:

[http "https://github.com"]
    proxy = socks5://127.0.0.1:1086

System Prompt: OpenAI Agents SDK Expert AI (Codename: Agentis) v1.4

Author: Bradley Ross (https://www.linkedin.com/in/bradaross/)

1. Genesis and Identity

You are Agentis, an advanced AI assistant instantiated to serve as a definitive expert on the OpenAI Agents SDK (Python). Your core function is to provide accurate, insightful, practical, and comprehensive guidance on architecting, designing, building, deploying, and managing sophisticated agents using this framework, with a particular emphasis on robust integration with FastAPI.

Your knowledge base is primarily derived from, and continuously aligned with, the official OpenAI resources for this SDK:

@tadwohlrapp
tadwohlrapp / ublock-filter-youtube.txt
Last active April 15, 2025 04:36
Filters for uBlock Origin I use to block annoying elements on YouTube
!============================
! YouTube Menus
!============================
!hide voice search button in top nav
youtube.com###voice-search-button
!hide "Explore" in sidebar
youtube.com##ytd-guide-entry-renderer:has-text(Explore)
youtube.com##ytd-guide-section-renderer:has(h3:has-text(/Explore/))
@almas
almas / ubuntu-on-mbp-a1707.md
Last active April 15, 2025 04:35 — forked from rob-hills/ubuntu-22.04-mbp-a1707.md
Ubuntu LTS on MacBook Pro 2017 (A1707, MBP 14,3)(T1 chip)

Summary

Notes to install Ubuntu 22.04.4LTS (Upgraded to 24.04LTS) up and running on my 2017 MacBook Pro 15 inch (MacBookPro14,3).

Now everything except the TouchID (Fingerprint), Suspend and Hibernation seems to work for me.

About Ubuntu 24.04LTS: I tried to install Ubuntu 24.04 and didn't have success. There was a crash issue during installation. https://bugs.launchpad.net/subiquity/+bug/2065310 But I installed 22.04 and upgraded it to the 24.04LTS later and it working same as 22.04.4.

Useful References (not mentioned in the text)

@kevinelliott
kevinelliott / 1-macOS-10.13-high-sierra-setup.md
Last active April 15, 2025 04:33
macOS 10.13 High Sierra Mostly-Automated Setup

macOS 10.13 High Sierra Mostly-Automated Setup

An easy to refer to document for regularly setting up macOS 10.13 High Siera, in flavor of my previous macOS/OSX setup gists:

I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install. I generally reinstall each computer from scratch every 6 months, and I do not perform upgrades between releases.

@mavaddat
mavaddat / .bashrc
Last active April 15, 2025 04:33 — forked from glsorre/keychain.ps1
Windows git and Windows Subsystem for Linux will never prompt ssh passphrase again
# To avoid having to re-type the password for SSH
test -f /usr/bin/keychain && eval $(/usr/bin/keychain --eval --quiet id_rsa)
@jborean93
jborean93 / Get-ItemMetadata.ps1
Created February 1, 2021 04:12
Get Windows Explorer metadata properties
# Copyright: (c) 2021, Jordan Borean (@jborean93) <[email protected]>
# MIT License (see LICENSE or https://opensource.org/licenses/MIT)
Update-TypeData -TypeName 'Shell.Metadata' -DefaultDisplayPropertySet 'Name', 'Item type' -Force
Function Get-ItemMetadata {
<#
.SYNOPSIS
Get shell explorer metadata for a file.
@jonbartels
jonbartels / Managing SSL Connections in MC.md
Last active April 15, 2025 04:31
Mirth Connect has many ways to manage SSL connections. This gist provides a primer on how to manage them. Edits, contributions, and corrections are appreciated!

Mirth Connect is awesome! One common question on the forums and Slack is how to manage SSL connctions. These questions mainly focus on HTTPS but also include TCP connections.

The quick rundown is:

  1. The built-in MC HTTP Sender connector will do HTTPS if:
  • The endpoint has a certificate which is signed by a CA already present in the JVM truststore and has the right DN or SAN for the hostname. This is logically equivalent to the "green check" if you open the URL in a browser.
  • The certificate has been added to the truststore for the JVM that MC is running under
  • Changes to DNS or host files allow a hostname to match the DN or SAN already present in the cert (not reccomended)
  • The connector may flag these connections with a warning or red x. Test the channel first as the validator makes assumptions about SSL that may not apply in this case.
  1. The built-in MC HTTP Listener connector will not do SSL directly. A plugin or a proxy is necessary.
  • Tony Germano has a plugin implemented for SSL l
@assimilat
assimilat / pam_modules.list
Created October 22, 2021 19:10
list_of_pam_modules
https://github.com/nuvious/pam-duress
A Pluggable Authentication Module (PAM) which allows the establishment of alternate passwords that can be used to perform actions to clear sensitive data, notify IT/Security staff, close off sensitive network connections, etc if a user is coerced into giving a threat actor a password.
https://github.com/uber/pam-ussh
uber's ssh certificate pam module
https://github.com/Yubico/yubico-pam
Yubico Pluggable Authentication Module (PAM)
https://github.com/hamzasood/pam_touchid