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
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<title>D3 test</title> | |
<script src="https://d3js.org/d3.v5.min.js"></script> | |
<body> | |
</body> | |
<script> | |
var acceleration = {"ddx": 0, "ddy": -10}; | |
var circleData = [ | |
{"x": 0, "y": 0, "dx": 50, "dy": 100, "r": 10, "fill": "red", "index": 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
podman run -p 8200:8200 \ | |
-v apm-server.yml:/usr/share/apm-server/apm-server.yml \ | |
docker.elastic.co/apm/apm-server-oss:6.5.4 | |
podman run -p 5000:5000 \ | |
-e "ES_JAVA_OPTS=-Xms256m -Xmx256m" \ | |
-v logstash.yml:/usr/share/logstash/config/logstash.yml \ | |
docker.elastic.co/logstash/logstash-oss:6.5.4 | |
podman run -p 5601:5601 \ |
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
ansible | |
jenkins | |
bitbucket | |
confluence | |
jira | |
op5 | |
idm | |
elk |
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 | |
## The ip address XXX.XXX.XXX.XXX/32 below needs to be replaced by the jump box address | |
## This locks down the server post-creation and sets it up with a 'sidney' user, since that is my local user, it makes it | |
## convenient to log in without the centos@ | |
## also, I'm curling 404's from http://wiseyacht.com/ as my crude verification that it's finished, cause I can tail that | |
## apache log | |
useradd sidney | |
cp -r ~centos/.ssh ~sidney | |
chown -R sidney. ~sidney/.ssh |
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
var fs = require('fs'); | |
var d3 = require('d3'); | |
var jsdom = require('jsdom'); | |
module.exports = function(outputLocation, graphTitle) { | |
if (!outputLocation) | |
outputLocation = 'test.svg'; | |
if (!graphTitle) |
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
grep -vE "sshd.*Disconnected\ from" secure | \ | |
grep -vE "sshd.*Received\ disconnect" | \ | |
grep -vE "sshd.*invalid\ user" | \ | |
grep -vE "sshd.*Invalid\ user" | \ | |
grep -vE "sshd.*Connection\ closed" | \ | |
grep -vE "sshd.*Disconnecting" | \ | |
grep -vE "sshd.*maximum\ authentication\ attempts" | \ | |
grep -vE "sshd.*reverse\ mapping\ checking" | \ | |
grep -vE "sshd.*Did\ not\ receive\ identification\ string" | \ | |
grep -vE "sshd.*Address.*maps\ to.*but\ this\ does\ not\ map\ back\ to\ the\ address" | \ |
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
add_action('action_hook_espresso_save_attendee_data','espresso_create_wp_user', 10, 1); | |
function espresso_create_wp_user($attendee_data) { | |
if( username_exists( $attendee_data['email'] ) == NULL ) { | |
global $org_options, $wpdb; | |
// Generate the password and create the user | |
$password = wp_generate_password( 12, false ); | |
$user_id = wp_create_user( $attendee_data['email'], $password, $attendee_data['email'] ); | |
// Set the users details |
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
jQuery(document).ready(function() { | |
jQuery('#spco-go-to-step-payment_options-btn').click(function() { | |
if (jQuery('.reg-page-payment-option-dv').length == 1) { | |
setTimeout(function(){jQuery('.reg-page-payment-option-dv').click();}, 2000); | |
} | |
}); | |
}); |
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
function espresso_list_of_event_dates( $EVT_ID = FALSE, $dt_frmt = '', $tm_frmt = '', $echo = TRUE, $show_expired = NULL, $format = TRUE, $add_breaks = TRUE ) { | |
$dt_frmt = ! empty( $dt_frmt ) ? $dt_frmt : get_option('date_format'); | |
$tm_frmt = ! empty( $tm_frmt ) ? $tm_frmt : get_option('time_format'); | |
$datetimes = EEH_Event_View::get_all_date_obj( $EVT_ID ,$show_expired ); | |
//d( $datetimes ); | |
if ( is_array( $datetimes ) && ! empty( $datetimes )) { | |
global $post; | |
$html = $format ? '<ul id="ee-event-datetimes-ul-' . $post->ID . '" class="ee-event-datetimes-ul">' : ''; | |
foreach ( $datetimes as $datetime ) { | |
if ( $datetime instanceof EE_Datetime ) { |
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
<VirtualHost *:80> | |
ServerName XXXXXX.localhost | |
ServerAdmin webmaster@localhost | |
DocumentRoot /var/www/XXXXXX/htdocs | |
LogLevel warn | |
ErrorLog "|/sbin/cronolog /var/www/XXXXXX/logs/%Y/%m/%Y-%m-%d-error.log" | |
CustomLog "|/sbin/cronolog /var/www/XXXXXX/logs/%Y/%m/%Y-%m-%d-access.log" combined | |
<Directory /var/www/XXXXXX/htdocs/> | |
RewriteEngine on | |
RewriteBase / |
NewerOlder