- depends on ipset, monit, jdk
- update rpm,
sudo rpm --import http://packages.confluent.io/rpm/4.0/archive.key
- Do the
confluent.repo
step https://docs.confluent.io/current/installation/installing_cp.html#rhel-and-centos sudo yum install confluent-platform-oss-2.11
- Update
sudo vim /etc/kafka/zookeeper.properties
- Why are we doing this? Can we not?
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.exports = { | |
env: { | |
browser: true, | |
es2020: true | |
}, | |
extends: [ | |
'standard' | |
], | |
parser: 'babel-eslint', | |
parserOptions: { |
- Head to the confluent directory, prep
cd /Users/Ian/Downloads/confluent-3.3.0
export PATH=/Users/Ian/Downloads/confluent-3.3.0/bin:$PATH
- Start up the relevant Confluent stuff
clear && ./bin/connect-standalone ./etc/schema-registry/connect-avro-standalone.properties ./etc/kafka-connect-jdbc/source-dors.properties
- Run your standalone connector
clear && ./bin/connect-standalone ./etc/schema-registry/connect-avro-standalone.properties ./etc/kafka-connect-jdbc/source-dors.properties
- Wait a minute or two for the connector to get up & running
- You can run a console consumer just to see if there's stuff in the topic
--bootstrap-server localhost:9092 --topic test-dors-jdbc-v_reg_total --from-beginning
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
[ | |
{ | |
"text": "Hi there, new person! Some tips now that you've joined this fantastic Slack.\n• Introduce yourself on #general so that we can say Hi.\n• Check out our growing Channel list. Big ones will be #code-people, #net-people or #web-people. #random is good for...randomness.\n• If you’re an IT manager & want to talk people-skill stuff, ask @codyh for an invite to #people-people\n• Channels are free. Create one if you want to talk about some topic! Let us know about the new channel in #general\n• Fill out your profile with where you work/what you do\n • https://get.slack.help/hc/en-us/articles/204092246-Edit-your-profile" | |
} | |
] |
Testing the removal of the the single-column index E_AUDITS_F_CR_DA_FK_1
because the column it indexes etl_audit_id
is also the first column in a multi-column index.
select * from fac_cr_degree_applicable where etl_audit_id = '13869193';
With the single-column index on, the single-column index is used and the cost is 3.
With the single-column index disabled, the multi-column indexx is used and the cost is 3.
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
/* | |
I am preparing a communication to send out to graduate faculty in the following colleges: | |
CEHD (06GRD, 06DMS) | |
CFANS (30GRD) | |
CVM (03GRD) | |
CSOM (02GRD) | |
Would it be possible to query the Faculty Role List database to get a list of graduate faculty from the above colleges including | |
active faculty, name, program (college), and email address? | |
*/ |
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
def classify_jobs(queue = 'default') | |
hsh = Hash.new{|hsh, key| hsh[key] = 0} | |
Sidekiq::Queue.new(queue).each do |j| | |
hsh[j.klass] += 1 | |
end | |
puts hsh if hsh.values.any?(&:present?) | |
end |
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 DataViews | |
def self.root | |
@root ||= File.expand_path(File.join("..", ".."), __FILE__) | |
end | |
def self.environment | |
@environment ||= Rails.env || "development" | |
end | |
def self.environment=(other) |
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
Clojure | |
Empty board | |
Board comparison | |
Attacking | |
C++ | |
Can't occupy same space | |
Attacking | |
ECMA |
My initial confusion started when I looked at this code:
http://exercism.io/submissions/e3e0acc3148b4f42aed494485ccd0bb8
Specifically this bit
.collect::<String>() {
ref s if s.is_empty() => return num.to_string(),
s => s,
NewerOlder