Skip to content

Instantly share code, notes, and snippets.

View davidelbe's full-sized avatar

David Elbe davidelbe

View GitHub Profile
@davidelbe
davidelbe / invoice.json
Last active August 28, 2020 14:27
JSON examples - Standout / Sirvoy
{
"id": 1234567,
"booking_id": 24,
"date": "2020-08-27",
"invoice_number": 243,
"company_id": 37,
"status": "unpaid",
"amount_excluding_vat": 1100.00,
"vat_amount": 275.00,
"total_amount": 1375.00,
;; David's Emacs config - requires Emacs 24.4 or later
;; Hide menu
(menu-bar-mode -1)
;; Always prefer utf-8
(prefer-coding-system 'utf-8)
(set-default-coding-systems 'utf-8)
(set-terminal-coding-system 'utf-8)
(set-keyboard-coding-system 'utf-8)
require 'net/https'
require 'time'
require 'date'
require 'pathname'
# Validate certificates from Let's Encrypt so they
# don't expire.
class CertValidator
def self.run
domains.each do |domain|

Keybase proof

I hereby claim:

  • I am davidelbe on github.
  • I am davidelbe (https://keybase.io/davidelbe) on keybase.
  • I have a public key ASDFlS1ZBm5OIhuO065iVLG9vk9w5-Teso_9a0dcDSZPfAo

To claim this, I am signing this object:

;; David's Emacs config - requires Emacs 24.4 or later
;; Hide menu
(menu-bar-mode -1)
;; Always prefer utf-8
(prefer-coding-system 'utf-8)
(set-default-coding-systems 'utf-8)
(set-terminal-coding-system 'utf-8)
(set-keyboard-coding-system 'utf-8)
@davidelbe
davidelbe / rubocop.rb
Created December 20, 2015 14:02
Rubocop helper
# rubocop:disable Metrics/MethodLength
...
# rubocop:enable Metrics/MethodLength

API - pajat

Create

POST /reports

latitude: longitude: description: tags: array with tags

.User {
width: 50%;
background: #fcf;
s {
color: #999;
font-style: italic;
}
h3 {
@davidelbe
davidelbe / .emacs
Last active November 29, 2022 13:28
My Emacs setup
;; David's Emacs config - requires Emacs 24.4 or later
;; Hide menu
(menu-bar-mode -1)
;; Move between windows with ESC + arrow
(global-set-key (kbd "ESC <left>") 'windmove-left)
(global-set-key (kbd "ESC <right>") 'windmove-right)
(global-set-key (kbd "ESC <up>") 'windmove-up)
(global-set-key (kbd "ESC <down>") 'windmove-down)
@davidelbe
davidelbe / Capfile
Created December 3, 2014 15:54
Capfile
# Load DSL and Setup Up Stages
require 'capistrano/setup'
# Includes default deployment tasks
require 'capistrano/deploy'
# Handle ruby versions
require 'capistrano/rbenv'
# Bundler and rails utilities