- ✅ Full integration with NornicDB's memory bank
- ✅ Graph functions enable multi-hop reasoning
| // ==UserScript== | |
| // @name Medium Paywall Bypass | |
| // @namespace Violentmonkey Scripts | |
| // @run-at document-start | |
| // @match *://*.medium.com/* | |
| // @match *://medium.com/* | |
| // @match *://*/* | |
| // @grant none | |
| // @version 3.0 | |
| // @inject-into content |
| # Source: https://gist.github.com/6fb3e7da327df9203d9d4c184fcb5831 | |
| ############################################################################## | |
| # Combining Argo CD (GitOps), Crossplane (Control Plane), And Kubevela (OAM) # | |
| # https://youtu.be/eEcgn_gU3SM # | |
| ############################################################################## | |
| # Referenced videos: | |
| # - Argo CD - Applying GitOps Principles To Manage Production Environment In Kubernetes: https://youtu.be/vpWQeoaiRM4 | |
| # - Cloud-Native Apps With Open Application Model (OAM) And KubeVela: https://youtu.be/2CBu6sOTtwk |
| /** | |
| * I use .app-container to get around CSS selector specificity | |
| */ | |
| .app-container pre[class*="language-note-"] { | |
| border: 1px solid; | |
| } | |
| /* Make the first line of note bold */ | |
| *[class*="language-note"]::first-line { |
I was building up a small library of css snippets, and mixing and matching via copy-paste was getting tiresome.
So, I knocked myself up a little solution using https://sass-lang.com/
To use this solution, you need to follow the instructions on the website to install the SASS command line utility.
For my purposes, I created a subfolder in my Obsidian vault called ./.themes where my obsidian.scss file lives.
I also created a subfolder for mixins (./.themes/mixins) containing small snippets like "Andy Matuschak" mode and collapsing sidebars (and my preferred custom colours for my Base2Tone theme)
| #!/bin/bash | |
| # Inspired on https://david-kerwick.github.io/2017-01-04-combining-zsh-history-files/ | |
| set -e | |
| history1=$1 | |
| history2=$2 | |
| merged=$3 | |
| echo "Merging history files: $history1 + $history2" | |
| test ! -f $history1 && echo "File $history1 not found" && exit 1 |
| #!/bin/bash -e | |
| # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | |
| # SPDX-License-Identifier: MIT-0 | |
| fqdn="$(hostname -f)" | |
| address="$(/sbin/ip addr show dev eth1 | awk -F'( +|/)' '/inet / {print $3}')" | |
| if [[ "${address}" == "$(dig +short "${fqdn}")" && "${fqdn}." == "$(dig +short -x "${address}")" ]] | |
| then | |
| exit 0 | |
| fi | |
| TTL=21600 # 6 hours |
| #import the bpy module to access blender API | |
| import bpy | |
| #WARNING: this is written and tested for blender 2.79 | |
| #blender 2.8 and newer will likely have a different python API | |
| #create a property group, this is REALLY needed so that operators | |
| #AND the UI can access, display and expose it to the user to change | |
| #in here we will have all properties(variables) that is neccessary | |
| class CustomPropertyGroup(bpy.types.PropertyGroup): |
When working with multiple AWS accounts, it can be a pain to keep signing out and signing back in. I work with a number of accounts, my own, customer accts, burner accts, etc. It was a pain to keep logging in and out of the AWS Console. Thankfully the AWS Console has a "Role Switcher" that lets you quickly switch between accounts built-in. It does this by assuming a role from another account. Here's how to set that up...
| # ##### BEGIN GPL LICENSE BLOCK ##### | |
| # | |
| # 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 2 | |
| # of the License, or (at your option) any later version. | |
| # | |
| # This program is distributed in the hope that it will be useful, | |
| # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
