Skip to content

Instantly share code, notes, and snippets.

@tejainece
tejainece / marshall_slice_map_in_struct.go
Last active November 12, 2021 10:05
Marshall slice and map members of a struct into JSON in Golang.
package main
import (
"fmt"
"encoding/json"
)
type Data struct {
IntF int
StringF string
@thingsiplay
thingsiplay / proton
Last active March 21, 2024 13:34
Proton script
#!/bin/sh
# Execute Windows programs with Proton from Steams installation folder, without
# starting Steam client.
#
# 1. Create a directory for Proton environment to run in. As an example make a
# folder "proton" in your home directory. This folder must exist in order
# to make Proton work.
#
# 2. Point the variable "env_dir" in this script to that folder or...