Skip to content

Instantly share code, notes, and snippets.

@LordShedy
LordShedy / master.gs
Last active March 8, 2019 08:30
Kód pro aplikaci Atletický záznamníku
function train() {
/* an instance of the class Ui allowing promts and stuff */
const ui = SpreadsheetApp.getUi();
/* main spreadsheet */
const atletickyZaznamnikSheet = SpreadsheetApp.openById("1tIvDM5W5DvVAf0a9QwqYzBUWX8j4JBujvfwr3Wlt2NQ");
if (SpreadsheetApp.getActiveSpreadsheet().getSheetName() != "atleti na tréninku") return;
/* (sub)sheets */
@LordShedy
LordShedy / .bashrc
Last active March 19, 2022 22:46
MyBash
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
function bk() {
@LordShedy
LordShedy / .bash_aliases
Last active January 19, 2020 19:24
Bash aliases
# function to hide aliases that do not work on MacOS
function drwn(){
if [[ `uname` != "Darwin" ]]
then
alias "${1}"
fi
}
### CD ###
alias home='cd ~'
@LordShedy
LordShedy / sshd_config.bash
Last active October 11, 2019 07:56
SSHD configuration
### SSH DAEMON configuration by LordShedy ###
# allow client to pass locale environment variables
AcceptEnv LANG LC_*
# specifies which IP address family sshd should use
# it is possible to set for any (any), IPv4 only (inet) or IPv6 only (inet6)
AddressFamily inet
# is ssh-agent forwarding permitted
@LordShedy
LordShedy / .vimrc
Last active July 14, 2019 22:06
Vim configuration
syn on " start using syntax highlighting
set termguicolors " using true colors in the reminal
colorscheme monokai " set custom colorscheme
set encoding=utf-8 " Encoding
set hidden " Allow hidden buffers
@LordShedy
LordShedy / guide.md
Created January 21, 2019 18:30
How to make AirPods work with linux (Debian 4.9.0-8-amd64)

Steps

  1. set "ControllerMode = bredr" in /etc/bluetooth/main.conf

  2. sudo /etc/init.d/bluetooth restart

  3. pair again.

@LordShedy
LordShedy / .conkyrc
Last active August 10, 2021 06:08
Conky
-- vim: ts=4 sw=4 noet ai cindent syntax=lua
conky.config = {
alignment = 'top_left',
background = false,
border_width = 0.5,
cpu_avg_samples = 4,
default_color = 'white',
default_outline_color = 'grey',
default_shade_color = 'black',
draw_borders = true,
@LordShedy
LordShedy / .Xmodmap
Last active June 24, 2019 13:30
keycode (number) = (key by itself) (Shift+key) (mode_switch+key) (mode_switch+Shift+key) (Alt Graph+key) (Alt Gra ph+Shift+key)
keycode 8 =
keycode 9 = Escape NoSymbol Escape NoSymbol Escape Escape
keycode 10 = plus 1 1 exclam exclam dead_tilde 1 exclam
keycode 11 = ecaron 2 2 at at dead_caron 2 at
keycode 12 = scaron 3 3 numbersign numbersign dead_circumflex 3 numbersign
keycode 13 = ccaron 4 4 dollar dollar dead_breve 4 dollar
keycode 14 = rcaron 5 5 percent percent dead_abovering 5 percent
keycode 15 = zcaron 6 6 asciicircum asciicircum dead_ogonek 6 asciicircum
keycode 16 = yacute 7 7 ampersand ampersand dead_grave 7 ampersand
keycode 17 = aacute 8 8 asterisk asterisk dead_abovedot 8 asterisk
@LordShedy
LordShedy / var_dump-cleanser.py
Last active August 7, 2021 22:42
I like using the funcion of var_dump to debug my python code but after the debuggement is over I am too lazy to delete the lines containing var_dump, this script I wrote does it for you.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import argparse
import sys
import logging
import re
LOGGER = logging.getLogger()
LOGGER_SEVERITY = logging.DEBUG
@LordShedy
LordShedy / checksumcontent.sh
Created July 18, 2019 07:23
Checking content of a file
#!/bin/bash
if [[ "$#" -lt 0 ]]
then
echo "Too little arguments, this script need some files to check!"
exit 0
fi
for i in "$@"
do