Skip to content

Instantly share code, notes, and snippets.

View Ocawesome101's full-sized avatar
💭
writing something or other

Ocawesome101 Ocawesome101

💭
writing something or other
View GitHub Profile
@Ocawesome101
Ocawesome101 / ulos-runner.sh
Created April 29, 2022 17:32
run (most) ULOS 2 programs on Linux
#!/bin/bash
# run ULOS 2 programs on Linux
if [ "$#" -lt 2 ]; then
echo "usage: $(basename $0) LIBLUA PROGRAM [...]
run ULOS 2 programs on Linux, using liblua supplied in LIBLUA;
LIBLUA should point to the root of an instance of the ulos-2/liblua repository.
Copyright (c) 2022 Ocawesome101 under the GNU GPLv3." 1>&2
exit 1
" Language: MoonScript
" Maintainer: leafo <leafot@gmail.com>
" Based On: CoffeeScript by Mick Koch <kchmck@gmail.com>
" URL: http://github.com/leafo/moonscript-vim
" License: WTFPL
" Modified by Ocawesome101 for MoonPlus
" Bail if our syntax is already loaded.
if exists('b:current_syntax') && b:current_syntax == 'moon'
finish
@Ocawesome101
Ocawesome101 / proton-installer.lua
Created March 24, 2020 21:59
Bare-metal installer for the Proton hybrid kernel
-- Proton installer --
---------------------------------- Graphics --------------------------------
local gpu = component.proxy(component.list("gpu")())
gpu.bind(component.list("screen")())
gpu.setResolution(50, 16)
local background = 0x000000
local boxbg = 0xFFFFFF
local boxtext = 0x000000
local bgtext = 0xFFFFFF
#!/usr/bin/lua5.2
-- LuaSH -- a basic Linux shell written in Lua. --
local args = {...}
local lfs = require("lfs")
local PATH = "/bin:/usr/bin:/usr/local/bin:/home/ocawesome101/.local/bin"
local exit = false
local function log()end
-- A fairly simple installer base. Known to work in OpenOS and Open Kernel. --
-- Licensed under the MIT License
-- Copyright (c) 2020 Ocawesome101
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
-- in the Software without restriction, including without limitation the rights
-- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-- copies of the Software, and to permit persons to whom the Software is
#!/bin/bash
#
# Install Gamax92's OCEmu, as well as dependencies.
distro="unknown"
getDeps() {
echo "-> Installing dependencies..."
echo "-> Detecting distribution..."
if [ -e "/usr/bin/apt" ]; then
@Ocawesome101
Ocawesome101 / baytrail-audio.sh
Last active November 18, 2023 10:06
A script to enable audio for Baytrail Chromebooks. Made and tested on Manjaro Linux but has some level of package manager detection.
#!/bin/bash
# A script to make Baytrail Chromebooks' audio work (mostly) on most Linux
# distros. Tested on Manjaro and Ubuntu.
set -e
if ! [ -e "/usr/bin/git" ]; then
echo "-> This script requires Git. Attempting to install."
if [ -e "/usr/bin/pacman" ]; then
sudo pacman -S git
@Ocawesome101
Ocawesome101 / launcher.sh
Last active August 7, 2019 19:41
Script to download and set up MrCrayfish's Battlefields Minecraft launcher on Debian and derivatives.
#!/bin/bash
# This script will download and install the Battlefields launcher and its
# dependencies on your Debian (or derivative) system.
# pass '--arch' to use pacman instead of apt
set -e
echo "Installing dependencies NPM and git..."
if [ "$1" = "--arch" ]; then