Vorbereitungen: Installation von build-essential, git-core, und rbenv
# als root einloggen
$ sudo -s
# aktuelle Version von git
$ add-apt-repository ppa:git-core/ppa
$ apt-get update
$ apt-get install build-essential git-core| SPC | |
| SPC: find file | |
| , switch buffer | |
| . browse files | |
| : MX | |
| ; EX | |
| < switch buffer | |
| ` eval | |
| u universal arg | |
| x pop up scratch |
| -- An implicite cursor in PostgreSQL PLPGSQL. | |
| -- | |
| -- The main idea is to declare a cursor in the loop header | |
| -- and fetch the rows inside the loop | |
| do $$ | |
| declare | |
| rec record; | |
| begin | |
| for rec in |
| How to convert existing phoenix app to an umbrella app. | |
| https://elixir-lang.slack.com/archives/phoenix/p1472921051000134 | |
| chrismccord [10:14 PM] | |
| @alanpeabody yes, it's straightforward | |
| [10:14] | |
| 1) mix new my_umbrella --umbrella |
| #!/usr/bin/env bash | |
| # Dieses Script schreibt einen Dump der Datenbank, die als erstes Argument | |
| # übergeben wird. | |
| # Die Dumps sind umfassend - d.h. sie kommen mit einem `create database` und | |
| # vollständingen `create table` Statements, damit man ein Backup von allen | |
| # Einstellungen bzgl. Collation und Character Set hat. | |
| if [ -z ${1} ] |
| #!/bin/bash | |
| [[ $UID == 0 ]] || { echo "run as sudo to install"; exit 1; } | |
| REPO="https://github.com/BurntSushi/ripgrep/releases/download/" | |
| RG_LATEST=$(curl -sSL "https://api.github.com/repos/BurntSushi/ripgrep/releases/latest" | jq --raw-output .tag_name) | |
| RELEASE="${RG_LATEST}/ripgrep-${RG_LATEST}-x86_64-unknown-linux-musl.tar.gz" | |
| TMPDIR=$(mktemp -d) | |
| cd $TMPDIR | |
| wget -O - ${REPO}${RELEASE} | tar zxf - --strip-component=1 |
| SPC s c remove highlight | |
| **** Files manipulations key bindings | |
| Files manipulation commands (start with ~f~): | |
| | Key Binding | Description | | |
| |-------------+----------------------------------------------------------------| | |
| | ~SPC f c~ | copy current file to a different location | | |
| | ~SPC f C d~ | convert file from unix to dos encoding | | |
| | ~SPC f C u~ | convert file from dos to unix encoding | |
| Select resources_assign.* | |
| FROM resources_assign | |
| LEFT JOIN termine ON (termine.termin_id = resources_assign.`assign_user_id`) | |
| LEFT JOIN auth_user_md5 ON (auth_user_md5.user_id = resources_assign.`assign_user_id`) | |
| WHERE auth_user_md5.user_id IS NULL | |
| AND termine.termin_id IS NULL |
Vorbereitungen: Installation von build-essential, git-core, und rbenv
# als root einloggen
$ sudo -s
# aktuelle Version von git
$ add-apt-repository ppa:git-core/ppa
$ apt-get update
$ apt-get install build-essential git-core| apt-get update | |
| apt-get upgrade | |
| apt-get install software-properties-common python-software-properties | |
| add-apt-repository -y ppa:ubuntu-elisp/ppa | |
| add-apt-repository -y ppa:fish-shell/release-2 | |
| add-apt-repository -y ppa:git-core/ppa | |
| add-apt-repository -y ppa:nginx/stable | |
| add-apt-repository -y ppa:mizuno-as/silversearcher-ag |
| {:ok, | |
| {:eldap_search_result, | |
| [{:eldap_entry, 'uid=elvis,ou=mail,o=abc,c=de', | |
| [{'uid', ['elvis']}, {'mail', ['[email protected]']}, | |
| {'givenName', ['Elvis Aaron']}, {'cn', ['Elvis Aaron Presley']}, | |
| {'carLicense', ['1a2b3c']}, {'sn', ['Presley']}]}], []}} |