Skip to content

Instantly share code, notes, and snippets.

View heroheman's full-sized avatar
🏠
Working from home

Flowrence heroheman

🏠
Working from home
View GitHub Profile
@heroheman
heroheman / ADD_tasks_metadata.js
Last active August 29, 2023 06:16
Obsidian Templater Script - add task metadata to current line #obsidian #obsidian-md #obsidian-templater #templater #templater-script #tasks #obsidian-task
<%*
const format = 'blub'; // default format
// let metadataType = await tp.system.prompt('Enter the type of metadata (Priority, Repeat, Start, Scheduled, Due, Created, Completion)');
const metadataTypes = ['priority', 'repeat', 'start', 'scheduled', 'due', 'created', 'completion'];
const priorityTypes = ['highest', 'high', 'medium', 'low', 'due', 'lowest'];
const metadataType = await tp.system.suggester(metadataTypes, metadataTypes, true, 'Select the type of metadata');
let metadata;
@heroheman
heroheman / ebay.md
Last active October 12, 2018 09:20

Ich hasse Ebay Kleinanzeigen.

Ich hasse Ebay Kleinanzeigen.

Ich hasse Ebay Kleinanzeigen.

Ich hasse Ebay Kleinanzeigen.

Ich hasse Ebay Kleinanzeigen.

Ich hasse Ebay Kleinanzeigen.

Ich hasse Ebay Kleinanzeigen.

Ich hasse Ebay Kleinanzeigen.

Ich hasse Ebay Kleinanzeigen.

Ich hasse Ebay Kleinanzeigen.

Keybase proof

I hereby claim:

To claim this, I am signing this object:

@heroheman
heroheman / ubuntu-dev-setup.sh
Created March 12, 2018 18:39
A simple script for my webdev setup on ubuntu. My dotfiles are separated at: https://github.com/heroheman/dotfiles
#!/bin/bash
# Logging stuff.
function e_header() { echo -e "\n\033[1m$@\033[0m"; }
function e_success() { echo -e " \033[1;32m✔\033[0m $@"; }
function e_error() { echo -e " \033[1;31m✖\033[0m $@"; }
function e_arrow() { echo -e " \033[1;34m➜\033[0m $@"; }
e_header 'Update System'
e_arrow 'sudo apt update'
@heroheman
heroheman / spacemacs-cheatsheet.md
Last active October 15, 2024 04:44
Spacemacs Cheatsheet - A cheat sheet for my most common shortcuts in Spacemacs

General

Shortcut Description
SPC f e d Open Configuration
SPC f e R Reload Configuration
SPC SPC Search Emacs
SPC h SPC Search Spacemacs Layer
SPC f s Save Buffer
SPC q q Quit Emacs w/ Prompt
SPC q Q Quit Emacs w/o Prompt
@heroheman
heroheman / ranger-cheatsheet.md
Last active November 2, 2024 18:57
Ranger Cheatsheet

Ranger Cheatsheet

General

Shortcut Description
ranger Start Ranger
Q Quit Ranger
R Reload current directory
? Ranger Manpages / Shortcuts
@heroheman
heroheman / tmux-cheatsheet.md
Last active July 1, 2022 11:34
Tmux Simple Cheatsheet

Basic Tmux Cheatsheet

Sessions

In Bash

  • start new session: tmux
  • start new session with name: tmux new -s sessionname
  • show running sessions: tmux ls
  • attach last session: tmux a
  • attach session by name: tmux a -t sessionname
@heroheman
heroheman / .vimrc-relativenumbers
Last active September 7, 2016 21:34
Vim: Relative Number Toggle
" Function: RELATIVENUMBER"{{{
set relativenumber
" toggle line numbering mode
if exists("+relativenumber")
if v:version >= 400
set number
endif
set relativenumber " show relative line numbers
set numberwidth=3 " narrow number column
" cycles between relative / absolute / no numbering
@heroheman
heroheman / SassMeister-input-HTML.html
Created November 24, 2015 17:05
Generated by SassMeister.com.
<div class="teaser">
<div class=teaser__img>
<img src=http://placehold.it/350x100
</div>
<p class=teaser__text>
lorem ipsum
</p>
</div>
<div class="teaser--small no-js">
@heroheman
heroheman / SassMeister-input-HTML.html
Created November 24, 2015 17:00
Generated by SassMeister.com.
<div class="teaser">
<div class=teaser__img>
<img src=http://placehold.it/350x100
</div>
<p class=teaser__text>
lorem ipsum
</p>
</div>
<div class="teaser--small no-js">