Skip to content

Instantly share code, notes, and snippets.

@lx78WyY0J5
lx78WyY0J5 / sshrc
Created July 23, 2025 02:33 — forked from vitoo/sshrc
Send discord webhook at ssh login (every user)
#/etc/ssh/sshrc
ip=`echo $SSH_CONNECTION | cut -d " " -f 1`
curl --silent -v \
-H "Content-Type: application/json" \
-X POST \
-d "{\"content\":\"new login $USER $ip \"}" \
https://discordapp.com/api/webhooks/_WEBOOK_URL > /dev/null 2>&1
@lx78WyY0J5
lx78WyY0J5 / CompleteDiscordQuest.md
Created April 26, 2024 17:01 — forked from aamiaa/CompleteDiscordQuest.md
Complete Recent Discord Quest

Complete Recent Discord Quest

How to use this script:

  1. Accept the quest under User Settings -> Gift Inventory
  2. Join a vc
  3. Stream any window (can be notepad or something)
  4. Press Ctrl+Shift+I to open DevTools
  5. Go to the Console tab
  6. Paste the following code and hit enter:
let wpRequire;
@lx78WyY0J5
lx78WyY0J5 / dump_win_key.vbs
Created October 31, 2023 16:05 — forked from bannsec/dump_win_key.vbs
Dump Windows Product Key
Set WshShell = CreateObject("WScript.Shell")
MsgBox ConvertToKey(WshShell.RegRead("HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\DigitalProductId"))
Function ConvertToKey(Key)
Const KeyOffset = 52
i = 28
Chars = "BCDFGHJKMPQRTVWXY2346789"
Do
Cur = 0
x = 14
@lx78WyY0J5
lx78WyY0J5 / discord_app_protocols.md
Created September 29, 2023 15:48 — forked from ghostrider-05/discord_app_protocols.md
An unofficial list of discord app protocols

Discord app protocols

Home:

  • /: discord://-/
  • friends: discord://-/channels/@me/
  • nitro: discord://-/store
  • message requests: discord://-/message-requests

General:

@lx78WyY0J5
lx78WyY0J5 / find-in-json.js
Created December 14, 2022 22:15 — forked from iwek/find-in-json.js
Searching through JSON
//return an array of objects according to key, value, or key and value matching
function getObjects(obj, key, val) {
var objects = [];
for (var i in obj) {
if (!obj.hasOwnProperty(i)) continue;
if (typeof obj[i] == 'object') {
objects = objects.concat(getObjects(obj[i], key, val));
} else
//if key matches and value matches or if key matches and value is not passed (eliminating the case where key matches but passed value does not)
if (i == key && obj[i] == val || i == key && val == '') { //
. . . .
,`,`,`,`,
. . . . `\`\`\`\;
`\`\`\`\`, ~|;!;!;\!
~\;\;\;\|\ (--,!!!~`! .
(--,\\\===~\ (--,|||~`! ./
(--,\\\===~\ `,-,~,=,:. _,//
(--,\\\==~`\ ~-=~-.---|\;/J,
(--,\\\((```==. ~'`~/ a |
(-,.\\('('(`\\. ~'=~| \_. \
@lx78WyY0J5
lx78WyY0J5 / gistFetch.html
Created December 10, 2022 17:24 — forked from craveytrain/gistFetch.html
Fetching the Gist
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Gist Fetch</title>
</head>
<body>
<h1>Separate Files</h1>
<h2>Contact_form.html</h2>
<a class="gistPlaceholder" href="https://gist.github.com/476405#file_contact_form.html">contact_form.html</a>
@lx78WyY0J5
lx78WyY0J5 / .gitignore
Last active December 10, 2022 17:11
.gitignore for java projects
*.class
*.jar
*.war
*.nar
*.ear
*.zip
*.tar.gz
*.rar