Skip to content

Instantly share code, notes, and snippets.

View OpenBagTwo's full-sized avatar

Gili Barlev OpenBagTwo

View GitHub Profile
@LeviSnoot
LeviSnoot / neofetch_ascii.md
Created October 19, 2023 14:48
A guide for using jp2a and jp2a2neofetch.py to create ASCII art for neofetch.

To convert an image to ASCII art, use jp2a. I found that using the Docker image was the most portable way to do this, especially as it doesn't require you to build the binary manually.

Example command:

docker run -t --rm -v "$(pwd)":/app talinx/jp2a file.ext --color-depth=4 --width=35

Command breakdown

  • docker run tells docker to run an application.
@rondhi
rondhi / README.md
Last active April 12, 2024 08:23
How to stream games from OBS directly from Steam Deck's Gaming Mode

How to stream games from OBS directly from Steam Deck's Gaming Mode (as of 2023-02-26)

DISCLAIMER: As with any guide, please make sure to read through and understand everything before following the steps in this guide. I'm not responsible for you breaking anything on your own device. This guide assumes you have a little background with the linux command line as well as the text editor nano. If not, please educate yourself


Description: It's possible to stream Vulkan and OpenGL games from Gaming Mode on your Steam Deck. This guide is heavily based on robertkirkman's guide, which is linked multiple times throughout this guide. Much thanks to them


How to install Homebrew package manager on Steam Deck

(See also installing Distrobox: https://distrobox.it/ )
(See also installing Nix package manager: https://determinate.systems/posts/nix-on-the-steam-deck )

You can install Homebrew (a package manager for macOS and Linux) without disabling the read-only partition with sudo steamos-readonly disable.
The package manager can be used alongside Flatpaks. Some software is only available on Flathub, and some software is only available on Homebrew.

  1. Switch to desktop mode (hold power button until a menu appears, then select "Switch to desktop mode")
  2. Click the logo at the bottom left, go to System, then go to Konsole
@jhrcook
jhrcook / common-github-badges.md
Last active April 23, 2024 13:58
A list of GitHub badges I usually add to me README files.

GitHub Badges

Social

jhc github jhc twitter jhc website

Code

@cb109
cb109 / vscode_python_sort_imports_isort_on_save.md
Last active June 12, 2023 03:50
VSCode: Python Sort Imports on File Save (isort)

VSCode: Python Sort Imports on File Save (isort)

Problem

VSCode does have support to sort imports inside a .py file using isort. The recommended way to turn this on is via the following settings:

"[python]": {
    "editor.formatOnSave": true,
 "editor.codeActionsOnSave": {
@SavinaRoja
SavinaRoja / .vimrc
Created September 8, 2015 18:10
.vimrc for python
" A good writeup of the .vimrc is here:
" http://dougblack.io/words/a-good-vimrc.html
syntax on
colorscheme badwolf
" Tab Handling
set tabstop=4
set softtabstop=4
@ccopsey
ccopsey / gist:9866a0bcb0b39ade04fe
Created January 3, 2015 20:00
Rename master branch on GitHub
git branch -m master newname
git push origin newname
# Change "Default Branch" in settings/options in GitHub
git push origin :master