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
/opt/nginx/logs/*.log { | |
weekly | |
missingok | |
rotate 52 | |
compress | |
delaycompress | |
notifempty | |
create 640 root adm | |
sharedscripts | |
postrotate |
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
# Update, upgrade and install development tools: | |
apt-get update | |
apt-get -y upgrade | |
apt-get -y install build-essential | |
apt-get -y install git-core | |
# Install rbenv | |
git clone git://github.com/sstephenson/rbenv.git /usr/local/rbenv | |
# Add rbenv to the path: |
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
Version : 5.0.8 | |
Date : 2015-05-22 08:47:10 +0200 | |
Instance: qGxnHldt (nginx/1.6.3 Phusion_Passenger/5.0.8) | |
----------- General information ----------- | |
Max pool size : 5 | |
Processes : 5 | |
Requests in top-level queue : 0 | |
----------- Application groups ----------- |
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
Version : 5.0.8 | |
Date : 2015-05-22 08:47:24 +0200 | |
Instance: qGxnHldt (nginx/1.6.3 Phusion_Passenger/5.0.8) | |
{ | |
"thread1" : { | |
"active_client_count" : 16, | |
"active_clients" : { | |
"1-29" : { | |
"connected_at" : { |
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
'use strict'; | |
// Position state: | |
// Characteristic.PositionState.DECREASING = 0; | |
// Characteristic.PositionState.INCREASING = 1; | |
// Characteristic.PositionState.STOPPED = 2; | |
var HandlerPattern = require('/usr/local/lib/node_modules/homebridge-knx/lib/addins/handlerpattern.js'); | |
var log = require('/usr/local/lib/node_modules/homebridge/node_modules/debug')('CustomWindowCovering'); |
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
import { getOutlookSignatureRawHtml } from "requests/signature"; | |
function onMessageComposeHandler(event) { | |
getOutlookSignatureRawHtml().then((response) => { | |
Office.context.mailbox.item.body.setSignatureAsync( | |
response.data.raw_html, | |
{ | |
"coercionType": "html", | |
"asyncContext": event | |
}, |
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
algoliasearch per_environment: true, enqueue: true, index_name: "emails" do | |
attributes :id, :email, :co_worker_id, :primary | |
attribute(:account_id) { co_worker.account_id } | |
attribute(:have_department) { department_id.present? } | |
attribute :attributes do | |
co_worker_attribute_values.map do |v| | |
{ slug: v.co_worker_attribute.slug, value: v.value } | |
end |
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
# Install nodenv | |
git clone https://github.com/nodenv/nodenv.git /opt/nodenv | |
# Add nodenv to the path: | |
echo '# nodenv setup' > /etc/profile.d/nodenv.sh | |
echo 'export NODENV_ROOT=/opt/nodenv' >> /etc/profile.d/nodenv.sh | |
echo 'export PATH="$NODENV_ROOT/bin:$PATH"' >> /etc/profile.d/nodenv.sh | |
echo 'eval "$(nodenv init -)"' >> /etc/profile.d/nodenv.sh | |
chmod +x /etc/profile.d/nodenv.sh |