FEDORA_VERSION=$(rpm -E %fedora) sudo wget https://copr.fedorainfracloud.org/coprs/alternateved/keyd/repo/fedora-${FEDORA_VERSION}/alternateved-keyd-fedora-${FEDORA_VERSION}.repo -O /etc/yum.repos.d/_copr:alternateved:keyd.repo
FEDORA_VERSION=$(rpm -E %fedora) sudo wget https://copr.fedorainfracloud.org/coprs/scottames/ghostty/repo/fedora-${FEDORA_VERSION}/scottames-ghostty-fedora-${FEDORA_VERSION}.repo -O /etc/yum.repos.d/_copr:scottames:ghostty.repo
rpm-ostree refresh-md
rpm-ostree install keyd ghosttyWe all know that MacOS is by far the best, so we're trying to emulate that as much as possible... :)
Here are the ones that I can't live without:
- Move cursor to beginning/end of line
cmd-leftcmd-right - Move cursor by word
opt-leftopt-right - Move cursor to beginning/end of document
cmd-upcmd-down
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
| defmodule SqsTextractPoller do | |
| use Task, restart: :permanent | |
| require Logger | |
| def start_link(args) do | |
| Task.start_link(__MODULE__, :run, args) | |
| end | |
| def run do | |
| queue_url = Application.get_env(:app, :aws)[:textract_sqs_url] |
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
| apiVersion: v1 | |
| kind: ConfigMap | |
| metadata: | |
| name: kube-router-cfg | |
| namespace: kube-system | |
| labels: | |
| tier: node | |
| k8s-app: kube-router | |
| data: | |
| cni-conf.json: | |
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
| data: | |
| cni-conf.json: |- | |
| { | |
| "cniVersion":"0.3.0", | |
| "name":"kube-router-net", | |
| "plugins":[ | |
| { | |
| "name":"kubernetes", | |
| "type":"bridge", | |
| "bridge":"kube-bridge", |
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
| config :gnat, logger: [ | |
| level: :info | |
| ] |
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
| set -e | |
| # Stop the docker daemon | |
| /etc/init.d/docker stop | |
| # Configure ECS Agent | |
| # http://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-config.html | |
| # http://docs.aws.amazon.com/AmazonECS/latest/developerguide/automated_image_cleanup.html | |
| cat > /etc/ecs/ecs.config << "EOF" | |
| ECS_ENGINE_TASK_CLEANUP_WAIT_DURATION=1h |
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
| [88396] 2016/12/30 10:44:24.125227 [DBG] 127.0.0.1:49823 - cid:74 - Client connection created | |
| [88396] 2016/12/30 10:44:24.125523 [TRC] 127.0.0.1:49823 - cid:74 - ->> [CONNECT {"verbose":false,"pedantic":false,"tls_required":false,"name":"myID","lang":"go","version":"1.2.2","protocol":1}] | |
| [88396] 2016/12/30 10:44:24.125556 [TRC] 127.0.0.1:49823 - cid:74 - ->> [PING] | |
| [88396] 2016/12/30 10:44:24.125559 [TRC] 127.0.0.1:49823 - cid:74 - <<- [PONG] | |
| [88396] 2016/12/30 10:44:24.125743 [TRC] 127.0.0.1:49823 - cid:74 - ->> [SUB _INBOX.5ohrcxqldd6BBjQNCONih0 1] | |
| [88396] 2016/12/30 10:44:24.125765 [TRC] 127.0.0.1:49823 - cid:74 - ->> [SUB _INBOX.5ohrcxqldd6BBjQNCONikd 2] | |
| [88396] 2016/12/30 10:44:24.125772 [TRC] 127.0.0.1:49823 - cid:74 - ->> [UNSUB 2 1] | |
| [88396] 2016/12/30 10:44:24.125779 [DBG] 127.0.0.1:49823 - cid:74 - Deferring actual UNSUB(_INBOX.5ohrcxqldd6BBjQNCONikd): 1 max, 0 received | |
| [88396] 2016/12/30 10:44:24.125784 [TRC] 127.0.0.1:49823 - cid:74 - ->> [PUB _STAN.discover.test-cluster _INBOX.5ohrcxqldd6BBjQNCO |
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
| [88396] 2016/12/30 10:36:39.184894 [DBG] 127.0.0.1:49506 - cid:73 - Client connection created | |
| [88396] 2016/12/30 10:36:39.185146 [TRC] 127.0.0.1:49506 - cid:73 - ->> [CONNECT {"version":"1.3","verbose":true,"protocol":1,"pedantic":false,"lang":"elixir"}] | |
| [88396] 2016/12/30 10:36:39.185191 [TRC] 127.0.0.1:49506 - cid:73 - <<- [OK] | |
| [88396] 2016/12/30 10:36:39.185439 [TRC] 127.0.0.1:49506 - cid:73 - ->> [SUB one_off.c4b487b4 c4b487b4] | |
| [88396] 2016/12/30 10:36:39.185464 [TRC] 127.0.0.1:49506 - cid:73 - <<- [OK] | |
| [88396] 2016/12/30 10:36:39.185622 [TRC] 127.0.0.1:49506 - cid:73 - ->> [UNSUB c4b487b4 1] | |
| [88396] 2016/12/30 10:36:39.185634 [DBG] 127.0.0.1:49506 - cid:73 - Deferring actual UNSUB(one_off.c4b487b4): 1 max, 0 received | |
| [88396] 2016/12/30 10:36:39.185640 [TRC] 127.0.0.1:49506 - cid:73 - <<- [OK] | |
| [88396] 2016/12/30 10:36:39.185801 [TRC] 127.0.0.1:49506 - cid:73 - ->> [PUB _STAN.discover.test-cluster one_off.c4b487b4 28] | |
| [88396] 2016/12/30 10:36:39.185812 [TRC] 127.0.0.1:49506 - cid:73 - ->> MSG_PAYLOAD: [ |
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
| defmodule Definer do | |
| defmacro define(do: block) do | |
| quote bind_quoted: [block: Macro.escape(block)] do | |
| func_name = @name |> String.to_atom |> Macro.var(__MODULE__) | |
| def unquote(func_name) do | |
| unquote(block) | |
| end | |
| end | |
| end | |
| end |
NewerOlder