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 / .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 / .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 / 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
#!/bin/bash
DPKGS=(python3 python3-pip)
PIPS=(requests datetime)
# check if user running script is root
if [[ "$EUID" != 0 ]]
then
echo "Please, run this script with superuser privileges."
exit 1
fi
@LordShedy
LordShedy / jlav.py
Last active October 3, 2019 09:40
JSON Loader And Validator
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# created by Lord Shedy
# version: 1.0.1
import json
from jsonschema import validate
from datetime import datetime
"""
@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 / 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 / .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 / blocklist.txt
Last active January 30, 2020 12:33
BlockList for DNSCrypt
This file has been truncated, but you can view the full file.
00005ik.rcomhost.com
0001.2waky.com
000free.us
000freexxx.com
000.gaysexe.free.fr
000lk3v.wcomhost.com
000lkub.rcomhost.com
000ll4q.rcomhost.com
000lp59.wcomhost.com
000m9w3.wcomhost.com