Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Tiny Campfire Ruby client so you can get on with it. It's implemented on top of
Net::HTTP
with no external dependencies for Ruby compatibilities.
Add this line to your application's Gemfile:
gem 'campy'
And then execute:
$ bundle
Or install it yourself as:
$ gem install campy
First create a campfire.yml
file in your home directory:
$ cat <<CAMPFIRE_YAML > $HOME/.campfire.yml
:account: mysubdomain
:token: mytoken123
:room: House of Hubot
CAMPFIRE_YAML
Campy comes with the campy
command so you can send messages from the
command line:
$ campy speak "Campy says yello"
$ campy paste "Long pastes are long"
$ campy play ohmy
Or pipe in your message:
$ echo "Campy tries to honor unix conventions" | campy speak
$ cat ~/stackdump.log | campy paste
$ echo ohmy | campy play
There's not much to the API; create a Campy::Room
and go:
require 'campy'
campy = Campy::Room.new(:account => "mysubdomain",
:token => "mytoken123", :room => "House of Hubot")
campy.speak "Campy says yello"
campy.paste "Long pastes are long"
campy.play "ohmy"
If you know the room ID and would prefer to use that instead of the name:
require 'campy'
campy = Campy::Room.new(:account => "mysubdomain",
:token => "mytoken123", :room_id => "12345")
campy.speak "Campy says yello"
campy.paste "Long pastes are long"
campy.play "ohmy"
Why not use the campfire.yml
config? Let's do that:
require 'campy'
require 'yaml'
campy = Campy::Room.new(YAML.load_file(
File.expand_path("~/.campfire.yml")))
campy.speak "Campy says yello"
campy.paste "Long pastes are long"
campy.play "ohmy"
Pull requests are very welcome! Make sure your patches are well tested. Ideally create a topic branch for every separate change you make. For example:
git checkout -b my-new-feature
)git commit -am 'Added some feature'
)git push origin my-new-feature
)Created and maintained by Fletcher Nichol (fnichol@nichol.ca)
MIT (see LICENSE)
FAQs
Unknown package
We found that campy 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
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.