Skip to content

Instantly share code, notes, and snippets.

@Razuuu
Razuuu / discord-install-update.sh
Last active May 8, 2024 10:11
Install or (default: update) discord via tar.gz file
#!/bin/bash
echo "$([ "$1" == "install" ] && echo "Install" || echo "Update") Discord"
# Download Discord
cd /tmp
curl -o discord.tar.gz -J --location-trusted --max-redirs 10 "https://discord.com/api/download/stable?platform=linux&format=tar.gz"
# Unzip
tar -xzf discord.tar.gz
@vendkura
vendkura / README.md
Created May 8, 2024 10:10 — forked from ilblog/README.md
Create mp4 video from set of images in the browser client side, using ffmpeg.js in worker thread
@ilblog
ilblog / README.md
Last active May 8, 2024 10:10
Create mp4 video from set of images in the browser client side, using ffmpeg.js in worker thread
@LanfordCai
LanfordCai / solsender.js
Last active May 8, 2024 10:07
Solana Batch Transfer
'use strict'
const web3 = require('@solana/web3.js')
const splToken = require('@solana/spl-token')
const bs = require('bs58')
const connection = new web3.Connection(
web3.clusterApiUrl('devnet'),
'confirmed',
)
import * as vault from "node-vault";
import * as aws4 from "aws4";
interface VaultRequest {
role: string;
iam_request_url: string;
iam_request_body: string;
iam_request_headers: string;
iam_http_request_method: string;
}
@RBPi
RBPi / htb_exam_monitoring.py
Last active May 8, 2024 10:02
HTB Academy Certificate Exams Results Monitoring
# HTB Academy Certificate Exams Results Monitoring
# Author: RBPi
import requests
import time
import random
import os
import urllib.parse
import urllib.request
@isasharafdin
isasharafdin / npm-downloads-increaser.mjs
Created May 8, 2024 10:01
🚀 Instantly amplify your npm package's downloads with npm Downloads Increaser! This powerful script rapidly boosts your download stats, showcasing your package's popularity. Dive in and see your numbers soar! 🌟
import https from 'https'; // Import the https module to make HTTPS requests
import readline from 'readline'; // Import the readline module for interactive command line interfaces
// Create a readline interface for user input from the command line
const rl = readline.createInterface({
input: process.stdin,
output: process.stdout
});
/**
@hoodoer
hoodoer / setRefererHeader.js
Last active May 8, 2024 10:01
Code Snippet to Set 'Referer' Header using JavaScript (e.g. XSS Payload)
// Save the current URL path to restore after making
// malicious request with faked referer header value
var savedPath = window.location.pathname;
var savedSearch = window.location.search;
// Change URL/History to control the referer header value
// Swap out "/this-is-my-fake-referer-value" to be what you need
window.history.replaceState(null, '', '/this-is-my-fake-referer-value');
// Send malicious request with faked referer header value
@cstroe
cstroe / OpenSourceCRM.rst
Last active May 8, 2024 10:01
A distilled list of open-source CRM software
@lewangdev
lewangdev / default.custom.yaml
Last active May 8, 2024 09:58
雾凇拼音自定义配置,MacOS-like & Wechat-like Dark/Light Color Scheme For Rime
patch:
# 菜单
menu:
page_size: 8 # 候选词个数
# alternative_select_labels: [ ①, ②, ③, ④, ⑤, ⑥, ⑦, ⑧, ⑨, ⑩ ] # 修改候选项标签
# alternative_select_keys: ASDFGHJKL # 如编码字符占用数字键,则需另设选字键
# ascii_mode、inline、no_inline、vim_mode 等等设定,可参考 /Library/Input Methods/Squirrel.app/Contents/SharedSupport/squirrel.yaml
# 中西文切换
#
# 【good_old_caps_lock】 CapsLock 切换到大写或切换中英。