This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python2 | |
# ~/.task/hooks/on-modify.00-timewarrior | |
# API is here: https://taskwarrior.org/docs/hooks.html | |
# To be saved at ~/.task/hooks/on-modify.01-gnome-pomodoro to ensure it is | |
# run after the timewarrior hook, which should be saved as | |
# ~/.task/hooks/on-modify.00-timewarrior | |
# Otherwise, this is run before which then runs the Gnome-Pomodoro actions | |
# things get quite messy! | |
import json | |
import os |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"theme": "light", | |
"snippet": { | |
"expanded": true, | |
"newSnippetPrivate": false, | |
"sorting": "updated_at", | |
"sortingReverse": true | |
}, | |
"editor" : { | |
"tabSize": 4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Taskwarrior / Timewarrior | |
alias t=task | |
alias ts=task summary.weekly | |
function tn | |
while true; clear && task due.before:today or due:today or task due.before:5d next limit:5; sleep 2; end | |
end | |
function tl | |
while true; clear && task due.before:today or due:today or task due.before:5d list limit:10; sleep 2; end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Asus M5A97 R2.0 | |
#/etc/sensors.d/M5A97.conf | |
chip "k10temp-pci-00c3" | |
label temp1 "CPU Temp (rel)" | |
chip "it8721-*" | |
label in0 "+12V" | |
label in1 "+5V" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from mezzanine.pages.page_processors import processor_for | |
from mezzanine.utils.views import paginate | |
from mezzanine.conf import settings | |
from .models import PageCustom | |
@processor_for(PageCustom) | |
def article_paginate(request, page): | |
posts = [posts for posts in page.pagecustom.posts.filter(active=True)] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from mezzanine.core.fields import RicheTextField | |
EXTRA_MODEL_FIELDS = ( | |
( | |
"mezzanine.pages.models.Page.titleheading", | |
"RichTextField", | |
("Titulo del contenido",), | |
{"blank": True, "max_length": 255, "null": True}, | |
), | |
) |