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
| let url = $request.url; | |
| let body = $request.body; | |
| url = url.replace(/&sim_code=[0-9]+/g,''); | |
| body = body.replace(/&sim_code=[0-9]+/g,''); | |
| $done({url, body}); |
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
| // date: 2020-07-06 | |
| // license: GPLv3 https://www.gnu.org/licenses/gpl-3.0.txt | |
| // author: nanpuyue <nanpuyue@gmail.com> https://blog.nanpuyue.com | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <unistd.h> | |
| #include <arpa/inet.h> | |
| #include <fcntl.h> | |
| #include <sys/epoll.h> |
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
| // date: 2020-01-10 | |
| // update: 2024-03-31 | |
| // license: GPLv3 https://www.gnu.org/licenses/gpl-3.0.txt | |
| // author: nanpuyue <nanpuyue@gmail.com> https://blog.nanpuyue.com | |
| #![feature(coroutines)] | |
| #![feature(coroutine_trait)] | |
| use std::ops::{Coroutine, CoroutineState}; | |
| use std::pin::Pin; |
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
| // date: 2020-01-10 | |
| // update: 2024-04-01 | |
| // license: GPLv3 https://www.gnu.org/licenses/gpl-3.0.txt | |
| // author: nanpuyue <nanpuyue@gmail.com> https://blog.nanpuyue.com | |
| #![feature(coroutines)] | |
| #![feature(coroutine_trait)] | |
| use std::ops::{Coroutine, CoroutineState}; | |
| use std::pin::Pin; |
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
| // date: 2019-01-09 | |
| // license: GPLv3 https://www.gnu.org/licenses/gpl-3.0.txt | |
| // author: nanpuyue <nanpuyue@gmail.com> https://blog.nanpuyue.com | |
| #![feature(generator_trait)] | |
| use std::ops::{Generator, GeneratorState}; | |
| use std::pin::Pin; | |
| use num_integer::Integer; |
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 | |
| # date: 2019-01-02 | |
| # license: GPLv3 https://www.gnu.org/licenses/gpl-3.0.txt | |
| # author: nanpuyue <nanpuyue@gmail.com> https://blog.nanpuyue.com | |
| def sha2_iv(n: int) -> int: | |
| square_root = pow(n, 1/2) | |
| decimal = square_root - int(square_root) | |
| return int(decimal * 0x100000000) |
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
| use std::env; | |
| use std::fs::File; | |
| use std::io::{stdin, Read}; | |
| use crc_all::CrcAlgo; | |
| use lazy_static::lazy_static; | |
| const BUFFER_SIZE: usize = 1024 * 16; | |
| fn crc32sum<R: Read>(r: &mut R) -> u32 { |
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
| #!/bin/sh | |
| # date: 2019-08-02 | |
| # license: GPLv3 https://www.gnu.org/licenses/gpl-3.0.txt | |
| # author: nanpuyue <nanpuyue@gmail.com> https://blog.nanpuyue.com | |
| MARK=404 | |
| TABLE=404 | |
| SETNAME="surfing telegram" | |
| VERBOSE=0 |
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
| // date: 2019-07-12 | |
| // license: GPLv3 https://www.gnu.org/licenses/gpl-3.0.txt | |
| // author: nanpuyue <nanpuyue@gmail.com> https://blog.nanpuyue.com | |
| package main | |
| import ( | |
| "bufio" | |
| "golang.org/x/net/context" | |
| "google.golang.org/appengine" |
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
| // date: 2019-07-12 | |
| // license: GPLv3 https://www.gnu.org/licenses/gpl-3.0.txt | |
| // author: nanpuyue <nanpuyue@gmail.com> https://blog.nanpuyue.com | |
| package main | |
| import ( | |
| "log" | |
| "net/url" | |
| "net/http" |