Skip to content

Instantly share code, notes, and snippets.

View tripleo1's full-sized avatar
๐Ÿš€
Being slightly more presentable

tripleo tripleo1

๐Ÿš€
Being slightly more presentable
View GitHub Profile
@tripleo1
tripleo1 / repoflattener.java
Created April 28, 2025 00:22 — forked from fbricon/repoflattener.java
Flatten a p2 repo with JBang
///usr/bin/env jbang "$0" "$@" ; exit $?
/**
* Copyright 2022 Fred Bricon
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
Byobu is a suite of enhancements to tmux, as a command line
tool providing live system status, dynamic window management,
and some convenient keybindings:
F1 * Used by X11 *
Shift-F1 Display this help
F2 Create a new window
Shift-F2 Create a horizontal split
Ctrl-F2 Create a vertical split
Ctrl-Shift-F2 Create a new session
@tripleo1
tripleo1 / mcd.md
Created December 15, 2024 23:02 — forked from kallmanation/mcd.md
mcd - mkdir && cd

mcd

Make and Change Directory

mkdir && cd

It's an often used pattern when setting up to first make a directory with mkdir and then immediately moving into the new directory with cd.

mkdir my_dir
cd my_dir
x-systemd.device-timeoup=1ms
$ ollama run llama2 "Why doesnt ollama support text to image models?"
Ollama is a text-to-image model that uses a combination of natural
language processing (NLP) and computer vision techniques to generate
images from textual descriptions. While Ollama supports a wide range of
features, it may not support all types of text-to-image models for several
reasons:
1. Model architecture: Ollama's model architecture is designed to handle
simple text-to-image tasks, such as generating images from textual
@tripleo1
tripleo1 / 103.md
Last active November 24, 2023 23:13
Incremental stuff

Move to an incremental/query driven architecture #103

Before we go too far down the path of building a traditional compiler (#9), it probably makes sense to start thinking about how we might incrementalise things. This will be super important for supporting a good editor experience (#97). If we put this off for too long we might end up having to rebuild a bunch - this is what Rust is facing, for example.

Without knowing much about it, perhaps something like the Incremental Lambda Calculus would be handy for this. We could try to find the derivative of each pass of our compiler, based on the result of a previous run. This could also be a helpful framework for formalising our incremental compiler as well (#39)!

CRDT-style data structures could also be of potential use, and perhaps projects like timely-dataflow and [differential-d

@tripleo1
tripleo1 / bash2bb-ubuntu-install.md
Created June 16, 2023 02:47
Install bash2bb on Ubuntu

Install jdk and clojure

apt install openjdk-11-jdk
TBD
@tripleo1
tripleo1 / advcp_install.sh
Created October 23, 2022 22:42 — forked from wangjiezhe/advcp_install.sh
install 'cp' and 'mv' utilities with progress bar patches
#!/usr/bin/env bash
set -e
tmpdir=$(mktemp -t -d advcp.XXXXXX)
cd ${tmpdir}
wget https://aur.archlinux.org/packages/ad/advcp/advcp.tar.gz
tar xf advcp.tar.gz
source advcp/PKGBUILD
@tripleo1
tripleo1 / automatic.yuck
Created October 24, 2021 16:23
Automatic and corrected translation of Paladin1991/Last-Xmonad eww config
;; Close button
(defwidget Close []
(box :orientation "h" :space-evenly "true" :halign "start" :valign "center"
(button :class "close-app" :onclick "eww close hobby & eww close weather" :tooltip "Close" "๎„ธ Close")))
;; Calendar
(defwidget Calendar []