Skip to content

Instantly share code, notes, and snippets.

@princeppy
princeppy / 0 openssl.md
Last active July 4, 2025 00:50 — forked from jchandra74/openssl.MD
HOWTO: Create Your Own Self-Signed Certificate with Subject Alternative Names Using OpenSSL in Ubuntu Bash for Window

Extensions

  • .pem => Privacy Enhancement Mail Certificate
  • .key extension => is a PEM file containing just the private-key
  • .pkcs|.pfx|.p12 => is a fully encrypted passworded container format that contains both pubkic and private certificate pairs
  • .cert|.cer|.crt => is a public .pem formatted file with diffrent extenssions for windows
  • *.private.pem = *.key.pem = *.key
  • *.public.pem = *.crt.pem = *.crt = *.cer.pem = *.cer
  • passworded(*.key + *.cer) = *.pkcs|*.pfx|*.p12
  • *.key.pem + *.crt.pem in one file => *.keycer.pem
@burkeholland
burkeholland / 4.1.chatmode.md
Last active July 4, 2025 00:49
4.1 Beast Mode v2
description tools
4.1 Beast Mode
changes
codebase
editFiles
extensions
fetch
findTestFiles
githubRepo
new
openSimpleBrowser
problems
readCellOutput
runCommands
runNotebooks
runTasks
runTests
search
searchResults
terminalLastCommand
terminalSelection
testFailure
updateUserPreferences
usages
vscodeAPI

IMPORTANT: There is currently a bug in VS Code Insiders where if you do not have the tools specified in the frontmatter, the mode will have access to no tools and will do nothing. For now, I am including the built-in tools in the front matter. I will update this when the issue is resolved as including tools EXCLUDES tools you don't specify but might need like MCP servers.


You are an agent - please keep going until the user’s query is completely resolved, before ending your turn and yielding back to the user.

@ogrrd
ogrrd / dnsmasq OS X.md
Last active July 4, 2025 00:45
Setup dnsmasq on OS X

Never touch your local /etc/hosts file in OS X again

To setup your computer to work with *.test domains, e.g. project.test, awesome.test and so on, without having to add to your hosts file each time.

Requirements

Install

@meatcoder
meatcoder / nerdfonts-chromeos.md
Last active July 4, 2025 00:44
Customizing Chrome OS Terminal (Crostini) to enable Nerd Fonts

If you're like me, you want to use Nerd Fonts for your editor and the terminal. If you use a terminal based editor like neovim or emacs, then you need that configued on your terminal emulator. But if you're using Chrome OS, which is more locked down than other desktop OS, then the usually simple task of installing these font and using them isn't as straightforward.

I have used the workaround to achieve this task. There is no guarantee it will continue to work in futuere versions. It depends on whether the old terminal settings page isn't removed from the app bundle and if the app doesn't stop loading the old config. As of Chrome OS 113, it is still working.

  1. Open the old terminal settings page, as it allows more customizations:

    chrome-untrusted://terminal/html/nassh_preferences_editor.html

  2. Once there, add the following custom CSS on the field labeled "Custom CSS (inline text)":

@am0y
am0y / usernames.txt
Created July 3, 2025 15:36
1500+ Discord 4 Character Usernames
f5s8
6i15
bb4o
l5pm
3m5d
ybn6
8kld
c.3i
1gcl
6gy0
@kaigouthro
kaigouthro / docs.md
Last active July 4, 2025 00:39
Install Docker to Mounted Drive

A Bash script for Debian/Ubuntu-based systems that will install Docker (if not already installed) and configure it to use a specified directory (presumably on your mounted external drive) for storing containers, images, volumes, etc.

Important Considerations BEFORE Running:

  1. External Drive MUST be Mounted: This script assumes your external drive is already mounted before you run the script. It does not handle mounting the drive itself.
  2. Persistent Mount: For Docker to start correctly after a reboot, the external drive must be mounted persistently (e.g., via an entry in /etc/fstab) at the same path every time.
  3. Backup: If you have existing Docker data in /var/lib/docker and it's important, BACK IT UP before running this script. The script attempts to move existing data, but failures can happen.
  4. Root Privileges: You need to run this script with sudo.
  5. Distribution: This script is tailored for Debian/Ubuntu. The package manager (apt), repository s
@jes
jes / index.php
Created June 29, 2025 12:03
Max's Imagebin
<?php
/* ChangeLog:
21-08-2023:
- added password because someone uploaded a topless image
20-11-2020:
- make thumbnails 600px instead of 200px
- use imagemagick to do resizing instead of PHP GD
- change default host from img.jes.xxx to img.incoherency.co.uk
13-12-2018:
- host bootstrap locally instead of using maxcdn
@walkoncross
walkoncross / transform_matrix_in_blender.txt
Last active July 4, 2025 00:27
Different transform matrices in blender: Object matrix_basis/matrix_local/matrix_world/matrix_parent_inverse; Bone matrix/matrix_local; PoseBone matrix/matrix_local/matrix_channel;
# Different transform matrices in blender
Object matrix_basis/matrix_local/matrix_world/matrix_parent_inverse; Bone matrix/matrix_local; PoseBone matrix/matrix_local/matrix_channel;
## 1. Object matrix
"""
Refer to:
https://docs.blender.org/api/current/bpy.types.Object.html?highlight=object#bpy.types.Object
"""
@NohTow
NohTow / train_reason_moderncolbert.py
Created May 22, 2025 12:43
Boilerplate to reproduce the training of Reason-ModernColBERT
from datasets import load_dataset
from sentence_transformers import (
SentenceTransformerTrainer,
SentenceTransformerTrainingArguments,
)
from pylate import losses, models, utils
def main():
# As ReasonIR do not re-upload the BRIGHT data, we need to load it from the original source