Skip to content

Instantly share code, notes, and snippets.

Kepi kepi

View GitHub Profile
@kepi
kepi / org-archive-subtree-hierarchical.el
Last active Jun 24, 2020
Hierarchical archiving for Org-mode
View org-archive-subtree-hierarchical.el
;; org-archive-subtree-hierarchical.el
;;
;; version 0.2
;; modified from https://lists.gnu.org/archive/html/emacs-orgmode/2014-08/msg00109.html
;; modified from https://stackoverflow.com/a/35475878/259187
;; In orgmode
;; * A
;; ** AA
;; *** AAA
@kepi
kepi / mySurfingKeys.js
Created May 21, 2016
my Surfingkeys Settings
View mySurfingKeys.js
// an example to create a new mapping `ctrl-y`
mapkey('<Ctrl-y>', 'Show me the money', function() {
});
// an example to replace `u` with `?`, click `Default mappings` to see how `u` works.
map('?', 'u');
// an example to remove mapkey `Ctrl-i`
unmap('<Ctrl-i>');
View 45fix-usb-wakup.sh
#!/bin/bash
# (/usr)/lib/systemd/system-sleep/45fix-usb-wakup
# Disable wakup from USB devices
#
# This is just modification of pm-utils script for systemd sleep hook
# from https://gist.github.com/rutsky/1ed8e9779f0b2941c5a6
[[ "$1" = "pre" ]] || exit 0
@kepi
kepi / ukol.php
Created Dec 18, 2015
Programáckej úkol
View ukol.php
<?php
$pole_jak_svin = Array(76,101,105,97,32,79,114,103,97,110,97);
function c($x)
{
$z = Array();
foreach($x as $y) {
$z[] = $y/3;
}
return $z;
@kepi
kepi / cust_cz_us
Last active Dec 15, 2015
Custom cz_us keyboard - Work in progress. >>>> Klasická us klávesnice, ale namísto čísel jsou české znaky. Se shiftem se píšou anglické speciální znaky. Čísla lze psát buď přes altgr nebo na numerické klávesnici.
View cust_cz_us
default
xkb_symbols "basic" {
include "us(basic)"
name[Group1]="Czech (custom US)";
key <TLDE> { [ equal, plus, asciitilde, grave ] };
key <AE01> { [ uring, exclam, 1, dead_tilde ] };
key <AE02> { [ ecaron, at, 2, dead_caron ] };
key <AE03> { [ scaron, numbersign, 3, dead_circumflex ] };
You can’t perform that action at this time.