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
// This example clones https://github.com/bevyengine/bevy/blob/latest/examples/games/breakout.rs | |
// with https://github.com/bevyengine/bevy/blob/latest/examples/games/stepping.rs | |
// into a single file, with modifications to be called from main.rs. | |
//! A 3d Scene with a button and playing sound. | |
use bevy::input::touch::{TouchInput, TouchPhase}; | |
use bevy::math::bounding::{Aabb2d, BoundingCircle, BoundingVolume, IntersectsVolume}; | |
use bevy::{ | |
app::MainScheduleOrder, |
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/zsh | |
# Grab PROJECT from Cargo.toml project.name | |
PROJECT=$(grep "name" Cargo.toml | cut -d '"' -f 2 | head -n 1) | |
PROJECT_ORG="bevyengine" | |
PROJECT_ORG_STRUCTURE="org.${PROJECT_ORG}.${PROJECT}" | |
BEVY_RELEASE="refs/heads/release-0.15.2" | |
echo "Creating new Bevy project: ${PROJECT} with organization structure: ${PROJECT_ORG_STRUCTURE}" |
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
theme: | |
background-color: 225 14 15 | |
primary-color: 157 47 65 | |
contrast-multiplier: 1.1 | |
branding: | |
custom-footer: | | |
<p><a href="https://github.com/hortonew">github.com/hortonew<a></p> | |
pages: | |
- name: Home | |
columns: |
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 | |
# Note: This config renews letsencrypt certs for "mydomain.com". Modify this for your own domain or remove those steps. | |
set -e | |
# Update image | |
docker pull homeassistant/home-assistant:latest | |
d=`date +%Y-%m-%d-%H` | |
# Identify and stop old instance of home assistant | |
olddockerid=`docker ps -a | grep home-assistant | awk '{ print $1 }'` |
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
[libdefaults] | |
default_realm = CORPORATE.COMPANY.COM | |
krb4_config = /etc/krb.conf | |
krb4_realms = /etc/krb.realms | |
kdc_timesync = 1 | |
ccache_type = 4 | |
forwardable = true | |
proxiable = true | |
v4_instance_resolve = false | |
v4_name_convert = { |
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
--- | |
- name: Set env variables | |
hosts: localhost | |
connection: local | |
environment: | |
AWS_ACCESS_KEY_ID: "{{ AWS_ACCESS_KEY }}" | |
AWS_SECRET_ACCESS_KEY: "{{ AWS_SECRET_KEY }}" | |
tasks: | |
- name: Build AWS Inventory | |
command: "{{ ec2_py_location }} --list --refresh-cache" |
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
Example SHCluster Config | |
See doc for up to date configurations: http://docs.splunk.com/Documentation/Splunk/latest/DistSearch/SHCdeploymentoverview | |
Would recommend sharing splunk.secret on deployer and any search head part of cluster so you can maintain configs on deployer. | |
Splunk admin user: admin | |
Splunk admin password: my-splunk-admin-password | |
3 Search heads in cluster: searchhead-01, searchhead-02, searchhead-03 | |
Search cluster secret: my-shc-secret | |
Search cluster label: my-shc-cluster-label |
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
TODO | |
1. Pull date from source file name (fileName_23052018.log) | |
2. (DONE) Pull time from line entry | |
3. (DONE) Send to null queue -> "First line of every file" | |
4. (DONE) Send to null queue -> "Lines with -------------------------------" | |
props.conf | |
[Ayehu:EyeShare:Executor] | |
TRUNCATE=0 | |
TIME_FORMAT=%X |
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
[default] | |
homepath.maxDataSizeMB = 300000 | |
coldPath.maxDataSizeMB = 200000 | |
repFactor = auto | |
[volume:primary] | |
path = /opt/splunk/indexes/hot | |
maxVolumeDataSizeMB = 1500000 | |
[volume:secondary] |
NewerOlder