Skip to content

Instantly share code, notes, and snippets.

View barkpixels's full-sized avatar
💭
don't eat scrapple

barkpixels barkpixels

💭
don't eat scrapple
  • texas
View GitHub Profile
@barkpixels
barkpixels / add-new-ssh-user.sh
Created March 30, 2025 13:45 — forked from dokturx/add-new-ssh-user.sh
Add new ssh user - Ubuntu
sudo useradd -s /bin/bash -d /home/user2/ -m -G sudo user2
sudo usermod -aG sudo user2
sudo mkdir /home/user2/.ssh/
sudo chmod 0700 /home/user2/.ssh/
sudo -- sh -c "echo 'ssh-rsa <YOUR_PUBLIC_KEY>' > /home/user2/.ssh/authorized_keys"
sudo chown -R user2:user2 /home/user2/.ssh/
# OPTIONAL: sudo privileges
echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers

Hello!

I am trying to understand the most reliable way to call Web Assembly (WASM) code in an editor.p5js.org sketch. I couldn't find any precedents or examples where others had done this, so I thought a thread here might help. For more on Web Assembly, see Mozilla, Wikipedia.

This involves fetching a .wasm file from a URL, and my problem seems to be that I haven't found a pattern for delaying invocation of the P5 sketch code until the WASM part is ready.

The motivation for this is that WASM provides a way to exploit code written in other languages, and can also sometimes help with performance. My particular interest is to explore using the box2d/liquidfun physics engine this way, but hopefully a shared template could work for other uses.

I made an example yesterday that seems to sometimes work, and sometimes not. Friends report it works

@barkpixels
barkpixels / docker.md
Created November 2, 2023 16:02 — forked from FreddieOliveira/docker.md
This tutorial shows how to run docker natively on Android, without VMs and chroot.

Docker on Android 🐋📱

Edit 🎉

All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker. This will install the whole docker suite, left only Tini to be compiled manually.


Summary

@barkpixels
barkpixels / docker.md
Created November 2, 2023 16:02 — forked from FreddieOliveira/docker.md
This tutorial shows how to run docker natively on Android, without VMs and chroot.

Docker on Android 🐋📱

Edit 🎉

All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker. This will install the whole docker suite, left only Tini to be compiled manually.


Summary

@barkpixels
barkpixels / gpu-passthrough.md
Created March 24, 2023 16:49 — forked from MaxXor/gpu-passthrough.md
Arch GPU Passthrough Summary

Arch Linux GPU-Passthrough

A quick guide on how to setup a GPU-Passthorugh. Below are some of my Resources

The Arch Wiki is the goto place for additional information and performance tweaks like CPU-Pinning.

Requirements

  • IGPU or second dedicated GPU for Host system (unless you want to go the hard way and use one GPU for HOST and GUEST)
# DD Windows Server 2008 R2 64位 精简版 [账户Administrator密码nat.ee]
wget --no-check-certificate -qO InstallNET.sh 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh' && bash InstallNET.sh -dd 'https://oss.sunpma.com/Windows/Win_Server2008R2_sp1_64_Administrator_nat.ee.gz'
# DD Windows Server 2012 R2 64位 精简版 [账户Administrator密码nat.ee]
wget --no-check-certificate -qO InstallNET.sh 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh' && bash InstallNET.sh -dd 'https://oss.sunpma.com/Windows/Win_Server2012R2_64_Administrator_nat.ee.gz'
# DD Windows Server 2016 64位 精简版 [账户Administrator密码nat.ee]
wget --no-check-certificate -qO InstallNET.sh 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh' && bash InstallNET.sh -dd 'https://oss.sunpma.com/Windows/Win_Server2016_64_Administrator_nat.ee.gz'
@barkpixels
barkpixels / menu.livecd.ipxe
Created April 4, 2022 02:57 — forked from tuxfight3r/menu.livecd.ipxe
ipxe linux livecd / netinstall menus
#!ipxe
# To access this file via http use following redirection:
# http://preseed.panticz.de/ipxe/menu.livecd.ipxe
menu LiveCD
item --gap Ubuntu:
item live_ubuntu_16.04 Ubuntu Trusty 16.04 LiveCD
item live_ubuntu_14.04 Ubuntu Trusty 14.04 LiveCD
item live_ubuntu_12.04 Ubuntu Precise 12.04 LiveCD
@barkpixels
barkpixels / lighttpd.default.conf
Created March 2, 2022 19:21 — forked from alghanmi/lighttpd.default.conf
Lighttpd Default Configuration File
server.port = 80
#server.bind = ""
server.tag ="lighttpd"
server.modules = (
"mod_access",
"mod_alias",
"mod_accesslog",
"mod_compress",
"mod_expire",
@barkpixels
barkpixels / app-installation.sh
Created February 16, 2022 19:33 — forked from gsj1377/app-installation.sh
pulsedmedia ARR app installation script
#!/usr/bin/env bash
rm -rf $HOME/.bin
mkdir -p $HOME/.config/{radarr,sonarr,cloudplow,prowlarr,jellyfin,sabnzbd}
## change version no to update SABNZBD and JELLYFIN
SABNZBD_VERSION="3.5.0"
JELLYFIN_VERSION="10.7.7"
## to update ASPDOTNET find new url at https://dotnet.microsoft.com/en-us/download/dotnet/5.0
@barkpixels
barkpixels / Save.pde
Created December 10, 2021 22:49 — forked from haschdl/Save.pde
[Processing] A reusable "save" command, with basic and advanced modes (copy and paste into new tab in Processing)
/*
* Function for saving the generated image into a file when you press "S" or "B" key.
* Files will be saved to /out folder, with name: [Sketch name]_[Timestamp].jpg
*
* It works in two ways:
* 1. S key (BASIC)
* If you press the S key ("Save"), it will save the contents of the screen.
* The image is saved in the same resolution as your sketch size. In other words,
* the image will have the same size as "height" by "width" pixels.
*