Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View BANKA2017's full-sized avatar
💻
NeXT Monitor

BANKA2017

💻
NeXT Monitor
View GitHub Profile
@BANKA2017
BANKA2017 / lyrics.js
Created March 24, 2024 08:51
Download lyrics from genius in browser console
// download lyrics from genius in browser console
const artists = {
poppin_party: 2041573,
afterglow: 2600308,
pastel_palettes: 2967893,
roselia: 2599982,
hello_happy_world: 2968729,
morfonica: 2601112,
raise_a_suilen: 2531378,
@BANKA2017
BANKA2017 / messages.po
Last active October 16, 2018 14:53
raspap-webgui简体中文化
# RaspAP Portable Object file
# Project home: https://github.com/billz/raspap-webgui
# Licensed under the GNU General Public License v3.0
# This file is distributed under the same license as the RaspAP package
# FIRST AUTHOR billzimmerman@gmail.com, 2017
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: 1.2.1\n"
@BANKA2017
BANKA2017 / line_sticker_getter.php
Created September 17, 2018 07:18
get sticker pack from line store
<?php
$b = 0;//stickerpack id
$a = file_get_contents('https://store.line.me/stickershop/product/' . $b);
preg_match_all('/https:\/\/stickershop.line-scdn.net\/stickershop\/v1\/sticker\/([1-9][0-9]*)\/ANDROID\/sticker.png/',$a,$d);
$e = count($d[1]);
if(!file_exists(dirname(__FILE__) . '/' . $b . '/')){
mkdir(dirname(__FILE__) . '/' . $b . '/');
}
for($x=0;$x<$e;$x++) {
file_put_contents(dirname(__FILE__) . '/' . $b . '/' . $d[1][$x] . '.png',file_get_contents($d[0][$x]),LOCK_EX);
@BANKA2017
BANKA2017 / freenom_renewer.php
Last active February 19, 2023 01:21
freenom_renewer
<?php
$username = '';//email
$password = '';//password
$months = '12';//months (1-12)
$telegram_bot_token = "";
$telegram_chat_id = "";
if(!$username || !$password){
die("freenom_renewer: no username or password...\n");
@BANKA2017
BANKA2017 / xueshu.php
Last active February 11, 2019 08:06
百度学术任务
<?php
$bduss = '';//填入bduss
$cookie = 'BDUSS='.$bduss;
function t($tk,$cookie) {
$url = 'https://xueshu.baidu.com/usercenter/show/userinfo?cmd=update_task&task_type='.$tk;
$ch = curl_init($url);
curl_setopt($ch,CURLOPT_USERAGENT ,'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36');
curl_setopt($ch,CURLOPT_RETURNTRANSFER ,true);
curl_setopt($ch,CURLOPT_COOKIE ,$cookie);
$content = json_decode(curl_exec($ch),true);
@BANKA2017
BANKA2017 / getbduss.class.php
Last active August 18, 2020 16:33
百度扫码登录
<?php
/* KDboT
* @banka2017 & KD·NETWORK
*/
class getBDUSS{
public function getqrcode(){
$get_qrcode = json_decode(file_get_contents('https://passport.baidu.com/v2/api/getqrcode?lp=pc'),true);
if(isset($get_qrcode["imgurl"]) && isset($get_qrcode["sign"])){
$r = ["sign" => $get_qrcode["sign"], "imgurl" => $get_qrcode["imgurl"]];
}else{
@BANKA2017
BANKA2017 / run.php
Created April 14, 2018 14:05
apkpure的apk文件抓取
<?php
$task = json_decode(file_get_contents(dirname(__FILE__) . "/task.json"), 1);
for ($x = 0; $x < count($task); $x++) {
$name = $task[$x];
$ch = curl_init();
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_URL, "https://m.apkpure.com/cn/{$name[0]}");
curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36');
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
@BANKA2017
BANKA2017 / bing.php
Last active March 14, 2019 04:46
bing每日一图抓取脚本
<?php
ignore_user_abort(true);
$path=date('Ym');
if(!file_exists(dirname(__FILE__).'/'.$path)){
mkdir(dirname(__FILE__).'/'.$path,0777);
}
$pathurl = dirname(__FILE__).'/'.$path.'/'.date('d').'.jpg';
if(!is_file($pathurl)){
$str=json_decode(file_get_contents('https://cn.bing.com/HPImageArchive.aspx?idx=0&n=1&format=js'),1)
if(!empty($str["images"][0]["urlbase"])){