Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Snake game that runs on Mac, Windows, and Linux. Built with Ruby and Glimmer DSL for LibUI (Prerequisite-Free Ruby Desktop Development Cross-Platform Native GUI Library) using Application Scaffolding.
Assuming you have Ruby installed (standard MRI / CRuby).
Run:
gem install glimmer_snake
Run:
glimmer_snake
Mac | Windows | Linux |
---|---|---|
The goal of the game is for the green snake to eat the red apple and to survive for as long as possible. The snake always moves forward at a fixed speed. You can change the direction of the snake using arrow keys (Up is North, Right is East, Down is South, Left is West). Every time the snake eats an apple, it grows by 1 block (the size of the apple), and the apple regenerates somewhere else. If the snake hits its own body (especially after enlargement), it dies. Pressing the spacebar pauses/unpauses the game.
The game remembers the highest score by storing in ~/.glimmer-snake
. You can delete that file if you want to reset the highest score.
Clone project:
git clone https://github.com/AndyObtiva/glimmer_snake.git
Change directory:
cd glimmer_snake
Install project gems with Bundler:
bundle
Run application with glimmer
command:
glimmer run
Or run using included binary script:
bin/glimmer_snake
Package as a Ruby gem with glimmer
command:
glimmer "package:gem"
Or package using equivalent direct rake command:
rake build
Generate updated gemspec with glimmer command
:
glimmer "package:gemspec"
Or generate gemspec using equivalent direct rake command:
rake gemspec:generate
Copyright (c) 2023 Andy Maleh. See LICENSE.txt for further details.
--
Built with Glimmer DSL for LibUI (Prerequisite-Free Ruby Desktop Development Cross-Platform Native GUI Library)
Glimmer Snake icon made by Freepik from www.flaticon.com
FAQs
Unknown package
We found that glimmer_snake 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.