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
| FROM ubuntu:18.04 | |
| ENV DEBIAN_FRONTEND=noninteractive | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| git curl ca-certificates python python-setuptools lsb-release pkg-config \ | |
| xz-utils bzip2 file build-essential zip unzip sudo locales libxml2 && rm -rf /var/lib/apt/lists/* | |
| RUN git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git /depot_tools && \ | |
| cd /depot_tools && git checkout $(git rev-list -n1 --before=2018-11-20 origin/main 2>/dev/null || git rev-list -n1 --before=2018-11-20 origin/master) | |
| ENV PATH=/depot_tools:$PATH DEPOT_TOOLS_UPDATE=0 VPYTHON_BYPASS="manually managed python not supported by chrome operations" | |
| WORKDIR /work |
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
| #!/usr/bin/env zsh | |
| # put this script into ~/.local/bin/update-expert | |
| # and then you should be able to run `update-expert` and restart your LSP server/editor | |
| set -e | |
| cd ~/.local/bin || exit | |
| # lowercase assignments | |
| declare -l file |
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
| // Copy and paste when browsing your collection | |
| // https://www.nintendo.com/us/orders/ | |
| // https://library.playstation.com/recently-purchased/1 | |
| // | |
| // A textarea will be appended to the page that will have a list of your games | |
| // ready for copy/paste into a spreadsheet program; the columns are: | |
| // Title, System, isPhysical, isDigital, isReproduction, isSubscriptionOnly | |
| // isSubscriptionOnly may not be accurate, because you may also own it physically, but it also is availble on Playstation Plus. | |
| // isReproduction is always false | |
| // isPhysical is always false |
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 MyApp.Checks.OtelTaskPropagator do | |
| use Credo.Check, | |
| base_priority: :high, | |
| category: :warning, | |
| explanations: [ | |
| check: | |
| "Prefer OpentelemetryProcessPropagator wrappers of `Task` and `Task.Supervisor` so that telemetry tracing can correlate these spawned processes" | |
| ] | |
| @impl Credo.Check |
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 MyApp.Req do | |
| @moduledoc """ | |
| Wrapper around Req to apply defaults. See [Req](https://hexdocs.pm/req) | |
| This will also protect from external requests running while MIX_ENV=test. | |
| To set the adapter in controller or integration tests, you may configure | |
| your mock with `Process.put(:req_adapter, my_mock)`. | |
| You must specify `external_service` and `request_name` telemetry tags |
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
| # keep the src around for mermaid for re-renders. | |
| def maybe_rewrite_mermaid( | |
| {"pre", _attrs, [{"code", [{"class", "mermaid"}], inner, meta}], pre_meta} | |
| ) do | |
| {"div", | |
| [ | |
| {"phx-update", "ignore"} | |
| ], | |
| [ |
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! g:MixRun(selection) abort | |
| if !empty(a:selection) | |
| execute "!mix ".a:selection | |
| endif | |
| endfunction | |
| function! g:MixFzf(selection = '') abort | |
| if empty(a:selection) | |
| call fzf#run(fzf#wrap({ | |
| \ 'source': 'mix help --names', |
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
| export FROM="petal" | |
| export FROM_MOD="Petal" | |
| export TO="elixir_stream" | |
| export TO_MOD="ElixirStream" | |
| cp -R "$FROM" "$TO" | |
| cd "$TO" | |
| git ls-files -z | xargs -0 perl -p -i -e "s/$FROM/$TO/g; s/$FROM_MOD/$TO_MOD/g;" | |
| mv "lib/${FROM}" "lib/$TO" | |
| mv "lib/${FROM}.ex" "lib/${TO}.ex" |
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
| # Put this at the bottom | |
| ## Remap Scarlett input 1 separately | |
| load-module module-remap-source source_name=scarlett-xlr-1 source_properties="device.description='Focusrite Scarlett 6i6 XLR 1'" master=alsa_input.usb-Focusrite_Scarlett_6i6_USB_00074100-00.multichannel-input remix=no channels=2 master_channel_map=front-left,front-left channel_map=left,right | |
| ### Remap Scarlett input 2 separately | |
| load-module module-remap-source source_name=scarlett-xlr-2 source_properties="device.description='Focusrite Scarlett 6i6 XLR 2'" master=alsa_input.usb-Focusrite_Scarlett_6i6_USB_00074100-00.multichannel-input remix=no channels=2 master_channel_map=front-right,front-right channel_map=left,right | |
| ### Remap Scarlett inputs 3&4 separately | |
| load-module module-remap-source source_name=scarlett-inputs-3-4 source_properties="device.description='Focusrite Scarlett 6i6 3/4'" master=alsa_input.usb-Focusrite_Scarlett_6i6_USB_00074100-00.multichannel-input remix=no channels=2 master_channel_map=front-center,lfe channel_map=left,right |
NewerOlder