This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
x11/xcb libaries can be built with | |
CC=x86_64-unknown-cosmo-cc PKG_CONFIG_PATH=$PWD/../output/share/pkgconfig:$PWD/../output/lib/pkgconfig ./autogen.sh --prefix=$PWD/../output --disable-shared --enable-static | |
make | |
make install | |
sdl2 can be built with | |
./autogen.sh | |
CC=x86_64-unknown-cosmo-cc PKG_CONFIG_PATH=$PWD/../output/share/pkgconfig:$PWD/../output/lib/pkgconfig ./configure --prefix=$PWD/../output --disable-shared --enable-static --disable-diskaudio --disable-pulseaudio --disable-sndio --disable-video-kmsdrm --disable-video-opengles2 --disable-video-wayland --disable-video-vulkan --enable-video-x11 --disable-dbus --disable-ime --disable-fcitx --disable-joystick-virtual --disable-cpuinfo --disable-joystick --disable-haptic --disable-hidapi --disable-sensor --disable-power --disable-locale --disable-loadso --x-includes=/home/joshua/src/src/cosmo/gui/xlib/output/include --x-libraries=/home/joshua/src/src/cosmo/gui/xlib/output/lib | |
make | |
make install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
coreCount=$(($(nproc) + 1)) | |
if [ "$1" != "-s" ]; then | |
make -j$coreCount clean | |
make -j$coreCount | |
printf "\n" | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
# Ubuntu 22.04 WSL2 qemu user mode emulation setup 0.4.0 | |
version="0.4.0" | |
usage() | |
{ | |
echo "Ubuntu 22.04 WSL2 qemu user mode emulation setup $version | |
Usage: $0 [general and mode specific flags] [-i or -e] architecture |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# There are some potential problems with this as previously I needed to install a never version of mesa from ppa:oibaf/graphics-drivers | |
# for flutter apps to work as otherwise only a white window would appear with various opengl related errors in the console. | |
# This may have been fixed by switching from gwsl to regular vcxsrv to ensure -nowgl was used and -wgl wasn't. | |
# Additionally it would be useful to work around cmake issues during the session this runs in by remounting the windows partition rather than | |
# forcing a wsl2 restart. | |
# Would also be nice to clean up the console output, for example hiding tee's(or cat's?) output. | |
# To run use |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
def get_Texture_Names(metafile, dirty): | |
infile = open(metafile, "r") | |
text = "" | |
line = infile.readline() | |
while line != '' and not "m_vecReferencedFiles" in line: | |
line = infile.readline() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#----------------------------------------------------- | |
# Uses vigenere.py by ilogik | |
# https://gist.github.com/ilogik/6f9431e4588015ecb194 | |
#----------------------------------------------------- | |
import base64 | |
def encode(key, string): | |
encoded_chars = [] | |
for i in xrange(len(string)): |