Skip to content

Instantly share code, notes, and snippets.

levinotik=# \d+table
List of relations
Schema | Name | Type | Owner | Size | Description
--------+-----------------------+----------+-----------+------------+-------------
public | COFFEES | table | levinotik | 8192 bytes |
public | COFFEES_ID_seq | sequence | levinotik | 8192 bytes |
public | SUPPPLIERS | table | levinotik | 8192 bytes |
public | SUPPPLIERS_SUP_ID_seq | sequence | levinotik | 8192 bytes |
public | WIDGETS | table | levinotik | 0 bytes |
public | WIDGETS_ID_seq | sequence | levinotik | 8192 bytes |
╰─$ sysctl kern.sysv
kern.sysv.shmmax: 1073741824
kern.sysv.shmmin: 1
kern.sysv.shmmni: 32
kern.sysv.shmseg: 8
kern.sysv.shmall: 262144
kern.sysv.semmni: 87381
kern.sysv.semmns: 87381
kern.sysv.semmnu: 87381
kern.sysv.semmsl: 87381
kern.sysv.semmni: 87381
kern.sysv.semmns: 87381
kern.sysv.semmnu: 87381
kern.sysv.semmsl: 87381
kern.sysv.semume: 10
kern.posix.sem.max: 10000
╰─$ sysctl kern.ipc
kern.ipc.maxsockbuf: 8388608
kern.ipc.sockbuf_waste_factor: 8
kern.ipc.somaxconn: 128
kern.ipc.nmbclusters: 65536
kern.ipc.soqlimitcompat: 1
kern.ipc.mleak_sample_factor: 500
kern.ipc.mb_normalized: 0
kern.ipc.mb_watchdog: 0
kern.ipc.sosendminchain: 16384
psql: could not connect to server: Connection refused
Is the server running on host "localhost" (::1) and accepting
TCP/IP connections on port 5432?
could not connect to server: Connection refused
Is the server running on host "localhost" (127.0.0.1) and accepting
TCP/IP connections on port 5432?
could not connect to server: Connection refused
Is the server running on host "localhost" (fe80::1) and accepting
TCP/IP connections on port 5432?
levinotik=# show log_destination;
log_destination
-----------------
stderr
(1 row)
levinotik=# show logging_collector;
logging_collector
-------------------
on
/**
* A query monad which contains the AST for a query's projection and the accumulated
* restrictions and other modifiers.
*/
abstract class Query[+E, U] extends Rep[Seq[U]] with CollectionLinearizer[Seq, U] { self =>
def unpackable: ShapedValue[_ <: E, U]
final lazy val packed = unpackable.packedNode
final lazy val elementLinearizer = unpackable.linearizer
final val canBuildFrom: CanBuildFrom[Nothing, U, Seq[U]] = implicitly
if(isGmailAddress(email)) {
val name = email.substring(0, email.lastIndexOf("@"))
val strippedOfPeriods = stripChars(name, ".")
val email1: String = s"[email protected]"
Customer.findByEmail(email1).isEmpty
}
@if(!loggedIn(Security.username)) {
<li class="active"><a href="@routes.Auth.login()">Login</a></li>
} else {
<li><a href="@routes.Auth.logout()">Sign out</a></li>
}
<a class=@{
if(true) "btn btn-large btn-primary disabled" else "btn btn-large btn-primary"
}
href=" @routes.Application.subscribe()
">Get started today</a>