Skip to content

Instantly share code, notes, and snippets.

View mathben's full-sized avatar
🐢
Coding bot

Mathieu Benoit mathben

🐢
Coding bot
View GitHub Profile
@mlaitinen
mlaitinen / main.py
Created July 30, 2019 15:12
Odoo 12 Prometheus instrumentation
##############################################################################
#
# Author: Miku Laitinen / Avoin.Systems
# Copyright 2019 Avoin.Systems
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
@joseluisq
joseluisq / invalid_or_corrupted_package.md
Created August 1, 2018 20:51
How To Fix “invalid or corrupted package (PGP signature)” Error In Arch Linux
#distutils: language=c++
from libcpp.memory cimport shared_ptr
from cpython.buffer cimport PyObject_GetBuffer, PyBUF_FULL
cdef extern from *:
cdef cppclass CppObj:
pass
cdef shared_ptr[CppObj] cpp_function(Py_buffer *buf)
@fntneves
fntneves / utc.js
Created July 26, 2015 22:59
Moment.JS - Convert UTC to Local Time
$.fn.format = function() {
return this.each(function() {
var $this = $(this);
var time = $this.attr("datetime");
var localTime = moment.utc(time).local().format();
$this.attr("datetime", localTime).timeago();
return this;
});
@mattiaslundberg
mattiaslundberg / arch-linux-install
Last active March 29, 2024 08:38
Minimal instructions for installing arch linux on an UEFI system with full system encryption using dm-crypt and luks
# Install ARCH Linux with encrypted file-system and UEFI
# The official installation guide (https://wiki.archlinux.org/index.php/Installation_Guide) contains a more verbose description.
# Download the archiso image from https://www.archlinux.org/
# Copy to a usb-drive
dd if=archlinux.img of=/dev/sdX bs=16M && sync # on linux
# Boot from the usb. If the usb fails to boot, make sure that secure boot is disabled in the BIOS configuration.
# Set swedish keymap
@ngs
ngs / README.mkdn
Created August 31, 2012 09:18
Create Events on Google Calendar with Git Commit

Create Events on Google Calendar with Git Commit

Requirements

  • google-api-python-client
  • oauth2
  • rfc3339

Set up