Skip to content

Instantly share code, notes, and snippets.

View Deekor's full-sized avatar
💻

Dee Evans Deekor

💻
View GitHub Profile
@Deekor
Deekor / Error running '__rvm_make -j16'.md
Created April 17, 2024 04:48
Error running '__rvm_make -j16' when installing ruby via rvm

1. Make sure your command line tools are up to date!

If your logs look something like this error: use of undeclared identifier 'RUBY_FUNCTION_NAME_STRING', command line tools are out of date.

2. Install with the openssl path

Now if your command line tools are up to date and you are getting an error like this:

./openssl_missing.h:195:11: warning: 'TS_VERIFY_CTS_set_certs' macro redefined [-Wmacro-redefined]

Run the install pointing to your brew installation of openssl:

@Deekor
Deekor / heroku-private-space-postgres-aws-glue.md
Last active October 12, 2020 20:45
Heroku Private space Postgres to AWS glue

You need to configure a PrivateLink. In your databse settings under Heroku Postgres via PrivateLink you can generate a private link to the vpc your AWS glue is running on. Once the link is established youll get some credentials you can use for your JDBC connection in Glue:

Heroku will give you a endpoint url once the private link is established in this format:

psql://username:password@host:5432/databasename you can parse out the username and password and then your jdbc url will be jdbc:postgresql://host:5432/databasename

If you are having an issue, make sure the aws role you are running the connection test through is configured in the heroku privatelink Allowed AWS Account IDs

@Deekor
Deekor / memkeys.rb
Last active April 20, 2020 05:59 — forked from bkimble/gist:1365005
List local memcached keys using Ruby
#!/usr/bin/env ruby
# List all keys stored in memcache.
# Credit to Graham King at http://www.darkcoding.net/software/memcached-list-all-keys/ for the original article on how to get the data from memcache in the first place.
require 'net/telnet'
headings = %w(id expires bytes cache_key)
rows = []
@Deekor
Deekor / railscloud9.txt
Last active March 24, 2019 06:12
Rails Cloud 9 Installation
ruby:
Simple rvm install
yarn:
https://linuxize.com/post/how-to-install-yarn-on-centos-7/
postgres:
https://medium.com/@floodfx/setting-up-postgres-on-cloud9-ide-720e5b879154
I ended up using `postgres` user instead of `ec2-user` ^
ident error: https://stackoverflow.com/a/7526119/1094339
@Deekor
Deekor / heoku_large_slug.md
Last active October 12, 2022 12:14
Heroku Slug size too large.
@Deekor
Deekor / debug_httparty_request.rb
Last active January 8, 2017 20:42 — forked from natritmeyer/debug_httparty_request.rb
How to debug HTTParty requests
class MyResource
include HTTParty
debug_output $stdout # <= will spit out all request details to the console
#...
end
# Or per request
response = HTTParty.post(url, :body => body, :debug_output => $stdout)