- clone bosh repo
bundle install
- create a plugin.rb https://github.com/cloudfoundry/bosh/tree/master/bosh-monitor/lib/bosh/monitor/plugins
- create a plugin spec.rb https://github.com/cloudfoundry/bosh/tree/master/bosh-monitor/spec/unit/bosh/monitor/plugins
- Write tests and make them pass
- Allow consul configuration to be passed into
health_monitor
job template https://github.com/cloudfoundry/bosh/blob/master/release/jobs/health_monitor/spec and https://github.com/cloudfoundry/bosh/blob/master/release/jobs/health_monitor/templates/health_monitor.yml.erb - run the rake task to create a bosh release of bosh
- upload to your microbosh
- create a deployment manifest to deploy a new bosh https://github.com/cloudfoundry/bosh/blob/master/release/examples/bosh-openstack-solo.yml
- deploy
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 re | |
strings = set() | |
with open('texts.txt', mode='r', encoding='utf-8') as file_input: | |
content = file_input.read() | |
regExStr = r'^\s*\d string title = "(?:tooltip\d+|Name|Dialogue Text)"\n\s*\d string value = "((?!(START|input|\w+\(\)|\!\(\w+\(\)\))).+)"$' | |
compiled = re.compile(regExStr, re.MULTILINE) | |
matched = compiled.finditer(content) |
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
# calculating RSI (gives the same values as TradingView) | |
# https://stackoverflow.com/questions/20526414/relative-strength-index-in-python-pandas | |
def RSI(series, period=14): | |
delta = series.diff().dropna() | |
ups = delta * 0 | |
downs = ups.copy() | |
ups[delta > 0] = delta[delta > 0] | |
downs[delta < 0] = -delta[delta < 0] | |
ups[ups.index[period-1]] = np.mean( ups[:period] ) #first value is sum of avg gains |
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
#!/bin/bash | |
to=$1 | |
subject=$2 | |
body=$3 | |
/usr/bin/telegram-cli --bot \ | |
--profile bot \ | |
--disable-names \ | |
--disable-output \ |
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
#!/bin/bash | |
# Uses telegram-cli to send a message to the given destination | |
# Usage: ./telegram_msg <DESTINATION> <MESSAGE> | |
#============================================================== | |
# Constants | |
#============================================================== | |
APP_NAME=telegram_msg | |
# Name of the app as appears in logs | |
APP="/usr/local/bin/telegram-cli" | |
# telegram-cli location |
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
iaas_settings: | |
compilation_cloud_properties: | |
cpu: 2 | |
disk: 8192 | |
ram: 1024 | |
disk_pools: | |
- cloud_properties: | |
type: thick | |
name: database_disks | |
resource_pool_cloud_properties: |
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
# ~/.lldbinit-Xcode | |
# Apple private methods | |
command regex ivars 's/(.+)/po [%1 _ivarDescription]/' | |
command regex methods 's/(.+)/po [%1 _methodDescription]/' | |
command regex shortmethods 's/(.+)/po [%1 _shortMethodDescription]/' | |
command regex nextviewcontroller 's/(.+)/po [%1 _nextViewControllerInResponderChain]/' | |
command alias nextvc nextviewcontroller | |
# Convenience |
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
#!/bin/sh | |
PLIST_BUDDY=/usr/libexec/PlistBuddy | |
function add_compatibility() { | |
"$PLIST_BUDDY" -c "Add DVTPlugInCompatibilityUUIDs:10 string $2" \ | |
"$1/Contents/Info.plist" | |
} | |
function has_compatibility() { |