| title | author | date | source | notoc |
|---|---|---|---|---|
LDAP Search Filter Cheatsheet |
Jon LaBelle |
January 4, 2021 |
true |
| $ git clone git@github.com:xxxxx/xxxx.git my-awesome-proj | |
| Cloning into 'my-awesome-proj'... | |
| ssh: connect to host github.com port 22: Connection timed out | |
| fatal: Could not read from remote repository. | |
| $ # This should also timeout | |
| $ ssh -T git@github.com | |
| ssh: connect to host github.com port 22: Connection timed out | |
| $ # but this might work |
| # Allow managing leases | |
| path "sys/leases/*" | |
| { | |
| capabilities = ["create", "read", "update", "delete", "list", "sudo"] | |
| } | |
| # Manage auth methods broadly across Vault | |
| path "auth/*" | |
| { | |
| capabilities = ["create", "read", "update", "delete", "list", "sudo"] |
| // src/middlewares/flatten-response.js | |
| function flattenArray(obj) { | |
| return obj.map(e => flatten(e)); | |
| } | |
| function flattenData(obj) { | |
| return flatten(obj.data); | |
| } | |
| function flattenAttrs(obj) { |
HAProxy is a open-source TCP/HTTP load-balancing proxy server supporting native SSL, keep-alive, compression CLI, and other modern features.
Let’s Encrypt is a free, automated, and open certificate authority (CA), run for the public’s benefit. Let’s Encrypt is a service provided by the Internet Security Research Group (ISRG).
| const minute = 60; | |
| const hour = minute * 60; | |
| const day = hour * 24; | |
| const week = day * 7; | |
| const month = day * 30; | |
| const year = day * 365; | |
| /** | |
| * Convert a date to a relative time string, such as | |
| * "a minute ago", "in 2 hours", "yesterday", "3 months ago", etc. |
| sudo openssl genrsa -des3 -out server.key 1024 | |
| openssl req -new -key server.key -out server.csr | |
| cp server.key server.key.old | |
| openssl rsa -in server.key.old -out server.key | |
| sudo openssl x509 -req -days 3650 -in server.csr -signkey server.key -out server.crt | |
| sudo openssl pkcs12 -inkey server.key -in server.crt -export -out server.pkcs12 | |
| keytool -importkeystore -srckeystore server.pkcs12 -srcstoretype PKCS12 -destkeystore keystore | |
| keytool -list -v -keystore keystore | |
| java -cp /jetty-8.1.3/lib/jetty-util-8.1.3.v20120416.jar org.eclipse.jetty.util.security.Password password |
A quick guide on how to setup Node.js development environment.
nvm allows installing several versions of Node.js to the same system. Sometimes applications require a certain versions of Node.js to work. Having the flexibility of using specific versions can help.
- Open new Terminal window.
| # see How to Install Redis Server on CentOS 7 - http://linoxide.com/storage/install-redis-server-centos-7/ | |
| # --- Compiling --- | |
| $ yum install gcc make tcl | |
| $ REDIS_VER=3.2.3 | |
| $ wget http://download.redis.io/releases/redis-$REDIS_VER.tar.gz | |
| $ tar xzvf redis-$REDIS_VER.tar.gz | |
| $ cd redis-$REDIS_VER | |
| $ make | |
| $ make test |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.