Putty does not show correct prompt using Powerline fonts
https://github.com/arialdomartini/oh-my-git/issues/10#issuecomment-166732282
https://github.com/arialdomartini/oh-my-git/issues/10#issuecomment-166732282
Remember_windows
PPTP uses the GRE (Generic Routing Encapsulation) protocol to create a point-to-point tunnel. As a pure IP protocol, GRE uses only IP addresses, but without the port numbers given by a router with NAT, and without the delay in establishing a connection. In its basic configuration, OpenWrt Backfire is capable… Continue reading
about:config
|
1 2 |
browser.urlbar.openViewOnFocus = false browser.urlbar.update1 = false |
snuba
|
1 |
FROM "getsentry/snuba:latest" |
snuba-consumer
|
1 2 |
FROM "getsentry/snuba:latest" CMD ["consumer", "--auto-offset-reset=latest", "--max-batch-time-ms", "750"] |
snuba-replacer
|
1 2 |
FROM "getsentry/snuba:latest" CMD ["replacer", "--auto-offset-reset=latest", "--max-batch-size", "3"] |
snuba-cleanup
|
1 2 3 4 5 |
FROM "getsentry/snuba:latest" RUN apt-get update && apt-get install -y cron && rm -r /var/lib/apt/lists/* RUN echo "*/5 * * * * gosu snuba snuba cleanup --dry-run False" | crontab - ENTRYPOINT ["/usr/sbin/cron"] CMD ["-l", "-L", "15", "-f"] |
sentry-web
|
1 |
sudo SENTRY_IMAGE=getsentry/sentry:10.0.0 ./install.sh |
|
1 |
FROM "sentry-onpremise-local:latest" |
sentry-cron
|
1 2 |
FROM "sentry-onpremise-local:latest" CMD ["run", "cron"] |
sentry-worker
|
1 2 3 |
FROM "sentry-onpremise-local:latest" ENV PYTHONWARNINGS "ignore:Unverified HTTPS request" CMD ["run", "worker"] |
sentry-forwarder
|
1 2 |
FROM "sentry-onpremise-local:latest" CMD ["run", "post-process-forwarder", "--commit-batch-size", "1"] |
Dockerfile
|
1 2 3 4 5 6 7 8 9 |
FROM node:12-slim EXPOSE 9000 RUN mkdir /app WORKDIR /app RUN curl {URL_WITH_THE_APP} | tar -x && chown -R node:node /app USER node RUN npm i CMD ["npm", "start"] |
Build
|
1 |
sudo docker build -t {IMAGE} --pull --no-cache . |
Save image
|
1 |
sudo docker save {IMAGE:TAG} | gzip > {FILE.tar.gz} |
Load image
|
1 2 |
curl {IMAGE_URL} z -o {FILE.tar.gz} sudo docker load -i {FILE.tar.gz} |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
db.getCollection("abstracts").aggregate([ { "$addFields": { "keywordsStr": { "$reduce": { "input": "$keywords", "initialValue": "", "in": { '$concat': [ '$$value', { '$cond': [ { '$eq': ['$$value', ''] }, '', ', ' ] }, '$$this'] } } } }, }, ]) |
Get datetime of last successful login of each user – from logs collection
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
// Requires official MongoShell 3.6+ db.getCollection("log").aggregate( [ { $match: { "message": { "$eq": "USER_SUCCESS_LOGIN" } } }, { $sort: { timestamp: -1 } }, { $lookup: { "from": "users", "localField": "meta.user", "foreignField": "_id", "as": "user" } }, { $match: { "user": { $ne: [] } } }, { $unwind: { path: "$user" } }, { $project: { "timestamp": { $dateToString: { format: "%Y-%m-%d %H:%M:%S:%L", date: "$timestamp" }} , "message": 1, "userid": "$user._id", "firstName": "$user.firstName", "lastName": "$user.lastName", } }, { $group: { "_id": "$userid", "firstName": { $first: "$firstName" }, "lastName": { $first: "$lastName" }, "lastLogin": { $first: "$timestamp" } } } ], { "allowDiskUse": true } ); |
Counts log entries, with type equal 'CREATE’ , fetch patients data from another collection, remove empty documents (if patients was not found the field is empty array), count by provided user id.
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
var user_id = '5ad070640c9faddd41a4b665' db.getCollection('log').aggregate([ { $match: { message: {$eq: 'CREATE' } }}, { $lookup: { from: 'patients', localField: 'meta.patient', foreignField: '_id', as: 'patient' } }, { $match: { patient: {$not: {$size: 0}} }}, { $match: {'meta.user': {$eq: ObjectId(user_id)}}}, { $count: "created" } ]) |
Detailed manual: https://www.paraview.org/Wiki/ParaView/ParaView_And_Mesa_3D LLVM (works only with 3.x, tested with 3.9.1):
|
1 |
cmake ../ -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/packages/llvm/3.9.1 -DLLVM_BUILD_LLVM_DYLIB=ON -DLLVM_ENABLE_RTTI=ON -DLLVM_INSTALL_UTILS=ON -DLLVM_TARGETS_TO_BUILD:STRING=X86 |
OSMesa (works only with 13.x, tested with 13.0.6):
|
1 |
./configure --prefix=/packages/mesa/13.0.6-gcc520 --enable-opengl --disable-gles1 --disable-gles2 --disable-va --disable-xvmc --disable-vdpau --enable-shared-glapi --disable-texture-float --enable-gallium-llvm --with-gallium-drivers=swrast,swr --disable-dri --with-dri-drivers= --disable-egl --with-egl-platforms= --disable-gbm --disable-glx --disable-osmesa --enable-gallium-osmesa --with-llvm-prefix=/packages/llvm/3.9.1/ |
ParaView (tested with 5.5.2)
|
1 |
cmake ../ -DPARAVIEW_BUILD_QT_GUI=OFF -DVTK_USE_X=OFF -DOPENGL_INCLUDE_DIR=IGNORE -DOPENGL_xmesa_INCLUDE_DIR=IGNORE -DOPENGL_gl_LIBRARY=IGNORE -DOSMESA_INCLUDE_DIR=/packages/mesa/13.0.6-gcc520/include/ -DOSMESA_LIBRARY=/packages/mesa/13.0.6-gcc520/lib/libOSMesa.so -DVTK_OPENGL_HAS_OSMESA=ON -DVTK_USE_OFFSCREEN=OFF -DCMAKE_INSTALL_PREFIX=/packages/paraview/5.5.2/ -DCMAKE_BUILD_TYPE=Release -DPARAVIEW_USE_MPI=ON |
Works fine with MPI from Intel Parallel Studio 2018. Built with GCC 5.2.0 Requires Python 2.7