Problem is after installation from official site postgresql was not found:
locate bin/psql
Then we got /Library/PostgreSQL/10/bin/psql
. Add this to PATH
variable in .profile
export PATH=/Library/PostgreSQL/10/bin:$PATH
# DXVK Project: https://github.com/doitsujin/dxvk | |
# | |
# | |
# Override PCI vendor and device IDs reported to the application. Can | |
# cause the app to adjust behaviour depending on the selected values. | |
# | |
# Supported values: Any four-digit hex number. | |
# dxgi.customDeviceId = 0000 | |
dxgi.customVendorId = 10de |
class Buffer | |
attr_reader :buffer, :overflows | |
def initialize(&block) | |
@limitation_criteria = block | |
@buffer = [] | |
@overflows = 0 | |
end | |
def set_action(&block) |
# Something like Rails helper, but with short M instead of Million | |
def short_number_to_human(n) | |
postfix = { 1 => "", 10**3 => "K", 10**6 => "M", 10**9 => "B"} | |
key = postfix.keys.select{|k| n/k.to_f >= 1}.max | |
"#{(n/key.to_f).round}#{postfix[key]}" | |
end |
Problem is after installation from official site postgresql was not found:
locate bin/psql
Then we got /Library/PostgreSQL/10/bin/psql
. Add this to PATH
variable in .profile
export PATH=/Library/PostgreSQL/10/bin:$PATH
Problem:
No pg_config... trying anyway. If building fails, please try again with
--with-pg-config=/path/to/pg_config
checking for libpq-fe.h... no
Can't find the 'libpq-fe.h header
*** extconf.rb failed ***
Try this:
require_relative 'helpers/handle_errors' | |
require 'ostruct' | |
require 'phone' | |
class ParsedStore < OpenStruct | |
include HandleErrorsHelper | |
def initialize(*args) | |
super(*args) |
function docker_clean(){ | |
sudo docker rm $(sudo docker ps -a -q) | |
} | |
function docker_clean_images(){ | |
docker rmi $(docker images | grep "<none>" | awk "{print $3}") | |
} |