Skip to content

Instantly share code, notes, and snippets.

View munen's full-sized avatar

Zen Monk Alain M. Lafon munen

View GitHub Profile
@munen
munen / init.el
Created June 3, 2021 09:03
Small step towards auto-updating source blocks from a batch process
(require 'org)
(org-babel-do-load-languages
'org-babel-load-languages
'((shell . t)
(ruby . t)
(emacs-lisp . t)))
;; Don’t ask to execute a code block.
(setq org-confirm-babel-evaluate nil)
FROM ubuntu:16.04
MAINTAINER 200ok <info@200ok.ch>
RUN apt-get update && \
apt-get install -y software-properties-common && \
add-apt-repository ppa:mfikes/planck && \
apt-get update && \
apt-get install -y planck
RUN chmod +x /usr/bin/planck
@munen
munen / gist:fb52d021468c98f374b8f843827c95ff
Created May 9, 2020 13:27
organice - Google Drive verification request
Hi,
Thanks for your patience while we reviewed your project.
To continue the verification process for your project quickstart-1567408982418, you need to provide a homepage that accurately represents your app to Google users. Every OAuth2 project requires a homepage.
To make sure your users’ understanding of what your app does, your homepage must do the following:
Clearly explain what your app will do with user data.
Thoroughly describe how your app enhances user functionality.
(ns corona-stats.core
(:require [clojure.data.csv :as csv]))
(def csv-link "https://docs.google.com/spreadsheets/d/e/2PACX-1vQU0SIALScXx8VXDX7yKNKWWPKE1YjFlWc6VTEVSN45CklWWf-uWmprQIyLtoPDA18tX9cFDr-aQ9S6/pub?single=true&output=csv")
(def raw-data (slurp csv-link))
(defn csv-data->maps [csv-data]
(map zipmap
@munen
munen / capture-templates.el
Created May 1, 2016 11:04
Create custom capture templates for emacs
(setq org-capture-templates
'(("t" "Todo" entry (file+headline (concat org-directory "inbox.org") "Tasks")
"* TODO %?\n %U\n %i\n %a")
("s" "Code Snippet" entry
(file (concat org-directory "snippets.org"))
;; Prompt for tag and language
"* %?\t%^g\n#+BEGIN_SRC %^{language}\n\n#+END_SRC")
("m" "Media" entry
(file+datetree (concat org-directory "media.org"))
"* %?\nURL: \nEntered on %U\n")))
@munen
munen / merge_locales.rb
Created June 7, 2011 13:05 — forked from branch14/merge_locales.rb
Interactively merge several YAML files into one
#!/usr/bin/env ruby
#
# synopsis
#
# ruby merge_locales.rb config/locales translations.yml
require 'yaml'
require 'rubygems'
require 'highline/import'
@munen
munen / check-amazon-for-ability-to-ship.js
Last active October 21, 2018 18:48
Greasemonkey script which finds the articles which actually can be shipped to your country
// ==UserScript==
// @name Check Amazon for ability to ship to CH
// @version 1
// @grant none
// @include https://www.amazon.de/*
// @require https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js
// ==/UserScript==
// BEGIN: Logic Article Page
// Check if article cannot be sent to CH and if so, close the tab
@munen
munen / annotations.org
Last active December 28, 2016 22:32
32c3 CCC Talk annotations

Keybase proof

I hereby claim:

  • I am munen on github.
  • I am munen (https://keybase.io/munen) on keybase.
  • I have a public key whose fingerprint is 79D6 2944 374F 5C7A A4DF 71CD E87B 13F0 C583 3B41

To claim this, I am signing this object:

// By default Datatables uses the sType 'html' for its cells and sorting.
// Therefore the sort mechanism for this sType is overwritten here as seen here:
// http://datatables.net/development/sorting#type_based
din5007Relacement = function(x) {
x = x.replace("ä", "a");
x = x.replace("ö", "o");
x = x.replace("ü", "u");
x = x.replace("ß", "ss");
return x;