Skip to content

Instantly share code, notes, and snippets.

View cchulo's full-sized avatar
🐚
living in the shell

Carlos Chulo cchulo

🐚
living in the shell
  • San Diego, CA
View GitHub Profile
@cchulo
cchulo / checksum.sh
Created March 27, 2025 23:36
file for getting checksums of an entire directory. Usage: "./checksum.sh /path/to/directory /path/to/file/report"
#!/bin/bash
# Output file to store the SHA256 checksums
output_file="$2"
# Empty the output file if it already exists
> "$output_file"
# Generate a list of all files using 'tree' and process each line
tree -afi --noreport "$1" | while IFS= read -r file; do
@cchulo
cchulo / checksum.sh
Created March 27, 2025 23:35
file for getting checksums of an entire directory.
#!/bin/bash
# Output file to store the SHA256 checksums
output_file="$2"
# Empty the output file if it already exists
> "$output_file"
# Generate a list of all files using 'tree' and process each line
tree -afi --noreport "$1" | while IFS= read -r file; do
@cchulo
cchulo / Steam_Proton_Exe.md
Created December 24, 2024 05:17 — forked from michaelbutler/Steam_Proton_Exe.md
How to run another .exe in an existing proton wine prefix

Running games through Steam's Proton is great. But what if there is a secondary exe or configuration application bundled with the game? How can you launch it if Steam itself only launches the game?

Simply run this command in a terminal:

cd /path/to/steam/steamapps/compatdata/20920/pfx

STEAM_COMPAT_DATA_PATH="/path/to/steam/steamapps/compatdata/20920" WINEPREFIX=$PWD \
    "$HOME/.steam/root/steamapps/common/Proton 5.0/proton" run ./drive_c/path/to/custom_application.exe
bool OpenGL_Mesh::Initialize()
{
_vao = 0;
_vbo = 0;
_nvbo = 0;
_uvbo = 0;
_ebo = 0;
glGenVertexArrays(1, &_vao);
@cchulo
cchulo / gist:7823f20f9e8aa008092578edd8f9f971
Created June 28, 2024 03:44
/etc/systemd/system/var-mnt-data.mount
[Unit]
Description=Mount data at boot
[Mount]
What=woz-01.leyline.local:/mnt/data
Where=/var/mnt/data
Options=vers=4
Type=nfs
TimeoutSec=30
ForceUnmount=true
@cchulo
cchulo / install.sh
Created November 6, 2023 01:43
self installer for non-steam games
#!/usr/bin/env bash
script_name=$0
script_full_path="$(cd "$(dirname "$0")" && pwd)"
dirname=$(basename "${script_full_path}")
target="${HOME}/Games"
echo "installing ${script_full_path} to ${target}"
rsync \
@cchulo
cchulo / bioshock-workaround.sh
Created September 27, 2022 09:13
Bioshock launcher workaround
# Credit: https://www.reddit.com/r/linux_gaming/comments/x4wk6w/comment/imxvs6u/?utm_source=share&utm_medium=web2x&context=3
# Bioshock
bash -c 'exec "${@/2KLauncher\/LauncherPatcher.exe/Build\/Final\/BioshockHD.exe}"' -- %command% -nointro
# Bioshock 2
bash -c 'exec "${@/2KLauncher\/LauncherPatcher.exe/Build\/Final\/Bioshock2HD.exe}"' -- %command% -nointro