As configured in my dotfiles.
start new:
tmux
start new with session name:
As configured in my dotfiles.
start new:
tmux
start new with session name:
| #!/bin/bash | |
| # This scripts scans the elasticsearch source code for all the registered REST endpoints | |
| # It will put the formatted output in $DEFINITIONOUTPUTFILE | |
| # [MethodName] [HttpVerb] [Route] | |
| ESFOLDER="../elasticsearch" | |
| DEFINITIONOUTPUTFILE="src/Generated/rest-actions.txt" | |
| # Find all the lines that registerHandlers |
| rrdtool lastupdate /path/to.rrd | sed ':a;N;$!ba;s/.*: \([0-9]*\)/\1/g' |
| Map | Action |
|---|---|
| <F1> | Causes Netrw to issue help |
| <cr> | Netrw will enter the directory or read the file |
| <del> | Netrw will attempt to remove the file/directory |
| - | Makes Netrw go up one directory |
| a | Toggles between normal display, hiding (suppress display of files matching g:netrw_list_hide) showing (display only files which match g:netrw_list_hide) |
| c | Make browsing directory the current directory |
| C | Setting the editing window |
| d | Make a directory |
To merge exist migration files into one file:
django_migration records table (manually)python manage.py migrate --fake commandpython manage.py makemigrations commandpython manage.py migrate --fake-initial commandpython manage.py migrate contenttypes commandThe connection failed because by default psql connects over UNIX sockets using peer authentication, that requires the current UNIX user to have the same user name as psql. So you will have to create the UNIX user postgres and then login as postgres or use sudo -u postgres psql database-name for accessing the database (and psql should not ask for a password).
If you cannot or do not want to create the UNIX user, like if you just want to connect to your database for ad hoc queries, forcing a socket connection using psql --host=localhost --dbname=database-name --username=postgres (as pointed out by @meyerson answer) will solve your immediate problem.
But if you intend to force password authentication over Unix sockets instead of the peer method, try changing the following pg_hba.conf* line:
from
| # Show proxy settings | |
| function proxy_show(){ | |
| env | grep -e _PROXY -e _proxy | sort | |
| } | |
| # Configure proxy | |
| function proxy_on(){ | |
| # You may need to hardcode your password, proxy server, and proxy port | |
| # if the following variables do not exist | |
| export HTTP_PROXY="http://$USERNAME:$PASSWORD@$PROXY_SERVER:$PROXY_PORT" |