Skip to content

Instantly share code, notes, and snippets.

View louiszuckerman's full-sized avatar

Louis Zuckerman louiszuckerman

View GitHub Profile
@kepano
kepano / obsidian-web-clipper.js
Last active June 27, 2024 14:59
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/" */
@thomasbiddle
thomasbiddle / gitlab-routes
Created June 27, 2013 22:45
Gitlab routes - Someone in IRC was looking for a list of routes for Gitlab
search GET /search(.:format) search#show
api_api /api API::API
sidekiq /admin/sidekiq Sidekiq::Web
/ #<Rack::Builder:0x00000003edd110 @run=#<Grack::Server:0x00000003edcdf0 @config={:git_path=>"/usr/bin/git", :project_root=>"/home/git/repositories/", :upload_pack=>true, :receive_pack=>true}>, @map=nil, @use=[#<Proc:0x00000003edce18@/home/inflection/.rvm/gems/ruby-1.9.3-p194/gems/rack-1.4.5/lib/rack/builder.rb:82>]>
help GET /help(.:format) help#index
help_api GET /help/api(.:format) help#api
@schewara
schewara / gist:5668621
Last active May 21, 2018 18:48 — forked from louiszuckerman/gist:1346387
Logstash parser for ModSecurity/CRS entries in the Apache ErrorLog
Logstash Configuration...
input {
file {
format => "plain"
path => "/var/log/apache2/*error.log"
type => "apacheerror"
}
}
filter {
@ziadoz
ziadoz / awesome-php.md
Last active May 10, 2024 15:06
Awesome PHP — A curated list of amazingly awesome PHP libraries, resources and shiny things.