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 | |
# NOTES | |
# To activate hooks, run: | |
# . ./.bash_hooks | |
# To clear hooks, run: | |
# trap '' DEBUG | |
# PROMPT_COMMAND= |
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 | |
# NOTES | |
# set git accounts info in ~/.sources/.gitvariables like so: | |
# GIT_USER_NAME_WORK=... | |
# GIT_USER_EMAIL_WORK=... | |
# GIT_SSH_NAME_WORK=... | |
# GIT_USER_NAME_PRIVATE=... | |
# GIT_USER_EMAIL_PRIVATE=... | |
# GIT_SSH_NAME_PRIVATE=... |
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
# Original Src: https://shkspr.mobi/blog/2023/09/how-far-did-my-post-go-on-the-fediverse/ | |
import config | |
from mastodon import Mastodon | |
from rich.pretty import pprint | |
# Set up access | |
mastodon = Mastodon( api_base_url=config.instance, access_token=config.access_token, ratelimit_method='pace' ) | |
# Status to check for |
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
# MIT License | |
# Copyright (c) 2016 Chandler Abraham | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is | |
# furnished to do so, subject to the following conditions: |
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
Content-Type: multipart/mixed; boundary="//" | |
MIME-Version: 1.0 | |
--// | |
Content-Type: text/cloud-config; charset="us-ascii" | |
MIME-Version: 1.0 | |
Content-Transfer-Encoding: 7bit | |
Content-Disposition: attachment; filename="cloud-config.txt" | |
#cloud-config |
NOTE: The Tree-sitter API and documentation has changed and improved since this guide was created. I can't guarantee this is up to date.
Tree-sitter is the new way Atom is providing language recognition features, such as syntax highlighting, code folding, autocomplete, and more. In contrast to TextMate grammars, which work by regex matching, Tree-sitter will generate an entire syntax tree. But more on that can be found in it's own docs.
Here, we look at making one from scratch.
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/sed -f | |
# index2html.sed - by Aurelio Jargas | |
# Get index.sed file and converts it to the main http://sed.sf.net page | |
# | |
1 i\ | |
<html><head><title>sed.sf.net - The sed $HOME</title></head>\ | |
<meta http-equiv="content-type" content="text/html; charset=utf-8">\ | |
<body bgcolor="#ffffbb" text="black">\ | |
<pre> |
Various search databases and backends as alternatives to Elasticsearch.
- Sonic: https://github.com/valeriansaliou/sonic
- Tantivy: https://github.com/tantivy-search/tantivy
- Toshi: https://github.com/toshi-search/Toshi built on top of Tantivy
- Bayard: https://github.com/mosuka/bayard also built on top of Tantivy
- MeiliSearch: https://github.com/meilisearch/MeiliSearch
NewerOlder