Skip to content

Instantly share code, notes, and snippets.

@Ulfada
Ulfada / SD_packages-pacman.sh
Created December 20, 2023 14:44 — forked from muzzol/SD_packages-pacman.sh
script for installing packages on Steam Deck using pacman
#!/bin/bash
# script for installing packages on Steam Deck using
# pacman repositories (not flatpack, snap or appimage)
#
# ATENTION: USE IT AT YOUR OWN RISK!!!!
#
# this will modify root filesystem so it will probably get
# overwrite on system updates but is totally ok executing
# it several times, so if something stops working just
@Ulfada
Ulfada / README.mkdn
Created February 26, 2022 17:35 — forked from cbiffle/README.mkdn
Download old package on old Arch Linux install

Arch Linux is a rolling-release system that expects users to update regularly.

This can be a problem if you find yourself in possession of an older Arch Linux machine that hasn't been kept up to date. In particular, if you'd like to back up the contents of the system and reinstall, you may want certain tools available to do it (in my case it was pigz).

However, if they tools aren't already installed, you're out of luck: Arch's package repositories store only very recent versions of every package.

@Ulfada
Ulfada / run.sh
Created December 23, 2021 22:31 — forked from lidio601/run.sh
Linux: send command from another terminal to a TTY terminal
#!/bin/bash
# see http://askubuntu.com/questions/194293/how-to-send-terminal-command-to-a-tty-terminal
nano ttyecho.c
make ttyecho
sudo chown root:root ttyecho
sudo chmod u+s ttyecho
@Ulfada
Ulfada / GitHub-Forking.md
Created June 23, 2020 13:38 — forked from Chaser324/GitHub-Forking.md
GitHub Standard Fork & Pull Request Workflow

Whether you're trying to give back to the open source community or collaborating on your own projects, knowing how to properly fork and generate pull requests is essential. Unfortunately, it's quite easy to make mistakes or not know what you should do when you're initially learning the process. I know that I certainly had considerable initial trouble with it, and I found a lot of the information on GitHub and around the internet to be rather piecemeal and incomplete - part of the process described here, another there, common hangups in a different place, and so on.

In an attempt to coallate this information for myself and others, this short tutorial is what I've found to be fairly standard procedure for creating a fork, doing your work, issuing a pull request, and merging that pull request back into the original project.

Creating a Fork

Just head over to the GitHub page and click the "Fork" button. It's just that simple. Once you've done that, you can use your favorite git client to clone your repo or j

@Ulfada
Ulfada / tmux-cheatsheet.markdown
Created June 21, 2020 14:39 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname

Python - argparse for Git-like CLI

Git uses a really nice command-oriented command line interface (doesn't know a better name). Bellow a script showing how this can be reproduced in Python using argparse.

Usage

Tested on Python3+.
The following commands and sub-commands are implemented:

  • foo
  • bar
  • complex

Python - argparse for Git-like CLI

Git uses a really nice command-oriented command line interface (doesn't know a better name). Bellow a script showing how this can be reproduced in Python using argparse.

Usage

Tested on Python3+.
The following commands and sub-commands are implemented:

  • foo
  • bar
  • complex
@Ulfada
Ulfada / .bash_aliases
Created June 4, 2020 16:47 — forked from vratiu/.bash_aliases
Git shell coloring
# Customize BASH PS1 prompt to show current GIT repository and branch.
# by Mike Stewart - http://MediaDoneRight.com
# SETUP CONSTANTS
# Bunch-o-predefined colors. Makes reading code easier than escape sequences.
# I don't remember where I found this. o_O
# Reset
Color_Off="\[\033[0m\]" # Text Reset