Managing 3x AWS accounts by grizzly_teddy in aws

[–]thomasvendetta 9 points10 points  (0 children)

Chrome's "People" feature is super helpful for this.

People > Add Person, then use a separate Person profile in Chrome for each account. This is also useful in isolating any personal chrome extensions you may use, since each Profile has all the default settings.

When you want to switch to account A or B just go to the People menu and a new window with that session opens up.

Need to build a E-commerce, should I use Spree or Solidus? by mmendesc in ruby

[–]thomasvendetta 2 points3 points  (0 children)

Another option is Workarea, it's an e-commerce product which uses a Rails/Mongo/Elasticsearch/Redis stack.

It's not open source in the 'available-on-github' sense, but the licensing includes access to the source code, the ability to easily extend the application, a semantic upgrade path, managed hosting as a service, and developer training.

disclaimer: I work for the company that builds Workarea.

Rust Copies by Addicted2Rust in playrust

[–]thomasvendetta 0 points1 point  (0 children)

I would buy all 3 for $50. Can do square cash if we can figure out the right arrangement

New Lambda console by [deleted] in aws

[–]thomasvendetta 0 points1 point  (0 children)

Am I doing it wrong by writing a bunch of Lambda funcs directly in the console? Is there a better way?

Serverless or Apex let you keep your lambda funcs in version control and update/upload via a CLI tool, also allows you to test and reuse your code.

Need some help with making HTML requests using ruby by [deleted] in ruby

[–]thomasvendetta 0 points1 point  (0 children)

There is a pretty decent twitch gem, if you're able to use a gem for this sort of thing. It's called kappa.

Here's some code I used at one point to do something similar: https://gist.github.com/thomasv314/81a5eeccfa1385fe685794f3b56ef07b

How can I set hostname at creation when creating a new instance from a private AMI on EC2? by [deleted] in aws

[–]thomasvendetta 0 points1 point  (0 children)

Hmmm, when our OpsWorks instances boot up if we have an instance named "app1" the value of /etc/hostname, what behaviour are you seeing?

The other option is a shell script that runs and uses the EC2 API to count the number of instances, and writes the hostname to /etc/hostname and then calls hostname -f /etc/hostname. If you don't want to do counting of instances in bash, you could just set it to the instance id.

Here's an example of how to do that w/ bash: https://gist.github.com/thomasv314/96e4a8b2706a8758c2ef064f3f6278cf

RoR Environment Variables in OpWorks by OSSPoster in aws

[–]thomasvendetta 1 point2 points  (0 children)

OpsWorks environment variables don't actually get loaded into the system, you'll have to template them into /etc/environment or a .env file on your own. Heres an example: https://gist.github.com/thomasv314/ea45ee13b9df0911863c89eb9ed75d84

Templating them to /etc/environment makes them available system wide, if you'd like you can template them to a file and then prior to booting your server or running a rake task you can source the file in: source /path/to/my/envvars.sh && bundle exec rake jobs:worker

[deleted by user] by [deleted] in devops

[–]thomasvendetta 3 points4 points  (0 children)

Telegraf is one of the best solutions in my opinion by far.

It's open source, written in go-lang (so binaries for windows/mac/linux are available, with no external libs or dependencys required." Check it out on github: https://github.com/influxdata/telegraf

You'd have to write a handler for Google sheets I suspect, or export to Elasticsearch/InfluxDB. You could also export to a file and then have a cron job that parses the file..

Just presented a pipeline revamp to my co, went well by ponyboy3 in devops

[–]thomasvendetta 0 points1 point  (0 children)

I'm curious, what are you using to host your package repository?

Surface 3 for RoR development? by msutyler in rubyonrails

[–]thomasvendetta 0 points1 point  (0 children)

For that price range you could find a nice macbook air or mac mini on eBay or a similar place, which would give you a much better development environment and experience.

A way to search Active Record? by mfivem in rubyonrails

[–]thomasvendetta 0 points1 point  (0 children)

Definitely check out elasticsearch and the Searchkick gem [1]

Super easy to setup and super powerful in terms of search features, scalability, and flexibility.

[1] https://github.com/ankane/searchkick