This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/bash | |
# @gist.github.com/motebaya at 21.11.2023 - 8.57PM | |
extract() { outputWp="Pgr_Wallpaper";if [[ ! -d "$outputWp" ]];then mkdir -p "$outputWp";echo -e " [*] Output: $(realpath $outputWp)";fi;i=1;pictureList=$(curl -s -H "User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36" -L "https://media-cdn-zspms.kurogame.net/pnswebsite/website2.0/json/G167/MainMenu.json" | jq '.picture' | jq '[.[] | select(.imgUrl)]' | jq -c '.[]');while IFS="\n" read -r url; do target=$(jq -r '.imgUrl' <<<$url);echo -e " [*] Downloading [\x1b[32m$target\x1b[0m] Wallpaper: $i of $(wc -l <<<\"$pictureList\")";wget -qnc --show-progress "$target" -P "$outputWp";((++i));trap 'echo " [*] Remove Uncompleted: $outputWp/$(basename $target)"; rm -rf "$outputWp/$(basename $target)"; exit 1;' SIGINT ;done <<<"$pictureList";};extract |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import axios from "axios"; | |
import winston from "winston"; | |
import * as AxiosLogger from "axios-logger"; | |
// https://github.com/winstonjs/winston#formats | |
const logger = winston.createLogger({ | |
level: "debug", | |
format: winston.format.combine( | |
winston.format.colorize(), | |
winston.format.timestamp({ format: "HH:mm:ss" }), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/node | |
const axios = require("axios"); | |
const progress = require("cli-progress"); | |
const fs = require("fs"); | |
const async = require("async"); | |
// https://stackoverflow.com/questions/10420352/converting-file-size-in-bytes-to-human-readable-string | |
const filesize = (a, b, c, d, e) => { | |
return ( | |
((b = Math), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
include "./vendor/autoload.php"; | |
use \GuzzleHttp\Client; | |
use \Symfony\Component\Console\Helper\ProgressBar; | |
use \Symfony\Component\Console\Output\ConsoleOutput; | |
/** | |
* https://stackoverflow.com/questions/15188033/human-readable-file-size |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# @credit: @gist.github.com/motebaya | |
# @modify: 2023-08-21 10:48:13.274582300 +0700 | |
# @gist: simple async multi threading python for download batch file | |
# @docs: | |
# https://rich.readthedocs.io/en/latest/progress.html | |
# https://github.com/Textualize/rich/discussions/1102 | |
# https://testfiledownload.com/ | |
# https://stackoverflow.com/questions/64282309/aiohttp-download-large-list-of-pdf-files |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
replace all fuc, vars, and class name to readable word | |
credit: github.com/motebaya a.k.a mochino | |
Change: 2023-03-17 19:41:39.631431600 +0700 | |
*/ | |
include "../vendor/autoload.php"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
@for get readable word to change function or variable name | |
@credit: t.me/dvinchii a.k.a michino | |
File: word.php | |
Size: 1966 Blocks: 8 IO Block: 4096 regular file | |
Device: 10304h/66308d Inode: 243109 Links: 1 | |
Access: (0777/-rwxrwxrwx) Uid: ( 1000/ mochino) Gid: ( 1000/ mochino) | |
Access: 2023-05-02 12:32:30.134484200 +0700 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name block otakudesu | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author Mochino a.k.a motebaya | |
// @include /^https:\/\/otakudesu\.*\/* | |
// @match *://otakudesu\.*\/* | |
// @match *://kusonime\.*\/* | |
// @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name dont click ads | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author Mochino | |
// @include /^https:\/\/www\d+.zippyshare.com\/v\/\w*/ | |
// @match *://www\d+.zippyshare.com\/v\/\w* | |
// @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw== | |
// @grant none |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
i convert it from js to python then from python to php LOL | |
credit: github.com/motebaya | |
*/ | |
class Decoder | |
{ | |
private $content; |