A (more) complete cheatsheet for Arel, including NamedFunction functions, raw SQL and window functions.
posts = Arel::Table.new(:posts)
posts = Post.arel_table # ActiveRecord| Mute these words in your settings here: https://twitter.com/settings/muted_keywords | |
| ActivityTweet | |
| generic_activity_highlights | |
| generic_activity_momentsbreaking | |
| RankedOrganicTweet | |
| suggest_activity | |
| suggest_activity_feed | |
| suggest_activity_highlights | |
| suggest_activity_tweet |
| FROM elixir:1.9.1-alpine as build | |
| ENV MIX_ENV=prod | |
| WORKDIR /build | |
| RUN apk add --no-cache build-base nodejs yarn && \ | |
| mix local.hex --force && \ | |
| mix local.rebar --force |
| CREATE OR REPLACE FUNCTION generate_sequential_uuid(p_interval_length int DEFAULT 60) | |
| RETURNS uuid | |
| LANGUAGE plpgsql | |
| AS $$ | |
| DECLARE | |
| v_i int; | |
| v_time bigint; | |
| v_bytes int[16] = '{}'; | |
| v_hex text[16] = '{}'; | |
| BEGIN |
| default['sshd']['sshd_config']['AuthenticationMethods'] = 'publickey,keyboard-interactive:pam' | |
| default['sshd']['sshd_config']['ChallengeResponseAuthentication'] = 'yes' | |
| default['sshd']['sshd_config']['PasswordAuthentication'] = 'no' |
| hass:account | |
| hass:alert | |
| hass:alert-circle | |
| hass:altimeter | |
| hass:apple-safari | |
| hass:apps | |
| hass:arrow-bottom-left | |
| hass:arrow-down | |
| hass:arrow-left | |
| hass:arrow-right |
Credits and thanks: Home Assistant Forum users & Github users: @ocso, @wiphye, @teachingbirds, @tboyce1, @simbesh, @JeffLIrion @ff12 @rebmemer @siaox @DiederikvandenB @Thebuz @clapbr @Finsterclown
Starts Youtube App
entity_id: media_player.shield
command: >-
Download the latest ugw3 package from https://github.com/Lochnair/vyatta-wireguard/releases and install it on your USG using dpkg -i wireguard-ugw3-<version>.deb.
cd /config/auth
umask 077
mkdir wireguard
cd wireguard
wg genkey > wg_private.key
wg pubkey < wg_private.key > wg_public.key| module CheckJEMalloc | |
| require 'ffi' | |
| extend FFI::Library | |
| def self.je_malloc_exists?(jemalloc_so = nil) | |
| if !jemalloc_so.nil? && !jemalloc_so.is_a?(String) | |
| puts "ArgumentError : Only strings allowed as arguments" | |
| return false | |
| end | |
| jemalloc_so = ENV.fetch('LD_PRELOAD','') if jemalloc_so.nil? |
| rubocop | egrep ' (W|C): ' | cut -d ' ' -f 3 | sort -u | sed 's/:$//' | while read cop; do | |
| git checkout . | |
| rubocop -a --only "$cop"; | |
| if [[ $(git diff --stat) != '' ]]; then | |
| git add --all | |
| git commit -m "fix rubocop cop $cop" | |
| fi | |
| done |