This file contains 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
#!/bin/bash | |
#----------------------------------------------------------------------------- | |
# One thing I found frustrating was that setting key repeat delay and key | |
# repeat speed in System Settings was having no effect. Keys that had | |
# diacritics still just popped up the special character popover, and keys | |
# without didn’t do anything at all when held. Finally figured out the | |
# solution, which I’m posting here mostly so I can easily find it next time | |
# this happens. | |
#----------------------------------------------------------------------------- | |
# Source: https://brettterpstra.com/2024/12/03/key-repeat-in-sequoia/ |
This file contains 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
#!/bin/bash | |
################################################################################ | |
# 2014-08-03 | Jason Friedrich | |
#------------------------------------------------------------------------------- | |
# Version history: | |
# v1.2 | 2022-06-27 | |
# - Partial rewrite for net network structure | |
# v1.1 | 2014-08-03 | |
# - Complete rewrite for new network structure | |
################################################################################ |
This file contains 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 python | |
# pocket-appi module, not pocket | |
from pocket import Pocket, PocketException | |
import datetime as dt | |
p = Pocket( | |
consumer_key='myconsumerkey', | |
access_token='myaccesstoken' | |
) |
This file contains 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 python3 | |
import os | |
import re | |
def replace(basepath, item): | |
""" | |
Replace unsafe character from items | |
""" |
This file contains 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
{{ $pag := $.Paginator }} {{ if gt $pag.TotalPages 1 }} {{ $.Scratch.Set "dot_rendered" false }} | |
<ul class="pagination"> | |
<!-- Disable on 1st and 2nd page --> | |
{{ if and (ne $pag.PageNumber 1) (ne $pag.PageNumber 2) }} | |
<li class="page-item page-first"><a href="{{ $pag.First.URL }}" rel="first" class="page-link">« First</a></li> | |
{{ else }} | |
<li class="page-item page-first disabled"><a href="" rel="first" class="page-link">« First</a></li> | |
{{ end }} {{ if $pag.HasPrev }} | |
<li class="page-item page-prev"><a href="{{ $pag.Prev.URL }}" rel="prev" class="page-link">‹ Prev</a></li> |
This file contains 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
{{/* This can be used to loop through all regular pages on the whole site. */}} | |
{{ $pages := .Paginate ( where .Site.RegularPages "Type" "in" site.Params.mainSections ) }} | |
{{ range $pages.Pages }} | |
<article class="post type-{{ .Section }}"> | |
{{ if eq .Section "posts" }} | |
<a class="post-full-link" href="{{ .RelPermalink }}"> | |
<h4 class="post-date">{{ .Page.Date.Format "2 Jan 2006, 15:04 MST" }}</h4> | |
<h1 class="post-title">{{ .Title }}</h1> | |
<div class="post-summary"> |
This file contains 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 https://github.com/cli/cli/issues/3625 | |
# one time: | |
$ gh alias set delete 'api -X DELETE repos/$1' | |
$ gh auth refresh -h github.com -s delete_repo | |
# usage (WARNING: no confirmation!) | |
$ gh delete user/myrepo |
This file contains 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
-------------------------------------------------------------------------------- | |
-- Hammerspoon config to replace parts of Mosaic | |
-- | |
-- References: | |
-- * https://www.hammerspoon.org/go/ | |
-- * https://www.hammerspoon.org/docs/index.html | |
-------------------------------------------------------------------------------- | |
hs.hotkey.bind({"cmd", "alt", "ctrl"}, "n", function() |
This file contains 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
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,400;0,700;1,400&display=swap'); | |
@import url("https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css"); | |
#post .alert, | |
#post article, | |
body#collection article, | |
body#subpage #wrapper h1, | |
body#subpage article, pre { | |
max-width: 45rem; | |
} |
NewerOlder