Skip to content

Instantly share code, notes, and snippets.

@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;
@jpcranford
jpcranford / avrae cheatsheet.md
Last active May 5, 2024 18:14
A handy cheatsheet and tutorial for using the Discord bot Avrae. https://avrae.io

Roll some dice: !roll 1d12+3 adv


A linked character sheet is needed to run commands in the following table.

Action Avrae command
Ability check !check perception
Initiative roll !check init
@mondain
mondain / public-stun-list.txt
Last active May 5, 2024 18:13
Public STUN server list
23.21.150.121:3478
iphone-stun.strato-iphone.de:3478
numb.viagenie.ca:3478
s1.taraba.net:3478
s2.taraba.net:3478
stun.12connect.com:3478
stun.12voip.com:3478
stun.1und1.de:3478
stun.2talk.co.nz:3478
stun.2talk.com:3478
@nichtich
nichtich / README.md
Last active May 5, 2024 18:13 — forked from oodavid/README.md
How to automatically deploy from GitHub

Deploy your site with git

This gist assumes:

  • you have an online remote repository (github / bitbucket etc.)
  • you have a local git repo
  • and a cloud server (Rackspace cloud / Amazon EC2 etc)
    • your (PHP) scripts are served from /var/www/html/
    • your webpages are executed by Apache
  • the Apache user is named www-data (may be apache on other systems)
@timvisee
timvisee / SUBREDDIT_LIST.md
Last active May 5, 2024 18:13
Get a list of subreddits you're subscribed to on reddit. https://timvisee.com/blog/list-export-your-subreddits/

As posted on: https://timvisee.com/blog/list-export-your-subreddits/

Get a list of your subreddits

To obtain a list of your subreddits, do the following:

  • First make sure you're logged in on reddit, on a desktop browser.
  • Then visit reddit.com/subreddits.
  • Then put the following snippet in your browsers address bar, and press Enter.
    Make sure javascript: is included at the beginning, your browser might remove it while copy-pasting for security reasons: