- Add the
pulsar-cli-aliases.shfile content to your~/.bashrcor~/.zshrc. - Fill
pulsar_jwt,pulsar_url,pulsar_admin_urlwith your values. - Then use short commands like
pa topics stats public/default/topic-ainstead of
pulsar-admin \
| Tweak Ubuntu | |
| - Set scaling for 4k monitor | |
| sudo vim /usr/share/glib-2.0/schemas/90_hidpi.gschema.override | |
| [org.gnome.desktop.interface] | |
| scaling-factor=2 | |
| sudo glib-compile-schemas /usr/share/glib-2.0/schemas | |
| - Override Caps Lock to Ctrl |
| if (navigator.platform.match('Mac') !== null) { | |
| const styleTag = document.createElement('style'); | |
| styleTag.innerHTML = ` | |
| /* MACOS SCROLLBAR FIX START | |
| MacOS hides scrollbars by default. | |
| This CSS forces to show scrollbar always. | |
| It doesn't work in Firefox yet. */ | |
| ::-webkit-scrollbar { | |
| -webkit-appearance: none; |
| time="2023-06-02 08:29:19" level=info msg=" [pipeline service] [pipeline #6] [task #15] start executing task: 15" | |
| time="2023-06-02 08:29:19" level=info msg=" [pipeline service] [pipeline #6] [task #15] start plugin" | |
| time="2023-06-02 08:29:19" level=info msg=" [pipeline service] [pipeline #6] [task #15] [api async client] creating scheduler for api "https://api.github.com/", number of workers: 13, 9500 reqs / 1h0m0s (interval: 378.947368ms)" | |
| time="2023-06-02 08:29:20" level=info msg=" [pipeline service] [pipeline #6] [task #15] github graphql init success with remaining 5000/5000 and will reset at 2023-06-02 09:29:20 +0000 UTC" | |
| time="2023-06-02 08:29:20" level=info msg=" [pipeline service] [pipeline #6] [task #15] total step: 24" | |
| time="2023-06-02 08:29:20" level=info msg=" [pipeline service] [pipeline #6] [task #15] executing subtask collectApiMilestones" | |
| time="2023-06-02 08:29:20" level=info msg=" [pipeline service] [pipeline #6] [task #15] [collectApiMilestones] start api collection" | |
| time="2023-06-02 08:29:2 |
| time="2023-05-31 11:36:17" level=info msg=" [pipeline service] [pipeline #3] [task #7] start executing task: 7" | |
| time="2023-05-31 11:36:17" level=info msg=" [pipeline service] [pipeline #3] [task #7] start plugin" | |
| time="2023-05-31 11:36:17" level=info msg=" [pipeline service] [pipeline #3] [task #7] [api async client] creating scheduler for api "https://api.github.com/", number of workers: 2, 1500 reqs / 1h0m0s (interval: 2.4s)" | |
| time="2023-05-31 11:36:17" level=info msg=" [pipeline service] [pipeline #3] [task #7] github graphql init success with remaining 4442/5000 and will reset at 2023-05-31 11:51:34 +0000 UTC" | |
| time="2023-05-31 11:36:17" level=info msg=" [pipeline service] [pipeline #3] [task #7] total step: 29" | |
| time="2023-05-31 11:36:17" level=info msg=" [pipeline service] [pipeline #3] [task #7] executing subtask collectApiMilestones" | |
| time="2023-05-31 11:36:17" level=info msg=" [pipeline service] [pipeline #3] [task #7] [collectApiMilestones] start api collection" | |
| time="2023-05-31 11:36:20" level=info msg |
| kubectl get pods --all-namespaces -o go-template --template='{{range .items}}{{"pod: "}}{{.metadata.name}} | |
| {{if .spec.securityContext}} | |
| PodSecurityContext: | |
| {{"runAsGroup: "}}{{.spec.securityContext.runAsGroup}} | |
| {{"runAsNonRoot: "}}{{.spec.securityContext.runAsNonRoot}} | |
| {{"runAsUser: "}}{{.spec.securityContext.runAsUser}} {{if .spec.securityContext.seLinuxOptions}} | |
| {{"seLinuxOptions: "}}{{.spec.securityContext.seLinuxOptions}} {{end}} | |
| {{else}}PodSecurity Context is not set | |
| {{end}}{{range .spec.containers}} |
| { | |
| "New component": { | |
| "prefix": "rfc", | |
| "body": [ | |
| "import React from 'react';\nimport s from './$1.module.css'\n\nexport type $1Props = {};\n\nconst $1: React.FC<$1Props> = (props) => {\n return (\n <div className={s.$1}>$0</div>\n );\n}\n\nexport default $1;" | |
| ], | |
| "description": "Create new component" | |
| } | |
| } |
| # install nix (5.5 mins) | |
| curl https://nixos.org/nix/install | sh | |
| # open a new shell to source nix | |
| bash | |
| # query available haskell compilers | |
| nix-env -qaP -A nixpkgs.haskell.compiler [QUERY] | |
| # install ghc (2.5 mins, cached binary) |
| -site:coder.work -site:py4u.net -site:githubmemory.com -site:coderoad.ru -site:titanwolf.org -site:codejzy.com |