This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<!DOCTYPE module PUBLIC | |
"-//Checkstyle//DTD Checkstyle Configuration 1.3//EN" | |
"https://checkstyle.org/dtds/configuration_1_3.dtd"> | |
<!-- | |
Checkstyle configuration that checks the Google coding conventions from Google Java Style | |
that can be found at https://google.github.io/styleguide/javaguide.html | |
Checkstyle is very configurable. Be sure to read the documentation at |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
This DataviewJS View helps to add functionality to a Dataview Table. | |
THIS IS A BETA RELEASE - there are bugs and its not feature-complete | |
Version: v0.6.0 | |
Given a Dataview Query, this view will | |
- Execute the query | |
- Extract the headers/columns of the result | |
- Render filters to adjust the Dataview table results | |
- Render the table results, filtering and re-rendering on filter changes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.canvas-node-container:has(.diamond) { | |
transform:rotate(42deg); | |
overflow: visible; | |
contain: none; | |
position: absolute; | |
width: 150px; | |
height: 150px; | |
} | |
.canvas-node-content:has(.diamond) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# TODO convert to a role in https://github.com/serpro69/ansible-collection-devexp | |
# installs https://virtualenv.pypa.io/en/latest/index.html | |
# requires pipx - https://pypi.org/project/pipx/ | |
# pipx install virtualenv | |
# pip install --user --no-deps virtualenvwrapper # use no-deps to skip installing virtualenv via pip since it's installed via pipx | |
# export |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# TODO convert to a role in https://github.com/serpro69/ansible-collection-devexp | |
# https://guake.readthedocs.io/en/latest/user/installing.html#install-from-pypi | |
is_not_root() { | |
[ "${EUID:-$(id -u)}" -ne 0 ] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# rsync-homedir-excludes | |
# | |
# A list of files to exclude when backing up *nix home directories using rsync. | |
# | |
# Author: Ruben Barkow-Kuder <https://github.com/rubo77/rsync-homedir-excludes> | |
# Version: 2019-11-30 | |
# | |
# #Usage: | |
# USER=<homedir username here> | |
# rsync -aP --exclude-from=rsync-homedir-excludes.txt /home/$USER/ /media/$USER/linuxbackup/home/$USER/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
Tracks mission-related KPIs (goals) targets from daily notes. | |
Daily notes' frontmatter structure: | |
``` | |
--- | |
mission: | |
220_01_332: | |
water: 2000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
```dataviewjs | |
// find dates based on format [[YYYY-MM-DD]] | |
const findDated = (task)=>{ | |
if( !task.completed ) { | |
task.link = " " + "[[" + task.path + "|*]]"; | |
task.date=""; | |
const found = task.text.match(/\[\[([12]\d{3}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01]))\]\]/); | |
if(found) task.date = moment(found[1]); | |
return true; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%* | |
/* | |
# Hypothes.idian a templater script for retrieving annotations from Hypothes.is | |
Dev: TfTHacker https://twitter.com/TfTHacker | |
# Prerequisites: | |
+ Templater plugin by https://github.com/SilentVoid13/Templater | |
+ Free Hypothes.is developer token from: https://hypothes.is/account/developer | |
+ This script will prompt you for his token and save it to a file called "hypothesis config.md" | |
+ This file store your configuration and can be located any where in your vault. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let pages = dv.pages('#daylog'); | |
// Loop through pages | |
for (let p of pages) { | |
let noteText = await dv.io.load(p.file.path); | |
// define headers to look for | |
const headers = ["🧭 Personal", "💻 Work"]; | |
headers.map((header) => { |
NewerOlder