Skip to content

Instantly share code, notes, and snippets.

View rainrisa's full-sized avatar
🏠
Working from home

Ra rainrisa

🏠
Working from home
View GitHub Profile
@rainrisa
rainrisa / git-reset-author.sh
Created June 11, 2025 02:54 — forked from bgromov/git-reset-author.sh
Git: reset author for ALL commits
#!/bin/sh
# Credits: http://stackoverflow.com/a/750191
git filter-branch -f --env-filter "
GIT_AUTHOR_NAME='Newname'
GIT_AUTHOR_EMAIL='new@email'
GIT_COMMITTER_NAME='Newname'
GIT_COMMITTER_EMAIL='new@email'
" HEAD
@rainrisa
rainrisa / common_words.txt
Created May 15, 2025 01:40 — forked from alshaya/common_words.txt
Common English words
the
of
to
and
a
in
is
it
you
that
@rainrisa
rainrisa / bootloader.sh
Last active March 19, 2025 18:19 — forked from Welpyes/bootloader.sh
pseudo systemd like bootloader script for termux
#!/bin/bash
# **NOTE**
# This is just the bootloader startup script,
# if you want to get a log in script
# for proot-distro i recommend visiting this repo
# https://github.com/LinuxDroidMaster/Termux-Desktops/
# Global Variables
// ==UserScript==
// @name Spotify ad skipper
// @version 1.0
// @namespace http://tampermonkey.net/
// @description Detects and skips ads on spotify
// @match https://*.spotify.com/*
// @grant none
// @run-at document-start
// @downloadURL https://gist.github.com/Simonwep/24f8cdcd6d32d86e929004013bd660ae/raw
// @updateURL https://gist.github.com/Simonwep/24f8cdcd6d32d86e929004013bd660ae/raw
@rainrisa
rainrisa / vim_cheatsheet.md
Created October 23, 2022 17:11 — forked from awidegreen/vim_cheatsheet.md
Vim shortcuts

Introduction

  • C-a == Ctrl-a
  • M-a == Alt-a

General

:q        close
:w        write/saves
:wa[!]    write/save all windows [force]
:wq       write/save and close
@rainrisa
rainrisa / note.md
Created August 12, 2022 21:47 — forked from uWynell/note.md
Telegraf parallel handling

Introduction

Telegraf handles all requests sequentially, one after another. I won't get into details about why it might be done like that by default, but sometimes it's not really what you want.

So I had this problem too. While the bot was handling one heavy command, it could not handle other commands at the same time. Even if they were in different chats. That was quite a problem for me.

I didn't dive inside Telegraf, instead I just came up with a guess and it worked. I'm just sharing my experience, you might need to tweak the code for yourself a little.

Solutions