mkdir -p config
touch config/postfix-accounts.cf
docker run --rm
-e MAIL_USER=alex@domain.com
-e MAIL_PASS=password1
-ti tvial/docker-mailserver:latest
/bin/sh -c 'echo "$MAIL_USER|$(doveadm pw -s SHA512-CRYPT -u $MAIL_USER -p $MAIL_PASS)"' >> config/postfix-accounts.cf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
location /ws/ { | |
proxy_pass http://localhost:9000/; | |
proxy_http_version 1.1; | |
proxy_set_header Upgrade $http_upgrade; | |
proxy_set_header Connection 'upgrade'; | |
proxy_set_header Host $host; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-Proto $scheme; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_cache_bypass $http_upgrade; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
os.platform() !== "darwin" | |
// OR | |
process.platform !== 'darwin' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git archive --format zip --output /tmp/dev-project.zip main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
uglifyjs --compress --mangle toplevel=true -- bin/index.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var http = require('http'); | |
http.createServer(function (req, res) { | |
res.writeHead(200, {'Content-Type': 'application/json'}); | |
res.write('{"healthy":true}'); | |
res.end(); | |
}).listen(3000); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RegExpt for getting String before the first comma | |
^([^,])+ | |
... alternative approach (option with selecting all possible characters) | |
^[a-zA-Z0-9\s\-\(\)\_\<\>]+ | |
... and before the first space | |
^([^\s])+ | |
Regexp for removing blank lines |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
change package.json | |
{ | |
"name": "haroopad", | |
"version": "0.3.3", | |
"description": "Markdown Editor", | |
"main": "", | |
"homepage": "https://rhiokim.github.com/haroopad", | |
"repository": "git://github.com/rhiokim/haroopad.git", | |
"author": "rhio.kim@gmail.com", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
input { | |
file { | |
path => "/var/logs/csv/*.csv" | |
type => "csvdb" | |
start_position => "beginning" | |
} | |
} | |
filter { | |
if [message] =~ /^oid/ { |
-
find . -name 'й' | while read f; do echo mv "$f" "${f//й/й}"; done
-
find . -name 'ё' | while read f; do echo mv "$f" "${f//ё/ё}"; done
NewerOlder