Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jimbrig/snips
Code snippets ( ~/.snips )
https://github.com/jimbrig/snips
Last synced: 29 days ago
JSON representation
Code snippets ( ~/.snips )
- Host: GitHub
- URL: https://github.com/jimbrig/snips
- Owner: jimbrig
- Created: 2023-03-27T21:05:16.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-01T11:29:40.000Z (about 1 year ago)
- Last Synced: 2024-08-09T02:19:21.117Z (4 months ago)
- Size: 51.8 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
- jimsghstars - jimbrig/snips - Code snippets ( ~/.snips ) (Others)
README
[CHANGELOG]: ./CHANGELOG.md
# Snips
[![Automate Changelog](https://github.com/jimbrig/snips/actions/workflows/changelog.yml/badge.svg)](https://github.com/jimbrig/snips/actions/workflows/changelog.yml)
[![TOC Generator](https://github.com/jimbrig/snips/actions/workflows/toc.yml/badge.svg)](https://github.com/jimbrig/snips/actions/workflows/toc.yml)> **Note** This repository houses code-snippets for various tasks using the [snips-cli](https://github.com/srijanshetty/snips) command-line tool.
## Contents
Table of Contents
- [Installation](#installation)
- [Usage](#usage)
- [Snippets](#snippets)
- [Common](#common)
- [Linux](#linux)
- [Windows](#windows)## Installation
This project depends on [snips-cli](https://github.com/srijanshetty/snips):
```bash
npm install -g snips-cli
```## Usage
```bash
snips # with no arguments it will just list all your snips.
snips list # lists all your snips.
snips new # create snip
snips edit # edit snip, fuzzy completion if snip-name is skipped
snips copy # Copies content of the snip to the clipboard, fuzzy completion if snip-name is skipped
```## Snippets
All snips are stored in `~/.snips` directory.
### Common
> Commands common to both [Windows](./windows) and [Linux](./linux) are stored in the [common](./common) folder.
- [`download-cinder`](common/download-cinder): Installs the [mkdocs](https://www.mkdocs.org/) theme [cinder](https://sourcefoundry.org/cinder) using [gh-cli](https://cli.github.com/)'s `release download` command.
### Linux
> Commands for [Linux](./linux) only.
- [`install-poetry`](linux/install-poetry): Installs [poetry](https://python-poetry.org/) - a Python dependency management and packaging tool.
- [`list-shells`](linux/list-shells): uses `/etc/passwd` to get a list of available shells
### Windows
> Commands for [Windows](./windows) only.
- [`checkdisk`](windows/checkdisk): Runs the Windows `chkdsk` command with optimal arguments.
- [`get-user-privileges`](windows/get-user-privileges): Runs `whoami /priv` (Windows only)
- [`new-restore-point`](windows/new-restore-point): Creates a new restore point for Windows.