Skip to content

Instantly share code, notes, and snippets.

@ZtupidTS
ZtupidTS / txt
Created March 24, 2024 15:16
VLBS19
MRagJQ>2MA>3G+T2c@I2FWurHd/1MRagJQ>2MA>3G+Ugc@A2FGvDMPn?W/KBPfSIO-R3HPUjWSQfSVT5Iir@Qlt-TRqSTAAtGsP/Kf^.HS?uIeG)MRV/J>dvKQEuH=T0Kvb/FCCvIuK*Mh`0JN;`
Registered Name: https://zhile.io
License Key: 48891cf209c6d32bf4
@ZtupidTS
ZtupidTS / move_and_rename.sh
Created January 23, 2023 14:19 — forked from nestserau/move_and_rename.sh
bash: Move and rename multiple files
find /path/to/directory -name "*.ext" -exec bash -c 'mv {} $(echo {} | sed -e "s/foo/bar/")' \;
@ZtupidTS
ZtupidTS / gist:228ed481144ddf542e8eeaa273f459bf
Created January 12, 2023 14:38 — forked from adammw/gist:6257550
HLS / M3U8 Downloader for AES-128 Encrypted Streams
#!/usr/bin/env node
// M3U8 Downloader (not working)
var fs = require('fs');
var http = require('http');
var https = require('https');
var crypto = require('crypto');
var program = require('commander');
var ee = require('streamee');
@ZtupidTS
ZtupidTS / crypto-js.js
Created September 27, 2021 15:17 — forked from cynecx/crypto-js.js
crypto-js
;(function (root, factory) {
if (typeof exports === "object") {
// CommonJS
module.exports = exports = factory();
}
else if (typeof define === "function" && define.amd) {
// AMD
define([], factory);
}
else {
openssl genrsa -out privkey.pem 768
openssl pkcs8 -topk8 -nocrypt -in privkey.pem -out privkey2.pem
@ZtupidTS
ZtupidTS / background.js
Created August 9, 2021 03:13 — forked from Rob--W/background.js
Implementation example of writable response bodies for Chromium extensions (API draft).
/**
* Implementation example of writable response bodies.
* Based on the draft of the Streams API (19 March 2014)
* https://dvcs.w3.org/hg/streams-api/raw-file/tip/Overview.htm
* Design document for response body reading/writing:
* https://docs.google.com/document/d/1iE6M-YSmPtMOsec7pR-ILWveQie8JQQXTm15JKEcUT8
*/
/* globals chrome, ByteStream, URL, XMLHttpRequest */
'use strict';
@ZtupidTS
ZtupidTS / baiduyun.py
Created August 7, 2021 10:56 — forked from phyng/baiduyun.py
测试百度服务对不同referer的响应
import requests
referers = [
'',
'https://www.v2ex.com/',
'https://www.xxoo.com/',
'https://www.google.com/',
'http://www.baidu.com/',
'http://www.sogou.com/',
/*
Script by @Jayremnt, 2021.
Improved by @MonokaiJs.
Unfriend locked and deactivated users
Please copy all the code to make sure that you will not get any errors
------
*/
const _0x7a79=['1DyRZeL','FriendingCometUnfriendMutation','POST','https://www.facebook.com/api/graphql/','\x20người\x20đã\x20ẩn\x20tài\x20khoản.\x20Tiếp\x20tục\x20lấy\x20dữ\x20liệu...','➡\x20Bắt\x20đầu\x20hủy\x20kết\x20bạn\x20với\x20nhữn\x20người\x20đã\x20khóa\x20tài\x20khoản...','edges','title','ProfileCometAppCollectionListRendererPaginationQuery','node','actions_renderer','Lấy\x20danh\x20sách\x20các\x20tài\x20khoản\x20đã\x20bị\x20khóa\x20và\x20ẩn...','DTSGInitialData','onreadystatechange','\x20người.\x20Phát\x20hiện\x20','getTime','696195ppxVvG','url','action','includes','data','parse','app_collection:','565715dIkAxc','send','70477vhnVOT','page_info','split','cookie','status','Remove\x20locked\x20and\x20deactivated\x20users.','Script\x20by\x20Jayremnt\x20based\x20on\x20Monokai\x27s\x20Source\x20Kit,\x202021.','then','stringify'
@ZtupidTS
ZtupidTS / fb_classic.js
Created August 6, 2021 06:37 — forked from buihuynhhung/fb_classic.js
Chuyển FB về giao diện cũ
javascript:(()=>{let e=require("DTSGInitialData").token||document.querySelector('[name="fb_dtsg"]').value,t=require("CurrentUserInitialData").USER_ID||document.cookie.match(/c_user=([0-9]+)/)[1];fetch("https://www.facebook.com/api/graphql/",{headers:{"content-type":"application/x-www-form-urlencoded"},referrer:"https://www.facebook.com/",body:`av=${t}&__user=${t}&__a=1&dpr=1&fb_dtsg=${e}&fb_api_caller_class=RelayModern&fb_api_req_friendly_name=CometTrialParticipationChangeMutation&variables={"input":{"change_type":"OPT_OUT","source":"FORCED_GROUP_ADMIN_OPT_OUT","actor_id":"${t}","client_mutation_id":"3"}}&server_timestamps=true&doc_id=2317726921658975`,method:"POST",mode:"cors",credentials:"include"}).then(e=>{console.log("Done"),location.reload()})})();