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
| if ! set -q prompt_symbol | |
| set -g prompt_symbol "→" | |
| end | |
| if ! set -q prompt_symbol_color | |
| set -g prompt_symbol_color normal | |
| end | |
| function fish_prompt | |
| set -l last_status $status |
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
| function killport --argument port | |
| set pids (lsof -t -i tcp:$port) | |
| if test -n "$pids" | |
| kill $pids | |
| echo "killed process $pids" | |
| end | |
| 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
| # with https://github.com/acomagu/fish-async-prompt | |
| function fish_prompt_loading_indicator -a last_prompt | |
| set uncolored_last_prompt (echo -n $last_prompt | string replace -ra '\e\[[^m]*m' '' | string collect) | |
| echo -n (set_color brblack)"$uncolored_last_prompt"(set_color normal) | |
| 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
| /* hides the native tabs */ | |
| #TabsToolbar { | |
| visibility: collapse; | |
| } |
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
| function mod(a, n) { | |
| return ((a % n) + n) % n | |
| } | |
| export function rot(str, shift) { | |
| const a = "a".charCodeAt(0) | |
| const z = "z".charCodeAt(0) | |
| const A = "A".charCodeAt(0) | |
| const Z = "Z".charCodeAt(0) |
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
| function get(obj, path, defaultValue) { | |
| return path.reduce((o, key) => o[key] ?? defaultValue, obj); | |
| } |
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
| function packmanga | |
| for file in */ | |
| set base (basename $file) | |
| echo "Pack '$base'" | |
| cd $base | |
| zip -q "../$base.cbz" * | |
| cd .. | |
| end | |
| 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
| import { writable } from "svelte/store" | |
| /** | |
| * @template {unknown} T | |
| * | |
| * @typedef {Object} Options | |
| * | |
| * @property {T} start_value | |
| * Initial value of the store, if there is nothing in `Storage`. | |
| * |
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 { DocumentClient, } from "aws-sdk/clients/dynamodb"; | |
| import { chunk } from "lodash"; | |
| const dynamoDb = new DocumentClient(); | |
| const sourceTable = ''; | |
| const destinationTable = ''; | |
| const chunkSize = 25; | |
| const sleepTime = 1000; |
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
| [user] | |
| email = [email protected] | |
| name = Merilynn Bandy | |
| signingkey = 3D463BCC4E2C6CE1 | |
| [commit] | |
| gpgsign = true | |
| [pull] | |
| rebase = true | |
| [rebase] | |
| autoStash = true |
NewerOlder