Skip to content

Instantly share code, notes, and snippets.

View lak's full-sized avatar

Luke Kanies lak

View GitHub Profile
@lak
lak / obsidian-web-clipper.js
Created September 22, 2024 21:47 — 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/[email protected]?module'), import('https://unpkg.com/@tehshrike/[email protected]'), ]).then(async ([{
default: Turndown
}, {
default: Readability
}]) => {
/* Optional vault name */
const vault = "";
/* Optional folder name such as "Clippings/" */
# The first run fails because there is no 'importantserver' placeholder resource.
frontend1(~) % puppet apply --storeconfigs --config ./puppet.conf pull.pp
Could not find dependency Placeholder[importantserver] for File[/tmp/y] at /home/jordan/pull.pp:12
# Have another server export this resource
ops(~/pp) % puppet apply --storeconfigs --config ./puppet.conf push.pp
# Try again, which works because the exported resource is found.
frontend1(~) !1! % puppet apply --storeconfigs --config ./puppet.conf pull.pp
notice: /Stage[main]/Bar/File[/tmp/y]/content: content changed '{md5}5a2f711ba4198f0db5e6b9e38a8f2d64' to '{md5}53cadf1c93f077aae3747e6507d7aa8e'
@lak
lak / gist:64023
Created February 13, 2009 17:30 — forked from anonymous/gist:64014
# /etc/puppet/modules/tomcat/manifests
class tomcat6 {
# define your resource type
define configuration($loglevel_default = 'DEBUG', $loglevel_httpclientapache = 'DEBUG', $loglevel_httpclientwire = 'DEBUG', $loglevel_sportex = 'DEBUG', $loglevel_lus = 'DEBUG', $loglevel_apache = 'DEBUG', $loglevel_springframework = 'DEBUG', $loglevel_quartz = 'DEBUG', $loglevel_apachecxf = 'DEBUG') {
file { "/etc/tomcat6/log4j.properties": content => template("tomcat6/log4j_properties.erb") }
}