Skip to content

Instantly share code, notes, and snippets.

@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):
@AustinWinstanley
AustinWinstanley / ubuntu-screen-resolution-hyper-v.sh
Created January 4, 2018 01:49
Changing Ubuntu Screen Resolution in a Hyper-V VM
sudo nano /etc/default/grub
# GRUB_CMDLINE_LINUX_DEFAULT="quiet splash video=hyperv_fb:1920x1080"
sudo update-grub
@Klerith
Klerith / instalaciones-next.md
Last active May 21, 2024 19:19
Instalaciones recomendadas para el curso de Next.js 13 >
@ih2502mk
ih2502mk / list.md
Last active May 21, 2024 19:16
Quantopian Lectures Saved