Skip to content

Instantly share code, notes, and snippets.

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

Alessandro Tegner hashtegner

🏠
Working from home
View GitHub Profile
@hashtegner
hashtegner / obsidian-web-clipper.js
Created August 9, 2024 13:13 — forked from kepano/obsidian-web-clipper.js
Obsidian Web Clipper Bookmarklet to save articles and pages from the web (for Safari, Chrome, Firefox, and mobile browsers)
javascript: Promise.all([import('https://unpkg.com/turndown@6.0.0?module'), import('https://unpkg.com/@tehshrike/readability@0.2.0'), ]).then(async ([{
default: Turndown
}, {
default: Readability
}]) => {
/* Optional vault name */
const vault = "";
/* Optional folder name such as "Clippings/" */
javascript: Promise.all([import('https://unpkg.com/turndown@6.0.0?module'), import('https://unpkg.com/@tehshrike/readability@0.2.0'), ]).then(async ([{
default: Turndown
}, {
default: Readability
}]) => {
/* Optional vault name */
const vault = "knowledge";
/* Optional folder name such as "Clippings/" */
### Keybase proof
I hereby claim:
* I am alesshh on github.
* I am alesshh (https://keybase.io/alesshh) on keybase.
* I have a public key ASAwFEA3DhNyw4ffjnVxrZwvJ4O8O6_PAhl4BFR8DMHPWAo
To claim this, I am signing this object:
@hashtegner
hashtegner / mongod.service
Created October 13, 2016 13:25 — forked from benileo/mongod.service
Systemd Service Script for Mongod On Ubuntu 15.04, 15.10, 16.04 Xenial
[Unit]
Description=High-performance, schema-free document-oriented database
Documentation=man:mongod(1)
After=network.target
[Service]
Type=forking
User=mongodb
Group=mongodb
@hashtegner
hashtegner / alesshh.zsh-theme
Last active August 29, 2015 14:20
oh-my-zsh alesshh theme
function ruby_version_prompt_info() {
local ruby_version=`ruby -e 'puts RUBY_VERSION'`
echo "${fg[red]}[${ruby_version}]"
}
PROMPT=$'%{$fg[green]%}%/%{$reset_color%} %{$fg[red]%}[$(hostname -s)] $(ruby_version_prompt_info) $(git_prompt_info) $(bzr_prompt_info)%{$fg[white]%}%{$reset_color%} %{$reset_color%}
%{$fg_bold[black]%}>%{$reset_color%} '