This file contains hidden or 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
expect -c ' | |
log_file <file> | |
spawn telnet <server> <port> | |
sleep 3 | |
send "lru_crawler metadump all\r" | |
expect "END" | |
' >/dev/null& |
This file contains hidden or 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
#!/usr/bin/ruby | |
# workaround for https://youtrack.jetbrains.com/issue/RUBY-26305 | |
# save this wrapper script, make it executable, and set it as the docker-compose executable for RubyMine | |
# Build, Execution, Deployment -> Docker -> Tools | |
override_path = ARGV.select { |arg| arg =~ /.*override.*yml/ }.first | |
if override_path | |
override_data = File.read(override_path) | |
File.write(override_path, override_data.gsub(/\$\/'"/, %q($$/'"))) | |
end | |
exec 'docker-compose', *ARGV |
This file contains hidden or 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
#!/bin/bash | |
# | |
# this script will attempt to detect any ephemeral drives on an EC2 node and create a RAID-0 stripe | |
# mounted at /mnt. It should be run early on the first boot of the system. | |
# | |
# Beware, This script is NOT fully idempotent. | |
# | |
METADATA_URL_BASE="http://169.254.169.254/2012-01-12" |
This file contains hidden or 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
### | |
Module dependencies | |
### | |
require.paths.unshift "#{__dirname}/lib/support/express-csrf/" | |
require.paths.unshift "#{__dirname}/lib/support/node_hash/lib/" | |
express = require 'express' | |
app = module.exports = express.createServer() | |
RedisStore = require 'connect-redis' |