Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Job queue with MongoDB with emphasis on never losing any task even if worker fails hard (segfault).
Give Cyclop access to mongo:
Cyclop.db = Mongo::Connection.new["database_name"]
or with Replica-Sets
Cyclop.db = Mongo::ReplSetConnection.new["database_name"]
or if you're using MongoMapper:
Cyclop.db = MongoMapper.database
or if you're using Mongoid:
Cyclop.db = Mongoid.database
Queue a new task:
Cyclop.push({
queue: :upload,
job_params: {
url: "http://example.com",
},
})
Queue a new task to process in 5 minutes, to retry 3 times in case of error with a 1 minute delay between each:
Cyclop.push({
queue: :convert,
job_params: {
tmp_file: "/tmp/uploaded_file_32.png",
},
delay: 300,
retries: 3,
splay: 60,
})
Get next job:
Cyclop.next
Get next job on specific queues:
Cyclop.next :upload, :convert
Get next job on specific queues for a specific host:
Cyclop.next :upload, :convert, host: "tartarus.local"
Get failed jobs (limit to 30):
Cyclop.failed limit: 30
Get failed jobs (skip first 10, limit to 30):
Cyclop.failed skip: 10, limit: 30
Requeue a failed job:
job = Cyclop.failed.first
job.requeue
Start a worker:
cyclop -c config.yml
To get help about the format for config.yml
cyclop -h
cyclop is Copyright © 2011 TalentBox SA. It is free software, and may be redistributed under the terms specified in the LICENSE file.
FAQs
Unknown package
We found that cyclop demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.