Skip to content

Instantly share code, notes, and snippets.

@gocarlos
gocarlos / Eigen Cheat sheet
Last active January 19, 2025 21:34
Cheat sheet for the linear algebra library Eigen: http://eigen.tuxfamily.org/
// A simple quickref for Eigen. Add anything that's missing.
// Main author: Keir Mierle
#include <Eigen/Dense>
Matrix<double, 3, 3> A; // Fixed rows and cols. Same as Matrix3d.
Matrix<double, 3, Dynamic> B; // Fixed rows, dynamic cols.
Matrix<double, Dynamic, Dynamic> C; // Full dynamic. Same as MatrixXd.
Matrix<double, 3, 3, RowMajor> E; // Row major; default is column-major.
Matrix3f P, Q, R; // 3x3 float matrix.
@talkingmoose
talkingmoose / Download and Install Jamf Connect.zsh
Last active January 19, 2025 21:34
Downloads and installs the latest available Jamf Connect software for Mac directly on the client. This avoids having to manually download and store an up-to-date installer on a distribution server every month.
#!/bin/zsh
:<<ABOUT_THIS_SCRIPT
-------------------------------------------------------------------------------
Written by:William Smith
Partner Program Manager
Jamf
[email protected]
https://gist.github.com/talkingmoose/94882adb69403a24794f6b84d4ae9de5
@mvaisakh
mvaisakh / Bringup.md
Last active January 19, 2025 21:32
An Android Device Tree Bringup Guide

A small Device Tree Bringup Guide

Introduction

So, you guys might be wondering, how do these "Developers" get your favourite Custom roms, such as LineageOS, Paranoid Android etc., to their own devices. Well I'm here to Guide you on how to do it, specifically on how to bringup or make your own device tree from scratch or adapting.

Gist of this Guide: This is for people with genuine interest in Android OS porting/development. After going through this guide, you should be able to do a total device tree bringup on your own.

Prerequisite: Certain requirements are to be met before you start with this amazing journey.

@bkaradzic
bkaradzic / orthodoxc++.md
Last active January 19, 2025 21:24
Orthodox C++

Orthodox C++

What is Orthodox C++?

Orthodox C++ (sometimes referred as C+) is minimal subset of C++ that improves C, but avoids all unnecessary things from so called Modern C++. It's exactly opposite of what Modern C++ suppose to be.

Why not Modern C++?

@Windsooon
Windsooon / leetcode_retag.md
Last active January 19, 2025 21:24
Retag most popular Leetcode problems

osjobs

海外兔

website

@m-jovanovic
m-jovanovic / .editorconfig
Created June 7, 2023 12:17
Sample editor config with a bunch of rules turned off 😅
root = true
# C# files
[*.cs]
#### Core EditorConfig Options ####
# Indentation and spacing
indent_size = 4
indent_style = space
@NeoTheFox
NeoTheFox / ztnet-podman.nix
Created January 10, 2025 12:12
Running ZTNET on NixOS via docker-compose
{ pkgs, lib, ... }:
{
# Runtime
virtualisation.podman = {
enable = true;
autoPrune.enable = true;
dockerCompat = true;
defaultNetwork.settings = {
# Required for container networking to be able to use names.
@leegilmorecode
leegilmorecode / deploy-client.sh
Created January 7, 2025 21:13
Deploy a client static website build to an Amazon S3 bucket and create a cache invalidation for the Amazon CloudFront distribution
#!/bin/bash
# run example: ./deploy-client.sh <s3-bucket-name> <cloudfront-distribution-id> <path-to-local-files>
if [ $# -ne 3 ]; then
echo "Usage: $0 <s3-bucket-name> <cloudfront-distribution-id> <path-to-local-files>"
exit 1
fi
BUCKET_NAME=$1
@Fuwn
Fuwn / README.md
Last active January 19, 2025 21:16
Windows XP All Editions Universal Product Keys Collection.

Windows XP Logo

Although Microsoft does not support Windows XP updates any more, I'm sure there are still many users using it due to their personal habits or job demands. Therefore, XP's product keys may be necessary even now. Here lies the most comprehensive list of Windows XP product keys.

The following CD keys are official and original from Microsoft, mainly used for Windows XP Professional Service Pack 2/3 VOL/VLK system images, which are the easiest ones to find on the Internet.

@velitasali
velitasali / bt-agent.service
Last active January 19, 2025 21:13
Bluetooth NAP Network on RPi4 - package: bluez-utils
# /etc/systemd/system/bt-agent.service
[Unit]
Description=Bluetooth Auth Agent
[Service]
ExecStart=/usr/bin/bt-agent -c NoInputNoOutput
Type=simple
[Install]