For MacOS Catalina, visit Install mysql2 on MacOS Catalina
Installing mysql2
gem errors on MacOS Mojave.
Make sure openssl
is installed on Mac via Homebrew.
For MacOS Catalina, visit Install mysql2 on MacOS Catalina
Installing mysql2
gem errors on MacOS Mojave.
Make sure openssl
is installed on Mac via Homebrew.
#postgresql setup | |
ssh -i ~/.ssh/id_rsa root@<domain> | |
dokku postgres:connect <db> | |
psql=# SHOW config_file; | |
-> /var/lib/postgresql/data/postgresql.conf | |
psql=# \q | |
docker ps |
sudo apt-get update | |
sudo apt-get install golang-go -y | |
wget https://dist.ipfs.io/go-ipfs/v0.4.10/go-ipfs_v0.4.10_linux-386.tar.gz | |
tar xvfz go-ipfs_v0.4.10_linux-386.tar.gz | |
sudo mv go-ipfs/ipfs /usr/local/bin/ipfs |
Permalink: git.io/vps
Provider | Type | RAM | Cores | Storage | Transfer | Network | Price |
---|
sudo apt-get install postgresql-9.6 postgresql-server-dev-9.6 postgresql-contrib-9.6 -y | |
sudo su - postgres -c "psql template1 -p 5433 -c 'CREATE EXTENSION IF NOT EXISTS hstore;'" | |
sudo su - postgres -c "psql template1 -p 5433 -c 'CREATE EXTENSION IF NOT EXISTS \"uuid-ossp\";'" | |
sudo systemctl stop postgresql | |
sudo su - postgres -c '/usr/lib/postgresql/9.6/bin/pg_upgrade -b /usr/lib/postgresql/9.3/bin -B /usr/lib/postgresql/9.6/bin \ | |
-d /var/lib/postgresql/9.3/main/ -D /var/lib/postgresql/9.6/main/ \ | |
-O "-c config_file=/etc/postgresql/9.6/main/postgresql.conf" -o "-c config_file=/etc/postgresql/9.3/main/postgresql.conf" --link' | |
sudo apt-get remove postgresql-9.3 -y |
[package] | |
name = "Django" | |
# version = ... # This is omitted, ``setup.py`` must be executed to read it. | |
summary = """ | |
A high-level Python Web framework that encourages rapid development and\ | |
clean, pragmatic design.\ | |
""" | |
url = "http://www.djangoproject.com/" | |
author = "Django Software Foundation" | |
author-email = "[email protected]" |
# speed up pluck | |
class ActiveRecord::Relation | |
class RailsDateTimeDecoder < PG::SimpleDecoder | |
def decode(string, tuple=nil, field=nil) | |
if Rails.version >= "4.2.0" | |
@caster ||= ActiveRecord::Type::DateTime.new | |
@caster.type_cast_from_database(string) | |
else |
def self.uniq! queue_name | |
seen_already = Set.new | |
Sidekiq::Queue.new(queue_name).each { |job| | |
key = { job.klass => job.args } | |
key.in?(seen_already) ? job.delete : seen_already << key | |
} | |
end |