In programming languages, literals are textual representations of values in the source code. This is a syntactical concept.
Some examples:
7 # integer literal| require "digest" | |
| require "rack" | |
| # This class encapsulates a unit of work done for a particular tenant, connected to that tenant's database. | |
| # ActiveRecord makes it _very_ hard to do in a simple manner and clever stuff is required, but it is knowable. | |
| # | |
| # What this class provides is a "misuse" of the database "roles" of ActiveRecord to have a role per tenant. | |
| # If all the tenants are predefined, it can be done roughly so: | |
| # | |
| # ActiveRecord::Base.legacy_connection_handling = false if ActiveRecord::Base.respond_to?(:legacy_connection_handling) |
| #!/bin/sh | |
| emit() { | |
| if [ "$arg_commit" = "1" ]; then | |
| #echo " | $@" | |
| echo " | $@" | |
| $@ ## << make this the main command or run with `eval $@` | |
| else | |
| echo " | $@" | |
| (exit 0) |
In programming languages, literals are textual representations of values in the source code. This is a syntactical concept.
Some examples:
7 # integer literal| # frozen_string_literal: true | |
| module Fingerprinting | |
| def full_fingerprint | |
| generate_fingerprint( | |
| ip_fingerprint, | |
| browser_fingerprint | |
| ) | |
| end |
| You'll need to update the following variables: | |
| - ENV['APP_NAME'] | |
| - ENV['COMPANY_ADDRESS'] | |
| - ENV['HOST'] | |
| Make sure you have app/assets/images/logo.svg for this line: | |
| helpers.image_url('logo.svg') | |
| And also update the CSS variables to match your color scheme: | |
| :root { |
| { | |
| "vim.showMarksInGutter": false, | |
| "vim.foldfix": true, | |
| "vim.surround": true, | |
| "vim.easymotion": true, | |
| "vim.easymotionKeys": "asdghklqwertyuiopzxcvbnmfj", | |
| "vim.leader": "<space>", | |
| "vim.normalModeKeyBindingsNonRecursive": [ | |
| { | |
| "before": [":", "w", "<CR>"], |
| - Add `gem 'tzinfo-data'` to the Gemfile. | |
| - Add `tzdata` to the Dockerfile | |
| ``` | |
| RUN apk update \ | |
| && apk add build-base \ | |
| tzdata | |
| ``` | |
| - Build `docker-compose build` or `docker-compose up --build` | |
| - Enjoy the life |
| # after reviewing /etc/defaults/periodic.conf I have decided | |
| # to disable these items in jails | |
| daily_status_disks_enable="NO" | |
| daily_status_network_enable="NO" | |
| daily_status_uptime_enable="NO" | |
| # not needed on jails | |
| daily_ntpd_leapfile_enable="NO" |
| sudo su | |
| //Setup Hostname | |
| hostnamectl set-hostname subdomain.domain.tld | |
| ## Basic | |
| sudo apt-get update && sudo apt-get -y upgrade && sudo apt-get autoremove -y && sudo apt-get install software-properties-common | |
| //Setup SWAP | |
| sudo fallocate -l 1G /swapfile; | |
| ls -lh /swapfile; |
| { | |
| "Accessibility": [ | |
| "fab fa-accessible-icon", | |
| "fas fa-american-sign-language-interpreting", | |
| "fas fa-assistive-listening-systems", | |
| "fas fa-audio-description", | |
| "fas fa-blind", | |
| "fas fa-braille", | |
| "fas fa-closed-captioning", | |
| "far fa-closed-captioning", |