This demo replaces the string @@VERSION
with the current unix timestamp when
building with gulp. @@VERSION
is a query parameter to bundle.js
. To avoid
caching bundle.js
, we add the timestamp to it during each build.
npm install
npm run build
# Your init script | |
# | |
# Atom will evaluate this file each time a new window is opened. It is run | |
# after packages are loaded/activated and after the previous editor state | |
# has been restored. | |
# | |
# An example hack to log to the console when each text editor is saved. | |
# | |
# atom.workspace.observeTextEditors (editor) -> | |
# editor.onDidSave -> |
#!/bin/sh | |
### BEGIN INIT INFO | |
# Provides: TeamCity Build Agent | |
# Required-Start: $remote_fs $syslog | |
# Required-Stop: $remote_fs $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Start build agent daemon at boot time | |
# Description: Enable service provided by daemon. | |
### END INIT INFO |
root = true | |
[*] | |
indent_style = space | |
indent_size = 2 | |
end_of_line = lf | |
charset = utf-8 | |
trim_trailing_whitespace = true | |
insert_final_newline = true |
This script makes use of the Numpad to control media players and volume on your system.
.ahk
scriptCompile Script
I hereby claim:
To claim this, I am signing this object:
Pattern file: /etc/logstash/patterns/nginx
Logstash shipper: /etc/logstash/conf.d/shipper.conf
Nginx http log module: http://nginx.org/en/docs/http/ngx_http_log_module.html
{ | |
"env": { | |
"node": true, | |
"es6": true | |
}, | |
"extends": [ | |
"eslint:recommended" | |
], | |
"parserOptions": { | |
"sourceType": "module", |
# https://www.rabbitmq.com/passwords.html#computing-password-hash | |
PASSWORD=$(openssl rand -base64 20) | |
SALT=$(openssl rand -hex 4) | |
HASH=$(echo -n "$SALT"$(echo -n "$PASSWORD" | xxd -u -p) | xxd -r -p | sha256sum | head -c 64) | |
PASSWORD_HASH=$(echo -n $SALT$HASH | xxd -r -p | base64) | |
echo $PASSWORD | |
echo $PASSWORD_HASH |
const express = require('express'); | |
const path = require('path'); | |
const fs = require('fs'); | |
const indexHtml = fs.readFileSync(path.join(__dirname, 'public', 'index.html'), 'utf8'); | |
const app = express(); | |
app.get('/', function (req, res) { | |
const html = indexHtml.replace(/\$CHANNEL_NAME/, process.env.CHANNEL_NAME); |