Skip to content

Instantly share code, notes, and snippets.

View mjkloeckner's full-sized avatar

Martin Klöckner mjkloeckner

View GitHub Profile
This file has been truncated, but you can view the full file.
The Project Gutenberg eBook of Don Quijote
This eBook is for the use of anyone anywhere in the United States and
most other parts of the world at no cost and with almost no restrictions
whatsoever. You may copy it, give it away or re-use it under the terms
of the Project Gutenberg License included with this eBook or online
at www.gutenberg.org. If you are not located in the United States,
you will have to check the laws of the country where you are located
before using this eBook.
The Project Gutenberg eBook of Argentina, Legend and History
This eBook is for the use of anyone anywhere in the United States and
most other parts of the world at no cost and with almost no restrictions
whatsoever. You may copy it, give it away or re-use it under the terms
of the Project Gutenberg License included with this eBook or online
at www.gutenberg.org. If you are not located in the United States,
you will have to check the laws of the country where you are located
before using this eBook.
This file has been truncated, but you can view the full file.
The Project Gutenberg eBook of Diccionario Ingles-Español-Tagalog
This eBook is for the use of anyone anywhere in the United States and
most other parts of the world at no cost and with almost no restrictions
whatsoever. You may copy it, give it away or re-use it under the terms
of the Project Gutenberg License included with this eBook or online
at www.gutenberg.org. If you are not located in the United States,
you will have to check the laws of the country where you are located
before using this eBook.
@mjkloeckner
mjkloeckner / fix-grub-linux-display-version.diff
Last active October 15, 2024 18:20
Fix grub linux kernel display version
--- /etc/grub.d/10_linux
+++ /etc/grub.d/10_linux
@@ -144,7 +144,7 @@
fi
printf '%s\n' "${prepare_boot_cache}" | sed "s/^/$submenu_indentation/"
fi
- message="$(gettext_printf "Loading Linux %s ..." ${version})"
+ message="$(gettext_printf "Loading Linux %s ..." ${display_version})"
sed "s/^/$submenu_indentation/" << EOF
echo '$(echo "$message" | grub_quote)'
@mjkloeckner
mjkloeckner / main.ipynb
Last active September 18, 2024 15:39
Block diagram in jupyter notebook using dot language and pydot
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mjkloeckner
mjkloeckner / run-jupyter
Last active September 11, 2024 16:25
run jupyter notebook from *nix shell using docker
#!/bin/sh
# https://jupyter-docker-stacks.readthedocs.io/en/latest/index.html
# https://docs.docker.com/reference/cli/docker/container/exec/
systemctl is-active --quiet docker || systemctl start docker
systemctl is-active --quiet containerd || systemctl start containerd
PORT=8888
@mjkloeckner
mjkloeckner / objetos.gv
Last active June 13, 2024 20:45
DOT specification for graph of objects and attributes in CB100/tp2
digraph G {
node [ shape=box ];
compound=true;
subgraph cluster_objetos {
rankdir=same
node [ shape=box, style=filled, fillcolor=white ];
C [ label="Barrio" ];
D [ label="Parada" ];
label="Objetos";
@mjkloeckner
mjkloeckner / dwm-floatrules-relative-to-screen-size.patch
Created June 17, 2023 17:53
Allows the user to specify the position on the screen where a window should be spawned in percentage of the screen size.
commit a6d41f067eb1bc64eb5d721df4d2880c457fe82a
Author: mjkloeckner <martinjkloeckner@gmail.com>
Date: Sat Apr 15 21:09:02 2023 -0300
flaotrules relative to monitor size
floatrules now accepts a new option which is `isrel` in case of being 1
the floatx, floaty, floatw, floath can be specified in terms of the
percentage of the monitor with floating values in the range 0.00 - 1.00,
being 0.00: 0% and 1.00: 100%, 0.50: 50%, etc.
@mjkloeckner
mjkloeckner / vim-verbose-mark.vim
Last active June 7, 2022 22:25
vim verbosely create a mark
function VerboseMark()
echo ''
let c = nr2char(getchar())
exe "mark" c
echon "created mark '" c "' at line " line(".")
endfunction
nnoremap m :call VerboseMark()<CR>
@mjkloeckner
mjkloeckner / dmenu-mousesupport-scrollperline.diff
Created March 16, 2022 03:51
dmenu scroll one line per time (you need to have mousesupport patched already)
From 462180ca92f799021500ea43128dbd1817fb057a Mon Sep 17 00:00:00 2001
From: klewer-martin <martin.cachari@gmail.com>
Date: Wed, 16 Mar 2022 00:44:41 -0300
Subject: [PATCH] scroll per line support
---
dmenu.c | 25 +++++++++++++++++++------
1 file changed, 19 insertions(+), 6 deletions(-)
diff --git a/dmenu.c b/dmenu.c