
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
lazy_google_analytics
Advanced tools
Lazy google analytics it´s an abstraction around google-api-client gem, to make server to server api calls.
google-api-client gem is a very powerfull tool to access the api resources on google. but for me it was not very straightforward, so I come around with a simple way to implement it. that's all.
Hope you like it.
Add this line to your application's Gemfile:
gem 'lazy_google_analytics'
And then execute:
$ bundle
Or install it yourself as:
$ gem install lazy_google_analytics
LazyGoogleAnalytics::Config.setup do |config|
config.pass_phrase = "notasecret"
config.key_file = /location/to_your/key_file.p12
config.client_id = "XXXXX.apps.googleusercontent.com"
config.scope = "https://www.googleapis.com/auth/analytics.readonly"
config.profile_id = "XXXXX"
config.email = "XXXXXX@developer.gserviceaccount.com"
end
@client = LazyGoogleAnalytics::Client.new()
By default LazyGoogleAnalytics::Client is going to make a call for visits within 1 month timeline sorted by month & day, using the profile_id in config block.
But you can override specific parameters like this:
@client = LazyGoogleAnalytics::Client.new({:ids => "ga:123456"})
Also you can extend the options after initialization, passing and entire options_hash overriding all default parameters:
@client = LazyGoogleAnalytics::Client.new()
@client.parameters({'ids' => "ga:XXXXX",
'start-date' => "2013-03-12",
'end-date' => "2013-04-12",
'dimensions' => "ga:day,ga:month",
'metrics' => "ga:visits",
'sort' => "ga:month,ga:day" })
To get the results of the initialized client you have to call .results method
@results = @client.results
@results.columns
@results.rows
Also this class have 2 convenience methods to output data:
To get the queried columns:
@results.formatted_columns
To get the rows:
@results.formatted_rows
Installs configuration initializer
rails g lazy_google_analytics:install
If you follow this simple steps , you can´t fail.
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)Copyright (c) 2013 miguel michelson, released under the MIT license
FAQs
Unknown package
We found that lazy_google_analytics demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.