Pinned Loading
-
elasticsearch.tf
elasticsearch.tf 1resource "aws_elasticsearch_domain" "demo" {
2domain_name = "demo"
3elasticsearch_version = "6.2"
45ebs_options {
-
Converts Heroku configs to a format ...
Converts Heroku configs to a format accepted by .env files 1# Converts Heroku configs to a format accepted by .env files
2class ConvertToEnv
3File.open('sample_env.txt').each do |line|
4line = line.sub(':', '=').delete(" \t\r\n")
5print "#{line}\n"
-
Parses a csv to look for email addre...
Parses a csv to look for email addresses. Then checks the sql table to see which emails exist and then returns those users ids. 1require 'mysql2'
2require 'csv'
34# Returns the user ids for emails that already exist
5class Users
-
VS Code Launch Configuration
VS Code Launch Configuration 1{
2"version": "0.2.0",
3"configurations": [
4{
5"type": "node",
-
Checks the difference between two files
Checks the difference between two files 1# To run, cd to this folder and put the following command in the command line
2# ruby check_difference.rb
34require 'set'
5 -
insert_records.rb
insert_records.rb 1# INSERT RECORDS INTO A DB
2# Use case: To insert millions of records into a local db to test scripts.
3# Testing scripts that affect millions of records on a remote db is very time consuming.
4require('mysql2')
5
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.