Skip to content

Instantly share code, notes, and snippets.

View BelkaDev's full-sized avatar
🌊
I may be slow to respond.

Belka BelkaDev

🌊
I may be slow to respond.
View GitHub Profile
@BelkaDev
BelkaDev / script.js
Last active November 9, 2021 03:41
JVC AntiSpam
// ==UserScript==
// @name AntiSPAM++ JVC
// @author GodTier
// @description Antispam avancé pour jvc
// @version 1
// @match https://www.jeuxvideo.com/*
// @grant GM.setValue
// @grant GM.getValue
// @require http://code.jquery.com/jquery-3.4.1.min.js
// ==/UserScript==
@BelkaDev
BelkaDev / paste.sh
Last active November 19, 2021 10:27
A script to paste text/ run commands into active window
#!/usr/bin/bash
############
# @Description Paste stdin to current window
# @Author https://github.com/BelkaDev
# @Requires xclip,xdotool
# @Usage ${0} <string>
# @Usage <cmd> | ${0}
# @Example ${0} "hi"
# @Example curl -s "cht.sh/$(xclip -o -sel)?T?Q" | ${0}
############
@BelkaDev
BelkaDev / attach.sh
Last active April 18, 2020 14:18
dock a terminal (or any window) to any parent window under x environement
#!/bin/bash
# requires: bspwm,xdotool,wmctrl,wmutils...
# usage: attach.sh [n]
# n is the size of the docked window, 1 equals 100% the parent size, 2 is 50% and so on..
unset x y w h
# kill old instance of the script to save resources: only one terminal allowed
script_name=${BASH_SOURCE[0]}
for pid in $(pidof -x $script_name); do
if [ $pid != $$ ]; then