Skip to content

Instantly share code, notes, and snippets.

@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 / .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 / 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 / .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 / .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 / 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 */