Skip to content

Instantly share code, notes, and snippets.

View mdeguzis's full-sized avatar

Michael T. DeGuzis mdeguzis

View GitHub Profile
@mdeguzis
mdeguzis / info pinentry
Created November 9, 2016 18:39
info pinentry
File: pinentry.info, Node: Top, Next: Using pinentry, Up: (dir)
Introduction
************
This manual documents how to use the PINENTRY and its protocol.
The PINENTRY is a small GUI application used to enter PINs or
passphrases. It is usually invoked by GPG-AGENT (*note Invoking the
gpg-agent: (gnupg)Invoking GPG-AGENT, for details).
@mdeguzis
mdeguzis / json2yaml.py
Created May 5, 2018 22:34 — forked from noahcoad/json2yaml.py
Python to convert json to yaml
#!/usr/bin/env python3
# convert json to yaml
# http://pyyaml.org/wiki/PyYAMLDocumentation
# python3 json2yaml.py < ~/code/manpow/moneybug/mbuploader/support/offices.json
# gist https://gist.github.com/noahcoad/46909253a5891af3699580b8f17baba8
import yaml, json, sys
sys.stdout.write(yaml.dump(json.load(sys.stdin)))
@mdeguzis
mdeguzis / steam_console_params.txt
Created February 12, 2023 18:42 — forked from davispuh/steam_console_params.txt
Steam client parameters, consoles commands and variables
-480p - Run tenfoot in 480p rather than 1080p
-720p - Run tenfoot in 720p rather than 1080p
-accesscode -
-all_languages - show longest loc string from any language
-bigpicture - Start in Steam Big Picture mode
-blefw -
-cafeapplaunch - Launch apps in a cyber cafe context
-candidates - Show libjingle candidates for local connection as they are processed
-ccsyntax - Spew details about the localized strings we load
-cef-disable-breakpad - disables breakpad in crash dumps
@mdeguzis
mdeguzis / original source list for steamos
Created November 17, 2016 15:52
original source list for steamos
#
# deb cdrom:[SteamOS GNU/Linux 2.0 _Brewmaster_ - Unofficial Multi-architecture i386/amd64 DVD #1 20160421-22:02]/ brewmaster contrib main non-free
#deb cdrom:[SteamOS GNU/Linux 2.0 _Brewmaster_ - Unofficial Multi-architecture i386/amd64 DVD #1 20160421-22:02]/ brewmaster contrib main non-free
## internal SteamOS repo
deb http://repo.steampowered.com/steamos brewmaster main contrib non-free
deb-src http://repo.steampowered.com/steamos brewmaster main contrib non-free
@mdeguzis
mdeguzis / get-proton-ge.sh
Created August 22, 2020 17:59
get-proton-ge.sh
#!/bin/bash
# Author Michael DeGuzis
# Description: Simple script to grab the latest Proton GE without a git clone / build.
steam_type=$1
native=1
flatpak=1
steamos=1
if [[ -z ${steam_type} ]]; then
@mdeguzis
mdeguzis / steam.desktop
Created December 16, 2016 19:43
/home/desktop/steam.desktop
#!/usr/bin/env xdg-open
[Desktop Entry]
Name=Return to Steam
Comment=Exit desktop mode
Exec=/usr/bin/returntosteam.sh
Icon=steam
Terminal=false
Type=Application
Categories=Network;FileTransfer;Game;
MimeType=x-scheme-handler/steam;
@mdeguzis
mdeguzis / Difference between sh and bash.md
Last active April 6, 2021 17:22
Difference between sh and bash

Source: StackOverflow
By: roman-cheplyaka
Note: Full credit goes to the author and source website you see above.

What is sh

sh (or the Shell Command Language) is a programming language described by the POSIX standard. It has many implementations (ksh88, dash, ...). bash can also be considered an implementation of sh (see below).

Because sh is a specification, not an implementation, /bin/sh is a symlink (or a hard link) to an actual implementation on most POSIX systems.

@mdeguzis
mdeguzis / steamos lightdm.conf
Created December 15, 2016 18:29
/etc/lightdm.conf
#
# General configuration
#
# start-default-seat = True to always start one seat if none are defined in the configuration
# greeter-user = User to run greeter as
# minimum-display-number = Minimum display number to use for X servers
# minimum-vt = First VT to run displays on
# lock-memory = True to prevent memory from being paged to disk
# user-authority-in-system-dir = True if session authority should be in the system location
# guest-account-script = Script to be run to setup guest account
@mdeguzis
mdeguzis / bash_profile
Created December 27, 2016 20:52
Default ~/bash_profile for CentOS 7
# .bash_profile
# Get the aliases and functionsif [ -f ~/.bashrc ]; then . ~/.bashrcfi
# User specific environment and startup programs
PATH=$PATH:$HOME/.local/bin:$HOME/bin
export PATH
@mdeguzis
mdeguzis / profile
Created December 27, 2016 20:48
Default /etc/profile for CentOS 7
# /etc/profile
# System wide environment and startup programs, for login setup
# Functions and aliases go in /etc/bashrc
# It's NOT a good idea to change this file unless you know what you
# are doing. It's much better to create a custom.sh shell script in
# /etc/profile.d/ to make custom changes to your environment, as this
# will prevent the need for merging in future updates.