These are the Kickstarter Engineering and Data role definitions for both teams.
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
| class UserMailer < ApplicationMailer | |
| default from: "[email protected]" | |
| def send_to_kindle((kindle_mail, file_name, file_path) | |
| attachments["#{file_name}"] = File.read(file_path) | |
| mail(to: kindle_mail, | |
| subject: "Send", | |
| mime_type: 'application/x-mobipocket-ebook' |
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
| require 'openssl' | |
| def encrypt_string(str) | |
| cipher_salt1 = 'some-random-salt-' | |
| cipher_salt2 = 'another-random-salt-' | |
| cipher = OpenSSL::Cipher.new('AES-128-ECB').encrypt | |
| cipher.key = OpenSSL::PKCS5.pbkdf2_hmac_sha1(cipher_salt1, cipher_salt2, 20_000, cipher.key_len) | |
| encrypted = cipher.update(str) + cipher.final | |
| encrypted.unpack('H*')[0].upcase | |
| 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
| input { | |
| file { | |
| path => "file_name.csv" | |
| start_position => "beginning" | |
| sincedb_path => "/tmp/mysincedbfile" | |
| } | |
| } | |
| filter { | |
| csv { | |
| separator => "," |
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/logstash-plugin install logstash-input-elasticsearch | |
| #bin/logstash-plugin install logstash-output-csv | |
| input { | |
| elasticsearch { | |
| hosts => "localhost:9200" | |
| index => "shop_inventory*" | |
| scroll => "5m" | |
| docinfo => true | |
| query => '{ "query": {"match_all": {} }}' |
Picking the right architecture = Picking the right battles + Managing trade-offs
- Clarify and agree on the scope of the system
- User cases (description of sequences of events that, taken together, lead to a system doing something useful)
- Who is going to use it?
- How are they going to use it?
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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <title>Welcome to Nginx</title> | |
| </head> | |
| <body> | |
| <h1> Hello World</h1> | |
| <p> This is static page served using nginx. </p> | |
| </body> |
Note: I'm currently taking a break from this course to focus on my studies so I can finally graduate
- By Edmond Lau
- Highly Recommended 👍
- http://www.theeffectiveengineer.com/
- They are the people who get things done. Effective Engineers produce results.
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
| pip install selenium #install selenium Driver | |
| from selenium import webdriver | |
| from selenium.webdriver.common.keys import Keys | |
| for i in range(100): #100 times it will run in loop | |
| driver = webdriver.Firefox() | |
| driver.get("https://www.youtube.com/watch?v=37dnlvHfZjE") #paste the url link which you want to see certain number of times |
NewerOlder