TL;DR
Install Postgres 10, and then:
sudo pg_dropcluster 10 main --stop
sudo pg_upgradecluster 9.6 main
sudo pg_dropcluster 9.6 main
FROM postgres:16 | |
RUN set -eux; \ | |
dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"; \ | |
apt-get update; \ | |
apt-get install -y --no-install-recommends ca-certificates wget; \ | |
wget -O /usr/share/keyrings/pgxman-cli.gpg https://apt.pgxman.com/pgxman-keyring.gpg; \ | |
echo "deb [arch=${dpkgArch} signed-by=/usr/share/keyrings/pgxman-cli.gpg] https://apt.pgxman.com/cli stable main" > /etc/apt/sources.list.d/pgxman-cli.list; \ | |
apt-get update; \ | |
apt-get install -y --no-install-recommends pgxman; \ |
! Direttive per mappare correttamente la tastiera Apple italiana su Ubuntu, | |
! cioè, correggere lo scambio dei tasti maggiore/minore con quello di backslash/pipe | |
! | |
! 49: codice del tasto maggiore/minore ( <> ) (situato a destra del tasto L-SHIFT) | |
! 94: codice del tasto backslash/pipe ( \| ) (collocato a sinistra del tasto `uno/punto esclamativo` ( 1! ) ) | |
! | |
! | |
! I comandi scritti sotto, eseguiti da terminale sono: | |
! xmodmap -e "keycode 49 = less greater guillemotleft guillemotright guillemotleft guillemotright" && \ | |
! xmodmap -e "keycode 94 = backslash bar notsign brokenbar notsign brokenbar" |
#!/usr/bin/env bash | |
set -o errexit | |
set -o pipefail | |
set -o nounset | |
# Requirememnts: | |
# - curl | |
# - jq | |
# - cut |
# Schedule script for using Whenever toghether with rbenv | |
# | |
# Whenever: https://github.com/javan/whenever | |
# rbenv: https://github.com/sstephenson/rbenv | |
set :env_path, '"$HOME/.rbenv/shims":"$HOME/.rbenv/bin"' | |
# doesn't need modifications | |
# job_type :command, ":task :output" |
#!/bin/bash | |
# It assumes [asdf](https://github.com/asdf-vm/asdf) to be installed | |
# and asdf plugin for Ruby to be added | |
set -exuo pipefail | |
sudo apt install libreadline-dev | |
wget https://www.openssl.org/source/old/1.0.2/openssl-1.0.2u.tar.gz | |
tar -xzf openssl-1.0.2u.tar.gz |
TL;DR
Install Postgres 10, and then:
sudo pg_dropcluster 10 main --stop
sudo pg_upgradecluster 9.6 main
sudo pg_dropcluster 9.6 main
// TS Playground link: https://tsplay.dev/wRJl5w | |
interface Props { | |
baseKey: string | |
} | |
const withCustomKey = <K extends string>(customKey: K) => { | |
return <P>(props: P): P & { [k in K]: boolean } => { | |
return { ...props, [customKey]: true } as P & { [k in K]: boolean } | |
} |
Computer Information: | |
Manufacturer: Unknown | |
Model: Unknown | |
Form Factor: Desktop | |
No Touch Input Detected | |
Processor Information: | |
CPU Vendor: GenuineIntel | |
CPU Brand: Intel(R) Core(TM) i7-2600K CPU @ 3.40GHz | |
CPU Family: 0x6 |
# Tasks for managing Unicorn instances of a Rails application. | |
# Compatible with Ruby >= 1.9.2 and Rails >= 2 . | |
# Unicorn signals: http://unicorn.bogomips.org/SIGNALS.html | |
namespace :unicorn do | |
class UnicornPIDError < StandardError; end | |
def rails_env | |
Rails.env |
#!/bin/bash | |
echo 127.0.0.1 rendezvous-eu-west-1-a.runtime.heroku.com >> /etc/hosts | |
ssh -L 5000:rendezvous-eu-west-1-a.runtime.heroku.com:5000 remoteuser@remoteserver |