Skip to content

Instantly share code, notes, and snippets.

@abscondment
abscondment / build-run-test.sh
Last active November 14, 2023 16:06
docker-nginx-unprivileged build/run/test script
#!/usr/bin/env bash
set -euo pipefail
MAINLINE_VERSION=${MAINLINE_VERSION:-1.25.3}
STABLE_VERSION=${STABLE_VERSION:-1.24.0}
# Platforms based on https://github.com/nginxinc/docker-nginx-unprivileged/blob/main/README.md#architectures
ALPINE_PLATFORMS=(amd64 arm/v6 arm/v7 arm64 386 ppc64le s390x)
DEBIAN_PLATFORMS=(amd64 arm/v5 arm/v7 arm64 386 mips64le ppc64le s390x)

Okay, Kids, Here We Go...

"What You Need To Know About Your Next Domain Name"

I highly respect what Fred has done, and continues to do, to help entrepreneurs and for that I'd like to "give back" myself... and I'm posting anonymously as I have nothing to gain in anyway by sharing this information...

I'm a serial Internet entrepreneur since 1990 (pre-Web). I've been involved in hundreds of projects online (have built more than one Top 500 web site) and I've been a very active and successful domain name 'trader' along the way.

I've personally owned over 50,000 domains on and off during the past 15+ years. I've been involved in some million$+ deals, and have owned some domains that you know of (but I won't name). I've also been involved in 1,000s of smaller deals. So this is a topic I know very well.

source 'https://rubygems.org'
gem 'grpc', '~> 1.0.0'
# prerelease protobuf magic
git 'git@github.com:google/protobuf.git', tag: 'v3.0.0' do
gem 'google-protobuf'
end
group :development, :test do
This file has been truncated, but you can view the full file.
WHITE-JACKET.
CHAPTER I.
THE JACKET.

Background

This article asserts that consuming Himalyan salt, which clocks in with lead content at 100 ppb, is incredibly dangerous. The supplied evidence is that water with lead content of 5 ppb is declared unsafe, so obviously the salt must be unsafe as well.

Here are some calculations:

Salt:

  • The FDA recommends consuming no more than 2300 mg per day, but many sites cite them as saying 3400. People like salt; let's use the higher number!
  • 3400mg per day
AllCops:
Exclude:
- "vendor/**/*"
- "db/schema.rb"
UseCache: false
Style/CollectionMethods:
Description: Preferred collection methods.
StyleGuide: https://github.com/bbatsov/ruby-style-guide#map-find-select-reduce-size
Enabled: true
PreferredMethods:
#!/bin/bash
for d in {essential-apps,essential-baseline,essential-gem,essential-payments}
do
echo "configuring linters for $d:"
for config in {.hound.yml,.ruby-style.yml}
do
echo " ✔ $config"
cp "essential-service/$config" "$d"
done
echo
require 'yaml'
class Base < Struct.new(:base_id)
def doit
puts 'i have %s' % self.base_id
end
end
class Thing < Base
attr_accessor :foo

Getting Pindah 0.1.3.dev to work with JRuby 1.7.2

Initial setup:

  • Java 7
  • JRuby 1.7.2 in 1.9 mode
  • Clean install from rbenv
brendan@flask:~/code$ ruby -v
brendan@ishmael:~$ cat `which resolve`
#!/bin/sh
(echo $1 && curl -LIs "$1" | grep '^Location' | cut -d' ' -f2) | cat -n
brendan@ishmael:~$ resolve http://t.co/zplRZif
1 http://t.co/zplRZif
2 http://wck.me/1SX?xvpt
3 http://tivtter.com/r3
4 http://tivtter.com/r3/