Skip to content

Instantly share code, notes, and snippets.

View mdeguzis's full-sized avatar

Michael T. DeGuzis mdeguzis

View GitHub Profile
@mdeguzis
mdeguzis / strapwrap.sh
Created September 30, 2015 19:10 — forked from DazWorrall/strapwrap.sh
Little script to create a minimal ubuntu using debootstrap and bring it up to date
#!/bin/bash
set -e
DEFAULT_PACKAGES=ssh,language-pack-en-base
DEFAULT_COMPONENTS=main,universe
DEBOOTSTRAP=/usr/sbin/debootstrap
DEFAULT_MIRROR=http://archive.ubuntu.com/ubuntu
DEFAULT_VARIANT=minbase
MIRROR=${STRAP_MIRROR:-$DEFAULT_MIRROR}
ROOTFS=$1
# open run_steam.sh
```
~/.local/share/Steam/steamapps/common/Saviors
```
# uncomment the mono line and comment the regular launcher
```
mono --gc=sgen Saviors.exe
#./saviors_all
```
@mdeguzis
mdeguzis / steamos-update
Last active December 15, 2016 14:26
/usr/bin/steamos-update
desktop@steamos:~$ cat /usr/bin/steamos-update
#! /bin/sh
echo $$ > /tmp/steamos-update.pid
apt-get update -y -q
unattended-upgrade
# workaround for early images which didn't have nvidia-vdpau-driver:i386 preinstalled
if [ ! -f /usr/lib/i386-linux-gnu/vdpau/libvdpau_nvidia.so.1 ] ; then
desktop@steamos:~/plex-media-player/build$ /usr/local/bin/cmake -GNinja -DCMAKE_BUILD_TYPE=Debug -DQTROOT=/usr/local/Qt-5.6.0 -DCMAKE_INSTALL_PREFIX=output ..
-- The CXX compiler identification is GNU 4.9.2
-- The C compiler identification is GNU 4.9.2
-- Check for working CXX compiler using: Ninja
-- Check for working CXX compiler using: Ninja -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working C compiler using: Ninja
/home/desktop/build-libretro-mgba-temp/libretro-mgba/src/gba/context/config.c:232:50: error: ‘binaryName’ undeclared (first use in this function)
snprintf(out, outLength, "%s/.config/%s", home, binaryName);
^
/home/desktop/build-libretro-mgba-temp/libretro-mgba/src/gba/context/config.c:232:50: note: each undeclared identifier is reported only once for each function it appears in
/home/desktop/build-libretro-mgba-temp/libretro-mgba/src/gba/context/config.c: In function ‘GBAConfigMakePortable’:
/home/desktop/build-libretro-mgba-temp/libretro-mgba/src/gba/context/config.c:176:2: warning: ignoring return value of ‘getcwd’, declared with attribute warn_unused_result [-Wunused-result]
getcwd(out, PATH_MAX);
^
/home/desktop/build-libretro-mgba-temp/libretro-mgba/src/gba/context/config.c: In function ‘GBAConfigDirectory’:
/home/desktop/build-libretro-mgba-temp/libretro-mgba/src/gba/context/config.c:220:2: warning: ignoring return value of ‘getcwd’, declared with
ice-steamos(6) Games Manual ice-steamos(6)
NAME
ice-steamos - Utility to add ROMs to Steam BPM and make launching them much easier.
SYNOPSIS
RUNNING ON STEAMOS
sudo systemctl stop lightdm
su - steam
ice-steamos(6) Games Manual ice-steamos(6)
NAME
ice-steamos - Utility to add ROMs to Steam BPM and make launching them much easier.
SYNOPSIS
RUNNING ON STEAMOS
sudo systemctl stop lightdm
su - steam
dpkg-source: info: using source format `3.0 (native)'
dpkg-source: info: building srb2 in srb2_2.1.14+git4481e02+bsos1.tar.xz
dpkg-source: info: building srb2 in srb2_2.1.14+git4481e02+bsos1.dsc
debian/rules build
mkdir -p /home/desktop/build-srb2-temp/srb2/bin/Linux/Release/debug
make -C /home/desktop/build-srb2-temp/srb2/src LINUX=1 NONX86=1 EXENAME=srb2 DBGNAME=debug/srb2 SDL_PKGCONFIG=sdl PNG_PKGCONFIG=libpng NOOBJDUMP=1
make[1]: Entering directory '/home/desktop/build-srb2-temp/srb2/src'
Creating dependency file, depend.dep
Created dependency file, depend.dep
sdl/i_system.c: In function ‘signal_handler’:
@mdeguzis
mdeguzis / Pipe or send results of find to sed
Created February 11, 2016 01:01
Pipe/send results of find to sed
find . -name "SEARCHSTRING" -print0 | xargs -0 sed "s|BEFORE|AFTER|g"
@mdeguzis
mdeguzis / update-graphics
Created June 1, 2016 13:06
/etc/init.d/update-graphics SteamOS
#! /bin/bash
### BEGIN INIT INFO
# Provides: update-graphics
# Required-Start: $remote_fs $syslog
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Update Graphics
# Description: Update the graphics stack to use based on the installed hardware
### END INIT INFO