Skip to content

Instantly share code, notes, and snippets.

11:46:47.874665: _v2-entry-point[34134]: argv (unescaped): /home/deck/.local/share/Steam/steamapps/common/SteamLinuxRuntime/scout-on-soldier-entry-point-v2 -- /home/deck/.local/share/Steam/steamapps/common/SLAMMED/SLAMMED --no-sandbox
11:46:47.886757: pressure-vessel-wrap[34134]: I: pressure-vessel version 0.20230227.0
11:46:48.009096: pressure-vessel-wrap[34134]: I: Applying "/home/deck/.local/share/Steam/steamapps/common/SteamLinuxRuntime_soldier/soldier_platform_0.20230228.42394/usr-mtree.txt.gz" to "/home/deck/.local/share/Steam/steamapps/common/SteamLinuxRuntime_soldier/var/tmp-Q73G21/usr"...
11:46:48.423167: pressure-vessel-wrap[34134]: I: pv_runtime_provide_container_access: Setting up runtime without using bwrap
11:46:48.423293: pressure-vessel-wrap[34134]: I: EGL ICD #0 at /usr/share/glvnd/egl_vendor.d/50_mesa.json: libEGL_mesa.so.0
11:46:48.423318: pressure-vessel-wrap[34134]: I: Vulkan ICD #0 at /usr/share/vulkan/icd.d/radeon_icd.x86_64.json: /usr/lib/libvulkan_radeon.so
11:46:48.423338: pressure-v
Computer Information:
Manufacturer: Valve
Model: Jupiter
Form Factor: Laptop
No Touch Input Detected
Processor Information:
CPU Vendor: AuthenticAMD
CPU Brand: AMD Custom APU 0405
CPU Family: 0x17
@dfabulich
dfabulich / starsort.js
Last active September 25, 2023 02:45
Evan Miller Ranking Items with Star Ratings, in JavaScript
"use strict";
// based on unutbu's stackoverflow answer
// https://stackoverflow.com/a/40958702/54829
// which is based on Evan Miller's blog post
// http://www.evanmiller.org/ranking-items-with-star-ratings.html
function starsort(ratings) {
function sum(array) { return array.reduce((x, y) => x + y, 0) };
#!/bin/bash -e
rm -rf example
git init example
cd example
cat > file.txt << EOF
0
0
0
0
0
#!/bin/sh -x
rm -rf sample
git init sample
cd sample
echo hello > testfile
git add testfile
git commit -m 'added testfile'
git branch other
echo goodbye > testfile
git commit -am 'modified testfile'
@dfabulich
dfabulich / fiddle.response.json
Last active May 8, 2017 21:17
Example of JSON Hijacking
[{'friend':'luke','email':'+ACcAfQBdADsAYQBsAGUAcgB0ACgAJwBNAGEAeQAgAHQAaABlACAAZgBvAHIAYwBlACAAYgBlACAAdwBpAHQAaAAgAHkAbwB1ACcAKQA7AFsAewAnAGoAbwBiACcAOgAnAGQAbwBuAGU-'}]
@dfabulich
dfabulich / Vagrantfile
Last active June 1, 2016 23:04
Vagrantfile to reproduce Centos 7 without sandbox
Vagrant.configure(2) do |config|
config.vm.box = "centos/7"
config.vm.provision "shell", run: "always", inline: <<-SHELL
set -x
sudo yum -y -q install wget java-1.8.0-openjdk-devel
sudo yum -y -q group install "Development Tools"
wget -q https://github.com/bazelbuild/bazel/releases/download/0.2.3/bazel-0.2.3-installer-linux-x86_64.sh
chmod +x bazel-0.2.3-installer-linux-x86_64.sh
sudo ./bazel-0.2.3-installer-linux-x86_64.sh
export PATH=$PATH:/usr/local/bin
  1. Save greenwtf.ps1 (included in the gist below) to a directory of your choosing.

  2. Copy steam_api.dll to that directory, from the Steamworks SDK 1.34 (that exact version)

  3. Create a steam_appid.txt file in that directory, containing an app ID that you own.

  4. Launch Steam, logged in as your developer account.

  5. Run the script like this:

@dfabulich
dfabulich / mhils clint legit
Created February 8, 2013 21:04
Installing mhils/legit@windows auto-installs the wrong clint?
C:\git\main >pip install -U git+https://github.com/mhils/clint.git
Downloading/unpacking git+https://github.com/mhils/clint.git
Cloning https://github.com/mhils/clint.git to c:\users\dfabulich\appdata\local\temp\pip-yc40fw-build
Running setup.py egg_info for package from git+https://github.com/mhils/clint.git
Requirement already up-to-date: args in c:\python27\lib\site-packages (from clint==0.3.0)
Installing collected packages: clint
Running setup.py install for clint
warning: install_data: setup script did not provide a directory for 'README.rst' -- installing right in 'c:\Python27'
C:\git\main >pip install -U git+https://github.com/mhils/clint.git
Downloading/unpacking git+https://github.com/mhils/clint.git
Cloning https://github.com/mhils/clint.git to c:\users\dfabulich\appdata\local\temp\pip-yc40fw-build
Running setup.py egg_info for package from git+https://github.com/mhils/clint.git
Requirement already up-to-date: args in c:\python27\lib\site-packages (from clint==0.3.0)
Installing collected packages: clint
Running setup.py install for clint
warning: install_data: setup script did not provide a directory for 'README.rst' -- installing right in 'c:\Python27'