Skip to content

Instantly share code, notes, and snippets.

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

Jiangjin Wang RedL0tus

🤦‍♀️
咸鱼
View GitHub Profile
@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 / config.json
Created October 4, 2018 05:13
Not-Chicory!
{
"against": [
"\u4e0d\u662f"
],
"blacklist": {
"chars": [
"\u200b"
],
"ids": []
},
@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 / year_progress.sh
Last active December 12, 2023 16:09
\\\ Year Progress ///
# Year Progress
export LENGTH=20;
function GET_PERCENTAGE {
local CURRENT_YEAR=$(date +%Y);
if [ $((CURRENT_YEAR % 400)) -eq 0 ]; then
local TOTAL_DAYS=366;
elif [ $((CURRENT_YEAR % 100)) -eq 0 ]; then
local TOTAL_DAYS=365;
elif [ $((CURRENT_YEAR % 4)) -eq 0 ]; then
@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: