Skip to content

Instantly share code, notes, and snippets.

@renatocassino
renatocassino / docker-compose-graphite-statsd-grafana-loki.yml
Last active May 5, 2024 18:39
Docker compose to build graphite, statsd, grafana and Loki (logs)
version: '3'
services:
loki:
image: grafana/loki:2.0.0
ports:
- "3100:3100"
command: -config.file=/etc/loki/local-config.yaml
promtail:
image: grafana/promtail:2.0.0
volumes:
@rvrsh3ll
rvrsh3ll / windows-keys.md
Created February 18, 2024 22:44
Windows Product Keys

NOTE

These are NOT product / license keys that are valid for Windows activation.
These keys only select the edition of Windows to install during setup, but they do not activate or license the installation.

Index

@Kranzes
Kranzes / guide.md
Last active May 5, 2024 18:38
SSH Resident Key Guide

Initial checks

Start by checking that there aren't any previous ssh keys inside the FIDO2 authenticator of your YubiKey. You can check if they exist by running the command below:

nix shell nixpkgs#yubikey-manager -c ykman fido credentials list

If the command above outputs a string mentioning "ssh" or "openssh", then you have already got a key generated and store on your YubiKey.

Evaluating additional authentication factors

Before generating a new ssh key to store on your YubiKey you must consider which additional required authentication factors you want to use. Below you can see a table with the available factors and their corresponding command:

@brandon1024
brandon1024 / GITCRASHCOURSE.MD
Last active May 5, 2024 18:37
Git Crash Course for Beginners

Git Crash Course for Beginners

Preface

A good understanding of Git is an incredibly valuable tool for anyone working amongst a group on a single project. At first, learning how to use Git will appear quite complicated and difficult to grasp, but it is actually quite simple and easy to understand.

Git is a version control system that allows multiple developers to contribute to a project simultaneously. It is a command-line application with a set of commands to manipulate commits and branches (explained below). This tutorial will help you get started, and in no time you will be a Git Ninja!

Contents:

@r15ch13
r15ch13 / iommu.sh
Last active May 5, 2024 18:26
List IOMMU Groups and the connected USB Devices
#!/usr/bin/env bash
shopt -s nullglob
lastgroup=""
for g in `find /sys/kernel/iommu_groups/* -maxdepth 0 -type d | sort -V`; do
for d in $g/devices/*; do
if [ "${g##*/}" != "$lastgroup" ]; then
echo -en "Group ${g##*/}:\t"
else
echo -en "\t\t"
<?xml version="1.0" encoding="UTF-8"?>
<opml version="1.0">
<head>
<title>PostRank Feeds</title>
<dateCreated>Sun, 23 Aug 2009 21:32:12 GMT</dateCreated>
<ownerName>voidfiles</ownerName>
</head>
<body>
<outline type="rss" title="Dropular" text="Dropular" xmlUrl="http://feeds.postrank.com/a0b7979807bccb91a1e4dffbe8fdd49f?level=good" origXml="http://dropular.net/feed/rss/" private="false" htmlUrl="http://dropular.net/"/>
<outline type="rss" title="Startup News" text="Startup News" xmlUrl="http://feeds.postrank.com/3d813cafb88dae0c470e6dddb41c0577?level=good" origXml="http://news.ycombinator.com/rss" private="false" htmlUrl="http://news.ycombinator.com/"/>
testing this out
@AshtakaOOf
AshtakaOOf / gui.md
Last active May 5, 2024 18:24
Stable Diffusion GUI list

Stable Diffusion GUIs list

This will help me and hopefully other to get everything going and generate waifus images with Stable Diffusion, and maybe other txt2img things maybe.

I will probably add shields.io to make it more easier to read (maybe)

Tip

Check out the SD Anime Checkpoints list.

  • Glossary
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active May 5, 2024 18:28
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This no longer works in browser!

Note

This no longer works if you're alone in vc! Somebody else has to join you!

How to use this script:

  1. Accept the quest under User Settings -> Gift Inventory
@daverich204
daverich204 / Code.gs
Created April 16, 2024 01:58
Yahoo Finance Api V8 Example Google App Script
function yahooF(ticker) {
const url = `https://query1.finance.yahoo.com/v8/finance/chart/${ticker}`;
const res = UrlFetchApp.fetch(url, {muteHttpExceptions: true});
const contentText = res.getContentText();
const data = JSON.parse(contentText);
// Check if the result exists and has data
if (data && data.chart && data.chart.result && data.chart.result.length > 0) {
const regularMarketPrice = data.chart.result[0].meta.regularMarketPrice;