Skip to content

Instantly share code, notes, and snippets.

View mdeguzis's full-sized avatar

Michael T. DeGuzis mdeguzis

View GitHub Profile
# 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
```
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
@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 / steamos-autorepair
Created July 11, 2016 13:03
/usr/bin/steamos-autorepair
#!/bin/bash
# 10s is the time window where systemd stops trying to restart a service
sleep 15
# if lightdm is not running after 15s, it's not a random crash, but many
# otherwise nothing to do, systemd will call us again if it crashes more
if pidof -x lightdm > /dev/null
then
exit 0
@mdeguzis
mdeguzis / steamos-autorepair.service
Created July 11, 2016 14:28
/lib/systemd/system/steamos-autorepair.service
[Unit]
Description=SteamOS Autorepair
[Service]
ExecStart=/usr/bin/steamos-autorepair.sh
Type=oneshot
@mdeguzis
mdeguzis / steamos-autorecover.conf
Created July 11, 2016 14:31
/lib/systemd/system/lightdm.service.d/steamos-autorecover.conf
http://sprunge.us/iFZO
@mdeguzis
mdeguzis / Clang error
Created July 18, 2016 14:34
Clang error
build succeeded.
Build finished. The manual pages are in _build/man.
make[2]: Leaving directory '/build/llvm-toolchain-3.8-3.8.1/clang/docs'
d=/build/llvm-toolchain-3.8-3.8.1/docs/_build/man/; \
cd $d; \
for f in *.1; do \
echo "$f"|grep 3.8 || mv $f `echo $f|sed "s|\.1|-3.8.1|"`; \
done
cd /build/llvm-toolchain-3.8-3.8.1/clang/docs/_build/man/; mv clang.1 clang-3.8.1