change to postgres user and open psql prompt
sudo -u postgres psql postgres
or
psql -U postgres
list databases
| "forget being compatible with good ol' vi | |
| set nocompatible | |
| " Remove the annoying bell | |
| set visualbell | |
| set encoding=utf-8 | |
| " Get that filetype stuff happening | |
| filetype on |
| (setq inhibit-startup-screen t) | |
| (setq inhibit-splash-screen t) | |
| ;;(setq-default truncate-lines t) | |
| (setq visible-bell t) | |
| (require 'cl) | |
| (setq scroll-step 1 | |
| scroll-conservatively 10000) | |
| ;; Custom message in the scratch buffer |
| echo 'Grab a cup of tea. This is going to take a while...' | |
| sudo apt-get update -qq | |
| sudo apt-get upgrade -y | |
| sudo apt-get update -qq | |
| sudo apt-get install -yq emacs24 git vim curl wget openjdk-7-jdk tmux awesome awesome-extra xchat | |
| git clone https://github.com/jonfk/dotfiles.git | |
| cd dotfiles;./dotfiles -u; | |
| cd |
| #!/bin/bash | |
| # Fix X window manager name properties to work around java bugs with | |
| # non-reparenting window managers. This is a different solution from | |
| # the wmname utility provided by suckless, as it is NetWM compatible, | |
| # while wmname sets the value of _NET_SUPPORTING_WM_CHECK to root win. | |
| IRONIC_WM_NAME="LG3D" | |
| NET_WIN=$(xprop -root _NET_SUPPORTING_WM_CHECK | awk -F "# " '{print $2}') |
change to postgres user and open psql prompt
sudo -u postgres psql postgres
or
psql -U postgres
list databases
| all: | |
| gcc -shared -Wl,-soname,testlib -o testlib.so -fPIC testlib.c | |
| clean: | |
| rm testlib.so |
| extern crate websocket; | |
| extern crate tokio_core; | |
| extern crate futures; | |
| use websocket::{Server, Message, Sender, Receiver}; | |
| use websocket::message::Type; | |
| use websocket::header::WebSocketProtocol; | |
| use futures::Future; | |
| use futures::stream::Stream; |
I hereby claim:
To claim this, I am signing this object: