Skip to content

Instantly share code, notes, and snippets.

View maedoc's full-sized avatar

marmaduke woodman maedoc

  • now
  • here
View GitHub Profile
@maedoc
maedoc / gpt-beyond-words.md
Last active April 27, 2023 09:20
sunday chat w/ gpt

In the following I tried to casually corner GPT into talking about its own statistics from a philosophical perspective, starting from Zen perspective so that GPT doesn't get too tripped up by Western obsession with words, which is a funny thing for a language model. If you're short on time, GPT provided the following tl;dr:

AI-generated text: transcending intellectual boundaries and enhancing human cognition, one pattern at a time.

and abstract

In this discussion, we have explored the functional similarities between AI-generated text, such as that produced by GPT-4, and human cognition, particularly in the context of minimizing surprise and maintaining coherence. Drawing inspiration from the functionalist perspective and the Tao Te Ching's emphasis on going beyond words and intellectual distinctions, we have considered AI as an extension of human intuition, a mirror of collective consciousness, a tool for exploring alternative perspectives, a catalyst for dissolving intellectual boundaries, and a mea

@maedoc
maedoc / happy-ps1.sh
Created March 24, 2023 16:09
happy $PS1
EMOJIS=(🐑 🥯 🦆 🦉 🥓 🦄 🦀 🖕 🍣 🍤 🍥 🍡 🥃 🥞 🤯 🤪 🤬 🤮 🤫 🤭 🧐 🐕 🦖 👾 🐉 🐓 🐋 🐌 🐢)
function RANDOM_EMOJI() {
SELECTED_EMOJI=${EMOJIS[$RANDOM % ${#EMOJIS[@]}]};
echo $SELECTED_EMOJI;
}
function EMJ() {
RANDOM_EMOJI
}
export PS1='\033[01;35m\]`date +%Hh%M` `EMJ` \033[01;34m\]\w\033[00m\] '
@maedoc
maedoc / runscimark4.py
Created January 5, 2023 15:29
Quick benchmarking with scimark4
import subprocess
for nc in [1,4,8]:
for mb in [1,4,32]:
cmd = ['./scimark4', '-huge', str(mb)]
procs = [subprocess.Popen(cmd, stdout=subprocess.PIPE) for _ in range(nc)]
[_.wait() for _ in procs]
scores = []
for proc in procs:
for line in proc.stdout.readlines():
@maedoc
maedoc / do-backup.sh
Last active November 8, 2024 14:16
Using Proxmox backup client via Docker
#!/bin/bash
ts=$(date +%y-%m-%d_%Hh%M)
sudo docker run --rm -it \
-e PBS_FINGERPRINT="foobar" \
-e PBS_REPOSITORY="ding@[email protected]:datastore" \
-e PBS_PASSWORD="baz" \
-v /mnt/data:/data \
pbs \
@maedoc
maedoc / gh-actions-runner.dockerfile
Last active January 5, 2023 15:30
Spin up GH actions runners in Docker
FROM catthehacker/ubuntu:full-latest
ARG runner_version=2.299.1
WORKDIR /opt
RUN mkdir actions-runner \
&& cd actions-runner \
&& curl -o actions-runner-linux-x64-${runner_version}.tar.gz \
-L https://github.com/actions/runner/releases/download/v${runner_version}/actions-runner-linux-x64-${runner_version}.tar.gz \
&& tar xzf ./actions-runner-linux-x64-${runner_version}.tar.gz
@maedoc
maedoc / minio-test.mk
Last active December 2, 2022 08:10
Minio testing
# debug w/ make -r -R --debug -n
#
# TODO try deployment expansion
# TODO integrate with iam & key server
# TODO test fuse fs performance
# TODO try replication
disk_size=4G
disk_count=1
big_gb=2
@maedoc
maedoc / fslquiet.sh
Created November 28, 2022 11:19
FSL install without progress bars
#!/bin/bash
sed -E -e 's,(^\s*prog.update|^\s*progress)\(,\1\,\(,' fslinstaller.py > fslquiet.py
python2 fslquiet.py
@maedoc
maedoc / uptime-nines.ipynb
Created November 7, 2022 16:06
uptime to nines
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@maedoc
maedoc / wifi-ducktape.sh
Last active November 3, 2022 00:44
sometimes ducktape is better than a new whateva
#!/bin/bash
wifi=wlo1
# maybe change to dns or whateva
router=192.168.1.254
count=0
while true
do
@maedoc
maedoc / Implicit methods by hand.ipynb
Created June 9, 2022 11:57
Theta method for ODE
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.