- In run configurattion, chose a python configuration.
- Then select module instead of script
- As module use bokeh
- Add your arguments, like "serve app"
- correctly set your working directory.
Then debug!
This is based on https://github.com/codeforamerica/ohana-api/wiki/Installing-MongoDB-with-MacPorts-on-OS-X
the macports version of MongoDB does not come pre-configured and will not run after installing until you change some settings. The instructions linked above describe a way to fix this but they ignore the fact that many of the directories are already created and owned by the user "_mongo". It also runs the daemon as root rather than _mongo. Below is a modified approach that uses the _mongo user and avoids creating unnecessary directories.
sudo port install mongodb
(you probably want to start with a sudo port selfupdate
)sudo mkdir /opt/local/etc/mongodb/
sudo pico /opt/local/etc/mongodb/mongod.conf
ANSI_X3.4-1968 ANSI_X3.4-1986 ASCII CP367 IBM367 ISO-IR-6 ISO646-US ISO_646.IRV:1991 US US-ASCII CSASCII | |
UTF-8 | |
ISO-10646-UCS-2 UCS-2 CSUNICODE | |
UCS-2BE UNICODE-1-1 UNICODEBIG CSUNICODE11 | |
UCS-2LE UNICODELITTLE | |
ISO-10646-UCS-4 UCS-4 CSUCS4 | |
UCS-4BE | |
UCS-4LE | |
UTF-16 | |
UTF-16BE |
mkdir ./output | |
# May need to change the gravity and size parameters | |
mogrify -path ./output -depth 8 -compress LZW -sampling-factor 4:2:0 -strip -quality 85 -interlace JPEG -colorspace RGB -size 1000x1000 -thumbnail 500x500^ -gravity north -extent 500x500 +profile "*" * |
mkdir ./output | |
mogrify -path ./output -depth 8 -resize 16% -compress LZW -sampling-factor 4:2:0 -strip -quality 85 -interlace JPEG -colorspace RGB * |
for file in /proc/*/status ; do awk '/VmSwap|Name/{printf $2 " " $3}END{ print ""}' $file; done |
#!/usr/bin/env bash | |
changed_files="$( git diff-tree -r --name-only --no-commit-id origin/master HEAD)" | |
changed() { | |
echo "$changed_files" | wc -l | grep --quiet "[123456789]*" && eval "$1" | |
} | |
check_run() { | |
echo "$changed_files" | grep --quiet "$1" && eval "$2" | |
} |
git fsck --unreachable | grep commit | cut -d ' ' -f3 | xargs git log --merges --no-walk | |
git update-ref refs/stash 4b3fc45c94caadcc87d783064624585c194f4be8 -m "My recover stash" |
**xclip: Pipe output to the clipboard** | |
To mouse clipboard | |
> echo 123 | xclip | |
For the system clip board,( For virtual box ) | |
> echo 123 | xclip -sel clip | |
man file of xclip [here](https://linux.die.net/man/1/xclip). |