Skip to content

Instantly share code, notes, and snippets.

View muihlinn's full-sized avatar

Luis Miguel Castañeda muihlinn

View GitHub Profile
@muihlinn
muihlinn / lastmonday.el
Last active May 31, 2022 19:13
elisp last monday date
(defun muihlinn-last-monday()
"Date of last monday."
(let* ( (date (calendar-current-date))
(today (calendar-absolute-from-gregorian date))
(dow (calendar-day-of-week date)))
(cl-destructuring-bind (month day year)
(calendar-gregorian-from-absolute
;; if sunday and our weeks starts on monday
@muihlinn
muihlinn / Makefile
Last active May 31, 2022 18:36
Install golang from a makefile
# ------------------------------------------------------------------------
# golang
# Install / update latest release
# ------------------------------------------------------------------------
# https://github.com/canha/golang-tools-install-script/blob/master/goinstall.sh
# TODO: assumes it uses /bin/bash
# TODO: Make all downloads happens into a place for easy cleans
@muihlinn
muihlinn / test.el
Created June 10, 2020 17:00
Emacs exchange question #58958
;; Check the files you want to skip are in the list already, by default shows the entire list
(recentf-open-files)
;; Add a *valid* pattern to exclude it, let's say .el files
(add-to-list 'recentf-exclude "\\.el\\'")
;; update the recentf list with the new added rule
(recentf-cleanup)
;; Check if the el files are now excluded
@muihlinn
muihlinn / TestTodo.org
Created October 6, 2019 06:28
Emacs exchange question #52968

TODOs TEST

todo headline

@muihlinn
muihlinn / Kernel.php
Last active May 31, 2022 18:19 — forked from davidrushton/Kernel.php
Laravel >=5 Queue monitoring in Shared Hosting (using queue:work) with auto restart.
<?php
namespace App\Console;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
class Kernel extends ConsoleKernel
{
/**