Remove package's dependencies (does not remove package):
brew deps [FORMULA] | xargs brew remove --ignore-dependencies
Remove package:
class YahooToken < ConsumerToken | |
YAHOO_SETTINGS={ | |
:site => "https://api.login.yahoo.com", | |
:request_token_path => "/oauth/v2/get_request_token", | |
:access_token_path => "/oauth/v2/get_token", | |
:authorize_path=> "/oauth/v2/request_auth" | |
} | |
def self.consumer |
#!/bin/bash | |
DATADIR=/dev/shm/mysql | |
TMPDIR=/dev/shm/mysql_tmp | |
MYSQL_SOCKET=/dev/shm/mysql.sock | |
pkill -9 -f mysql.*datadir.*$DATADIR | |
mkdir -p $DATADIR |
import java.io._ | |
@SerialVersionUID(15L) | |
class Animal(name: String, age: Int) extends Serializable { | |
override def toString = s"Animal($name, $age)" | |
} | |
case class Person(name: String) | |
// or fork := true in sbt |
(defn seq!! | |
"Returns a (blocking!) lazy sequence read from a channel." | |
[c] | |
(lazy-seq | |
(when-let [v (<!! c)] | |
(cons v (seq!! c))))) | |
(comment | |
(def stream (chan)) | |
(go (dotimes [x 16] |
(defn topo [graph] | |
(when-not (empty? graph) | |
(lazy-seq | |
(let [n (first (for [[node s] graph | |
:when (not (seq s))] | |
node))] | |
(assert n "if this fails there is a cycle") | |
(cons n (topo (into {} (for [[node deps] graph | |
:when (not= n node)] | |
[node (disj deps n)])))))))) |
The official installation instructions for pgModeler recommends installing Xcode and the Enterprise DB distribution of Postgres to fulfill its build requirements. Luckily, Homebrew's got us covered!
Checkout the source
git clone https://github.com/pgmodeler/pgmodeler.git
-- user: | |
CREATE ROLE citus WITH NOSUPERUSER LOGIN IN ROLE pg_monitor; | |
-- database: | |
ALTER DATABASE citus SET citus.shard_replication_factor = 1; | |
ALTER DATABASE citus OWNER TO citus; | |
-- extensions: | |
CREATE EXTENSION IF NOT EXISTS "hll"; | |
CREATE EXTENSION IF NOT EXISTS "topn"; |