cat your.itermcolors | plist2json | bb -i -o -f convert.clj
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
| import torch | |
| def main(): | |
| if not torch.backends.mps.is_available(): | |
| print("MPS not available") | |
| return | |
| large_weight = torch.randn(12, 8, device='mps') | |
| weight_sliced = large_weight[::2, ::1] | |
| weight_contiguous_equiv = weight_sliced.contiguous() |
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
| hs.hotkey.bind({"cmd", "alt"}, "V", function() | |
| local pasteContent = hs.pasteboard.getContents() | |
| hs.pasteboard.clearContents() | |
| hs.eventtap.keyStrokes(pasteContent) | |
| 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
| -- # setup | |
| create extension "uuid-ossp"; | |
| -- # users | |
| create table users ( | |
| id serial not null constraint users_pk primary key, | |
| username varchar(255) not null, | |
| password bytea not null | |
| ); |
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
| package main | |
| import ( | |
| "fmt" | |
| "io/ioutil" | |
| "os" | |
| "regexp" | |
| ) | |
| func main() { |
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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <title></title> | |
| <style type="text/css"> | |
| body { | |
| font-family: Arial, Helvetica, sans-serif; | |
| } | |
| .container { |
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
| # SPDX-License-Identifier: Apache-2.0 | |
| import subprocess | |
| from pathlib import Path | |
| import shutil | |
| import os | |
| linksInIDA64 = subprocess.run(['find', 'ida64.app', '-type', 'l'], stdout=subprocess.PIPE) | |
| for path in linksInIDA64.stdout.splitlines(): | |
| thisPath = Path(path.decode("utf-8")) | |
| symlinkAt = str(thisPath.absolute()) |
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
| // ==UserScript== | |
| // @name Google Calendar Desktop Notifications | |
| // @namespace https://www.rebeccapruim.com/ | |
| // @version 0.1 | |
| // @description Provides desktop notification support for Google Calendar's webapp. | |
| // @match https://calendar.google.com/* | |
| // @copyright 2019+, Rebecca J. Pruim | |
| // @grant unsafeWindow | |
| // ==/UserScript== |
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
| import configparser | |
| import json | |
| import sys | |
| config = configparser.ConfigParser() | |
| config.read(sys.argv[1]) | |
| output = {} | |
| output['name'] = config['Scheme']['Name'] | |
| output['comment'] = "Ported by ThemePorter" | |
| output['use-theme-colors'] = False | |
| output['foreground-color'] = config['Scheme']['ColorForeground'] |
PostMail is an HTTP-based email protocol I'm implementing because I'm sick of how stuck in the 90s email servers feel. I use HTTP POST and a little bit of DNS shenanigans to get compatibility and am working on a demo.
Any domain has a DNS record, a TXT record called POSTMAIL if PostMail is supposed to be supported. It should be set to the prefix of the current domain.
For example, example.com is configured to receive PostMail at postmail-sys.example.com. The TXT record should be set to postmail-sys
NewerOlder