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
| -include .env | |
| DOTENV_REGEXP := ^\#\|^$$ | |
| export $(shell cut -d= -s -f1 .env | grep -v '$(DOTENV_REGEXP)' || 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
| ;; startup took 0.688299 seconds | |
| ;;; json-mode.el --- basic JSON editing mode -*- lexical-binding: t; coding: utf-8 -*- | |
| ;;; Version: 0.6.1 | |
| ;; Author: UwUnyaa (https://github.com/UwUnyaa) | |
| ;;; license: GPLv3 or newer | |
| ;; This program is free software: you can redistribute it and/or modify it |
Validate JSON Schema documents with Org mode
- Validate JSON literals
#+NAME: org-src-json-schema-literals #+BEGIN_SRC shell :results pp curl -s https://assertible.com/json -d '{ "schema": {}, "json": {} }' | jq .
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
| # Gmail checker for Xmobar | |
| # | |
| # Install the ruby-gmail and mime gem to system | |
| # Put the script under ~/path/to/gmail_checker.rb | |
| # Make sure it is executable | |
| require 'gmail' | |
| gmail = Gmail.new('example@gmail.com', 'password') | |
| mail_count = gmail.inbox.count(:unread) |
Note: everything here is pretty specific to my usage/accounts and not written for public use... You'll probably have to tweak a bunch of stuff.
$ bean-extract config.py ~/Downloads # the csvs should be in here
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
| WM_STATE(WM_STATE): | |
| window state: Normal | |
| icon window: 0x0 | |
| _NET_WM_USER_TIME(CARDINAL) = 86660406 | |
| WM_NORMAL_HINTS(WM_SIZE_HINTS): | |
| program specified location: 1, 19 | |
| program specified minimum size: 1 by 1 | |
| WM_NAME(UTF8_STRING) = "Page not found · GitHub" | |
| _NET_WM_NAME(UTF8_STRING) = "Page not found · GitHub" | |
| XdndAware(ATOM) = BITMAP |
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
| ;; see my config for the other parts: | |
| ;; | |
| ;; https://github.com/creichert/dotfiles/blob/master/emacs/.gnus | |
| ;; | |
| ;; I typically put the below settings into a file called `gnus-private.el`, | |
| ;; and require that into my gnus to populate these settings. | |
| ;; | |
| ;; https://github.com/creichert/dotfiles/blob/master/emacs/.gnus#L61 |
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
| (defmacro template (text) | |
| "Expand text like \"Hello <<name>>\" to (format \"Hello %s\" name)." | |
| (let ((pattern "<<\\(.*?\\)>>")) | |
| ;; The regexp matches anything between delimiters, non-greedily | |
| (with-temp-buffer | |
| (save-excursion (insert text)) | |
| (let ((matches '())) | |
| (while (re-search-forward pattern nil t) | |
| (push (match-string 1) matches) | |
| (replace-match "%s" t t)) |
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
| ;;; evil-bbdb-rebellion.el --- Key-bindings for evil bbdb3 rebels | |
| ;; Copyright © 2013–2014 Albert Krewinkel | |
| ;; | |
| ;; Author: Albert Krewinkel <albert+evil@zeitkraut.de> | |
| ;; Keywords: evil bbdb rebellion | |
| ;; | |
| ;; This program is free software; you can redistribute it and/or modify | |
| ;; it under the terms of the GNU General Public License as published by | |
| ;; the Free Software Foundation, either version 3 of the License, or |
NewerOlder