Skip to content

Instantly share code, notes, and snippets.

@arawako
arawako / make_openssl.txt
Last active April 26, 2024 16:00
Steps for compiling openssl in debian buster, testing and creating a .deb package using checkinstall
## Prepare the system
touch /etc/apt/sources.list.d/backports.list
echo "deb http://deb.debian.org/debian buster-backports main" >> /etc/apt/sources.list.d/backports.list
apt update && apt -y upgrade && apt install -y build-essential git checkinstall
# Clone the Source
git clone https://github.com/openssl/openssl.git
# Compile, test and install manually
cd openssl
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active April 26, 2024 15:59
Complete Recent Discord Quest

Complete Recent Discord Quest

How to use this script:

  1. Accept the quest under User Settings -> Gift Inventory
  2. Join a vc
  3. Stream any window (can be notepad or something)
  4. Press Ctrl+Shift+I to open DevTools
  5. Go to the Console tab
  6. Paste the following code and hit enter:
let wpRequire;
@genyrosk
genyrosk / Makefile
Last active April 26, 2024 15:59
Makefile for a Python environment with virtualenv
SHELL:=/bin/bash
VIRTUAL_ENV=env
JUPYTER_ENV_NAME=env
PORT=8888
PYTHON=${VIRTUAL_ENV}/bin/python3
# .ONESHELL:
DEFAULT_GOAL: help
.PHONY: help run clean build venv ipykernel update jupyter
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@quad
quad / 0-modular-errors-with-rusts-thiserror.md
Last active April 26, 2024 15:57
Modular Errors with Rust's thiserror

I've been writing Rust full-time with a small team for over a year now. Throughout, I've lamented the lack of clear best practices around defining error types. One day, I'd love to write up my journey and enumerate the various strategies I've both seen and tried. Today is not that day.

Today, I want to reply to a blog post that almost perfectly summarised my current practice.

Go read it; I'll wait!


@fergdev
fergdev / SegmentedButtons.kt
Last active April 26, 2024 15:57
SegmentedButtons implementation for M3
package ferg.segmented.buttons
import androidx.compose.animation.animateColorAsState
import androidx.compose.animation.core.animateFloatAsState
import androidx.compose.animation.core.tween
import androidx.compose.foundation.BorderStroke
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Row