| Value | Color |
|---|---|
| \e[0;30m | Black |
| \e[0;31m | Red |
| \e[0;32m | Green |
| \e[0;33m | Yellow |
| \e[0;34m | Blue |
| \e[0;35m | Purple |
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
| env = KEYBOARD_STATUS_FILE,$XDG_RUNTIME_DIR/keyboard.status | |
| exec-once = rm -f $KEYBOARD_STATUS_FILE | |
| device { | |
| name = at-translated-set-2-keyboard | |
| enabled = true | |
| } |
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
| theme "github-dark" | |
| default_layout "compact" |
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 TravelerWeb.SearchbarLive do | |
| use TravelerWeb, :live_view | |
| alias Phoenix.LiveView.JS | |
| alias Traveler.Places | |
| def mount(_params, _session, socket) do | |
| socket = assign(socket, places: []) | |
| {:ok, socket, layout: false} | |
| 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
| # Install git-lfs | |
| # (From https://github.com/git-lfs/git-lfs/wiki/Installation) | |
| sudo apt-get install software-properties-common | |
| sudo add-apt-repository ppa:git-core/ppa | |
| sudo apt-get update | |
| curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash | |
| sudo apt-get install git-lfs | |
| git lfs install | |
| # Add git-lfs to an existing repo |
Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...
// see: https://github.com/chadoe/docker-cleanup-volumes
$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker volume ls -qf dangling=true | xargs -r docker volume rm
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
| # Build | |
| FROM node:latest as build-env | |
| ENV NODE_ENV production | |
| WORKDIR /src | |
| COPY . . | |
| RUN yarn install \ |
These rules are adopted from the AngularJS commit conventions.
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 bash | |
| CONTAINER_NAME="$1" | |
| PROJECT_NAME="app" | |
| # lets find the first container | |
| FIRST_NUM=`docker ps | awk '{print $NF}' | grep app_$CONTAINER_NAME | awk -F "_" '{print $NF}' | sort | head -1` | |
| NUM_OF_CONTAINERS=1 | |
| MAX_NUM_OF_CONTAINERS=2 |
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
| Series: | |
| {n.space('.').colon('-').replaceAll(/[!?.]+$/).replaceAll(/&/, 'and').replaceAll(/[`´‘’ʻ']/).replaceAll(/\*/, '-').replaceTrailingBrackets('$1')}.{s00e00}.{t.space('.').colon('-').replaceAll(/[!?.]+$/).replaceAll(/&/, 'and').replaceAll(/[`´‘’ʻ']/).replaceAll(/\*/, '-').replaceTrailingBrackets('$1')} | |
| Movies: | |
| {n.colon(' - ')} ({y}) |
NewerOlder