Installing Xcode and the command line tools need to be done first because it installs gcc
.
https://developer.apple.com/xcode/features/
Or via the terminal:
# | |
# Created from crossmatching katoolin listing & brew search | |
# to execute: | |
# $ sh "/path/to/file" | |
# | |
echo "Checking for 🍺..." | |
if test ! $(which brew); then | |
echo "Installing homebrew (🍺)..." | |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" |
version: '3.7' | |
services: | |
dynamodb-local: | |
image: amazon/dynamodb-local:latest | |
container_name: dynamodb-local | |
ports: | |
- "8000:8000" | |
dynamodb-admin: | |
image: aaronshaf/dynamodb-admin |
#!/usr/bin/env bash | |
set -e | |
rm -rf dist | |
GH=1 yarn build | |
GIT_URL=$(git remote get-url origin) | |
cd dist |
➜ src git:(cli_improved_bigkeys) ✗ time ./redis-cli --bigkeys | |
# Scanning the entire keyspace to find biggest keys as well as | |
# average sizes per key type. You can use -i 0.1 to sleep 0.1 sec | |
# per 100 SCAN commands (not usually needed). | |
[00.00%] Biggest hash found so far '530f8e1db5876:1:hash:146377' with 44 fields | |
[00.00%] Biggest list found so far '530f8ed14a8b0:17:list:269378' with 193 items | |
[00.00%] Biggest set found so far '530f8da537194:83:set:63043' with 432 members | |
[00.00%] Biggest string found so far '530f8f2de7045:95:string:333887' with 345 bytes |
Installing Xcode and the command line tools need to be done first because it installs gcc
.
https://developer.apple.com/xcode/features/
Or via the terminal:
#!/usr/bin/env bash | |
# | |
# Nginx - new server block | |
# Functions | |
ok() { echo -e '\e[32m'$1'\e[m'; } # Green | |
die() { | |
echo -e '\e[1;31m'$1'\e[m' | |
exit 1 | |
} |
Run rails new --help
to view all of the options you can use to generate new Rails application:
Output for Rails 7+
Usage:
rails new APP_PATH [options]
Options:
[--skip-namespace], [--no-skip-namespace] # Skip namespace (affects only isolated engines)
Many ways of manipulating single objects are based on manipulations on the singleton class and having this available will make metaprogramming easier. The classic way to get at the singleton class is to execute something like this:
sclass = (class << self; self; end)
require 'sequel' | |
DB = Sequel.connect('postgres://user:pass@localhost/db') | |
DB.listen(:my_channel, loop: true) {|channel, pid, payload| puts "Got payload '#{payload}' on channel '#{channel}'" } |
## Instructions | |
https://collabnix.com/kubernetes-dashboard-on-docker-desktop-for-windows-2-0-0-3-in-2-minutes/ | |
## Dashboard URL | |
http://localhost:8001/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy/#!/overview?namespace=default |