Skip to content

Instantly share code, notes, and snippets.

View RedL0tus's full-sized avatar
🤦‍♀️
咸鱼

Jiangjin Wang RedL0tus

🤦‍♀️
咸鱼
View GitHub Profile
@RedL0tus
RedL0tus / keybase.md
Created May 16, 2017 03:10
My Keybase proof ( https://keybase.io )

Keybase proof

I hereby claim:

  • I am RedL0tus on github.
  • I am kaymw (https://keybase.io/kaymw) on keybase.
  • I have a public key whose fingerprint is 39B2 9DC9 5B30 8595 FCED 14AE 547E 5906 116A 1966

To claim this, I am signing this object:

@RedL0tus
RedL0tus / mark_read.py
Last active April 10, 2018 05:05
Mark recent dialogs as read in telegram by using telegram-cli and pytg
#!/usr/bin/env python3
#-*- encoding: utf-8 -*-
# please install pytg and telegram-cli before running this script
# pytg: https://github.com/luckydonald/pytg
# telegram-cli: https://github.com/vysheng/tg
from pytg import Telegram
def main():
@RedL0tus
RedL0tus / ayy.sh
Last active December 4, 2018 02:14
Let's replace f-words with blyat!
#!/bin/bash
# Ayy blyat!
# Replace all f-words with "blyat".
# set -x;
declare -A WORDS;
WORDS=( ["fuck"]="blyat"
["fucK"]="blyaT"
@RedL0tus
RedL0tus / saas.py
Last active December 30, 2018 01:59
Telegram Spammer as a Service
#!/usr/bin/env python3
# -*- encoding: utf-8 -*-
# Telegram Spammer as a Service - Test how fast your anti-spam bot is
# Copyright (C) 2018 Kay Lin <kaymw@member.fsf.org>
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
@RedL0tus
RedL0tus / nick.py
Created December 30, 2018 07:39
Real time nick
#!/usr/bin/env python3
# -*- encoding: utf-8 -*-
import time
FIRST_NAME = '咸鱼'
LAST_NAME = '@ %H:%M GMT' # Follow the rules of Python's strftime
START_TIME = time.time()
@RedL0tus
RedL0tus / chance.rs
Last active May 6, 2019 02:23
Balls!
#!/usr/bin/env run-cargo-script
//! A verification of the question with boxes and balls.
//!
//! ```cargo
//! [dependencies]
//! rand = "0.6"
//! num_cpus = "1.10"
//! ```
extern crate rand;
@RedL0tus
RedL0tus / worker.js
Last active October 14, 2019 05:13
WhiteAlbum.ICU(or https://waicu.v2bv.workers.dev/ ) - Send all whitealbium-ists to the ICU!
const HTMLResponse = `<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="白学家关起来">
<title>白学家关起来</title>
</head>
<body style="margin:0;padding:0;">
@RedL0tus
RedL0tus / quadruples.rs
Created October 29, 2019 07:53
USAMTS - 3/2/31: Brute force
#!/usr/bin/env run-cargo-script
//! USAMTS - 3/2/31
//!
//! ```cargo
//! [dependencies]
//! num = "~0.2"
//! ```
const LIMIT: u128 = 100;
const NUM_THREADS: usize = 8;
@RedL0tus
RedL0tus / arduinix.ino
Last active January 8, 2020 12:57
Code for Arduinix
/*
* This code is intended to use with Arduinix Shield
*
* 2019-12-22: Basic functionalities by Kay Lin
*
* This is free and unencumbered software released into the public domain.
*
* Anyone is free to copy, modify, publish, use, compile, sell, or
* distribute this software, either in source code form or as a compiled
* binary, for any purpose, commercial or non-commercial, and by any
@RedL0tus
RedL0tus / index.html
Last active August 19, 2020 20:19
gf.v2bv.net
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>嘿嘿嘿嘿嘿嘿</title>
<meta name="description" content="SaltedFish Network Status" />
<link href="https://fonts.googleapis.com/css?family=Inconsolata:400,700&amp;subset=latin-ext,vietnamese"rel="stylesheet" />
<style>