Skip to content

Instantly share code, notes, and snippets.

@csd-was-taken
csd-was-taken / YT UI Tweaks
Last active May 21, 2024 19:29
YouTube UI Tweaks
(these were all written by my friend @ranidspace, i can't write css to save my life lol. well the first one is mine, but i just used the element zapper)
Install uBlock origin, if you haven't already (you should regardless) https://ublockorigin.com/
Go to the dasboard (extension icon > settings cog), and select the My filters tab
Paste the following into the giant text box. If there's already text there, don't overwrite it, just add these lines below
www.youtube.com###dismissible > .ytd-rich-shelf-renderer.style-scope
!Removes shorts shelf
@AlexString
AlexString / change_var_names.md
Created November 20, 2021 21:08
Quickly change variable names in nvim

Change variable names with vim keys

This also works on VS Code vim plugin:

For small amounts of var copies.

* cw NEWNAME <esc> then repeat n. for other ocurrences

But better

@DevoKun
DevoKun / kafka.md
Created July 13, 2018 02:52
How to operate Kafka, mostly using Docker

Kafka Distributed Streaming Platform

Publish and Subscribe / Process / Store

Start Kafka

  • Kafka uses ZooKeeper as a distributed backend.

Start Zookeeper

@apzzd
apzzd / matrixTimesMatrix.c
Created May 21, 2024 19:26
✨ c code for multiplying two 2x2 matrices, with arguments ✨
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
int main(int argc, char *argv[]) {
float matrix1[4];
float matrix2[4];
int i, j;
@felippenardi
felippenardi / gist:ff56297c002c9a937b0df160fb1d4b1f
Created August 5, 2022 22:57
Mark as complete on Circle communities
<style>
/* Add "Completed" to like buttons */
.view-space-in-group--88671 .action-link,
.view-space-in-group--88671 .action-like.action-item {
background-color: var(--brand);
padding: 4px 8px;
border-radius: 11px;
opacity: 1;
}
@0xjac
0xjac / private_fork.md
Last active May 21, 2024 19:24
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare git@github.com:usi-systems/easytrace.git

@Steveplays28
Steveplays28 / distant_horizons_shader_compatibility_information.md
Last active May 21, 2024 19:24
Distant Horizons shader compatibility info

Distant Horizons shader compatibility information

Distant Horizons v2.0.0 (and up) shader compatibility information.

v2

Prerequisites

  • Iris v1.7.0 or higher, or Oculus v1.6.15aDH or higher
  • Distant Horizons v2.0.2a or higher
@BuonOmo
BuonOmo / .gitconfig
Last active May 21, 2024 19:23
Git blame color scale from 20 month ago to now (https://stackoverflow.com/a/66250482/6320039)
[color "blame"]
highlightRecent = 234, 23 month ago, 235, 22 month ago, 236, 21 month ago, 237, 20 month ago, 238, 19 month ago, 239, 18 month ago, 240, 17 month ago, 241, 16 month ago, 242, 15 month ago, 243, 14 month ago, 244, 13 month ago, 245, 12 month ago, 246, 11 month ago, 247, 10 month ago, 248, 9 month ago, 249, 8 month ago, 250, 7 month ago, 251, 6 month ago, 252, 5 month ago, 253, 4 month ago, 254, 3 month ago, 231, 2 month ago, 230, 1 month ago, 229, 3 weeks ago, 228, 2 weeks ago, 227, 1 week ago, 226
[blame]
coloring = highlightRecent
date = human
import json
import sys
from typing import List
from dataclasses import dataclass
from presidio_analyzer import AnalyzerEngine, RecognizerResult
import argparse
from har_capture_reader import HarCaptureReader
analyzer: AnalyzerEngine = AnalyzerEngine()
@DanaEpp
DanaEpp / har_capture_reader.py
Created May 10, 2024 17:49
HAR capture reader to use with Sensitive Data Detector. see: https://danaepp.com/sensitive-data-detection-using-ai-for-api-hackers
rom base64 import b64decode
import os
from typing import Iterator, Union
import json_stream
# This HAR capture reader was taken from mitmproxy2swagger and slightly modified to work for our needs.
# See https://github.com/alufers/mitmproxy2swagger/blob/master/mitmproxy2swagger/har_capture_reader.py
class HarFlowWrapper:
def __init__(self, flow: dict):