Skip to content

Instantly share code, notes, and snippets.

View Lissy93's full-sized avatar
:bowtie:
Stuck in an infinite loop

Alicia Sykes Lissy93

:bowtie:
Stuck in an infinite loop
View GitHub Profile
@sts10
sts10 / rust-command-line-utilities.markdown
Last active July 21, 2024 11:17
A curated list of command-line utilities written in Rust

A curated list of command-line utilities written in Rust

Note: I have moved this list to a proper repository. I'll leave this gist up, but it won't be updated. To submit an idea, open a PR on the repo.

Note that I have not tried all of these personally, and cannot and do not vouch for all of the tools listed here. In most cases, the descriptions here are copied directly from their code repos. Some may have been abandoned. Investigate before installing/using.

The ones I use regularly include: bat, dust, fd, fend, hyperfine, miniserve, ripgrep, just, cargo-audit and cargo-wipe.

  • atuin: "Magical shell history"
  • bandwhich: Terminal bandwidth utilization tool
@Lissy93
Lissy93 / cloud-backup-restore-worker.js
Last active February 27, 2024 00:46
CloudFlare Worker for Dashy Backup and Restore
/* Access control headers */
const headers = {
'Access-Control-Allow-Origin': '*',
'Access-Control-Allow-Methods': 'GET, PUT, POST, OPTIONS',
'Access-Control-Allow-Headers': 'Content-Type',
'content-type': 'application/json;charset=UTF-8',
}
/* Listen for incoming requests, and call handler */
addEventListener('fetch', event => {
@Lissy93
Lissy93 / Example 1 - Getting Started - conf.yml
Last active July 2, 2024 20:19
Example Config Files for Dashy
---
# Page meta info, like heading, footer text and nav links
pageInfo:
title: Dashy
description: Welcome to your new dashboard!
navLinks:
- title: GitHub
path: https://github.com/Lissy93/dashy
- title: Documentation
path: https://dashy.to/docs
@VarunAgw
VarunAgw / code.ahk
Last active February 5, 2022 04:38
AHK Support for Stardock Groupy
CoordMode, Mouse, Screen
CoordGetWin(xCoord, yCoord, ExludeWinID="") ; CoordMode must be relative to screen
{
WinGet, IDs, List,,, Program Manager
Loop, %ids%
{
_hWin := ids%A_Index%
WinGetTitle, title, ahk_id %_hWin%
WinGetPos,,, w, h, ahk_id %_hWin%
@mattdesl
mattdesl / messy.js
Created September 17, 2019 14:18
random grid connections / Licensed under Polyform Non Commercial 1.0.0
// License: Polyform Non Commercial 1.0.0
// https://polyformproject.org/licenses/noncommercial/1.0.0/
const canvasSketch = require('canvas-sketch');
const Random = require('canvas-sketch-util/random');
const Color = require('canvas-sketch-util/color');
const { linspace, lerp } = require('canvas-sketch-util/math');
const risoColors = require('riso-colors').map(h => h.hex).filter(c => {
const hex = Color.parse(c).hex.toLowerCase();
return hex !== '#000000' && hex !== '#ffffff'
});
@maxidorius
maxidorius / notes.md
Last active November 16, 2023 00:05
Notes on privacy and data collection of Matrix.org

Notes on privacy and data collection of Matrix.org


This version of the document is no longer canonical. You can find the canonical version hosted at Gitlab and Github.

PART 2 IS OUT, INCLUDING THE DISCLOSURE OF A GLOBAL FEDERATION DATA LEAK, AND THE ANATOMY OF A GDPR DATA REQUEST HANDLED BY MATRIX.ORG. SEE THE REPOS ABOVE.

@sundowndev
sundowndev / GoogleDorking.md
Last active July 20, 2024 04:54
Google dork cheatsheet

Google dork cheatsheet

Search filters

Filter Description Example
allintext Searches for occurrences of all the keywords given. allintext:"keyword"
intext Searches for the occurrences of keywords all at once or one at a time. intext:"keyword"
inurl Searches for a URL matching one of the keywords. inurl:"keyword"
allinurl Searches for a URL matching all the keywords in the query. allinurl:"keyword"
intitle Searches for occurrences of keywords in title all or one. intitle:"keyword"
@PatrickLang
PatrickLang / README.md
Last active June 10, 2024 18:36
Yubikey + Windows

Using a Yubikey 4 on Windows

These are my notes on how to set up GPG with the private key stored on the hardware Yubikey. This will reduce the chances of your GPG private key from being stolen, and also allow you to protect other secrets such as SSH private keys.

It's just some notes and a partial worklog for now, but I may turn it into a full blog post later.

@jayvdb
jayvdb / missing-license-task.md
Last active December 29, 2021 19:53
Missing license GitHub task

Add a missing license to a repository

Three steps:

  1. Find a repository without a LICENSE or LICENSE.md file.
  2. Determine the most appropriate license for the repository.
  3. Create a pull request adding a LICENSE or LICENSE.md file.

@Lissy93
Lissy93 / sentiment-analysis-example.js
Created August 10, 2017 09:23
A quick example of calculating percentage positive or negativeness of a given sentence, using the npm sentiment-analysis module
// Include the sa module, needs installing first (npm install sentiment-analysis)
const sentimentAnalysis = require('sentiment-analysis');
/**
* Gets the sentiment of a sentence
* using the sentiment-analysis module
* formats it, and prints to console
*/
function displaySentiment(inputText, sentimentScore){