Skip to content

Instantly share code, notes, and snippets.

@adam-binks
adam-binks / latexdiff.md
Created May 7, 2022 17:18
How to LaTeX diff your Overleaf project

How to LaTeX diff your Overleaf project

Set up local latex environment

Grab the two versions

  • Download the original version
    • Go to Overleaf > history > find the version > view single version > download project at this version
  • Download the current version
@krisek
krisek / alert.rules.yml
Last active April 27, 2024 09:51
Prometheus alert rules for node exporter
groups:
- name: node_exporter_alerts
rules:
- alert: Node down
expr: up{job="monitoring-pi"} == 0
for: 2m
labels:
severity: warning
annotations:
title: Node {{ $labels.instance }} is down
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active April 27, 2024 09:49
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
@ageis
ageis / systemd_service_hardening.md
Last active April 27, 2024 09:46
Options for hardening systemd service units

security and hardening options for systemd service units

A common and reliable pattern in service unit files is thus:

NoNewPrivileges=yes
PrivateTmp=yes
PrivateDevices=yes
DevicePolicy=closed
ProtectSystem=strict
@adithya3403
adithya3403 / MS NOTES.txt
Last active April 27, 2024 09:43
short notes ms
MS NOTES
UNIT 1
**management and nature of management:
*importance and functions of management
*systems approach to management
*Taylor's scientific management theory
**Fayol's principles of management
*Maslow's theory of Hierarchy of Human needs
**McGregor's theory X and theory Y
// ==UserScript==
// @name Photopea Premium
// @namespace http://tampermonkey.net/
// @version 2024-02-03
// @description Unlock Photopea Premium by patching their JS
// @author mat
// @match https://www.photopea.com/
// @match https://www.photopea.com/?utm_source=homescreen
// @icon https://www.google.com/s2/favicons?sz=64&domain=photopea.com
// @grant GM_webRequest
@veekaybee
veekaybee / normcore-llm.md
Last active April 27, 2024 09:34
Normcore LLM Reads

Anti-hype LLM reading list

Goals: Add links that are reasonable and good explanations of how stuff works. No hype and no vendor content if possible. Practical first-hand accounts of models in prod eagerly sought.

Foundational Concepts

Screenshot 2023-12-18 at 10 40 27 PM

Pre-Transformer Models

import random
import math
import json
import uuid
from tqdm import tqdm
import numpy as np
def generate_complex_math_questions(num_questions):
collisions = 0
@rk0cc
rk0cc / ShowWinVerOnDesktop.reg
Created October 4, 2020 14:42
This registry file can display windows version on desktop
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Control Panel\Desktop]
"PaintDesktopVersion"=dword:00000001