Skip to content

Instantly share code, notes, and snippets.

View Pysis868's full-sized avatar
💭
everything at once

Pysis Pysis868

💭
everything at once
View GitHub Profile
@bitti
bitti / gfm-render
Created May 20, 2022 23:29
Offline renderer for GitHub flavoured markdown
#!/usr/bin/ruby
require 'redcarpet'
require 'erb'
input = ARGV[0] && ARGV[0] != "-" && File.open(ARGV[0]) || STDIN
output = ARGV[1] && File.open(ARGV[1], "w") || STDOUT
File.join(ENV["XDG_CACHE_HOME"] || "#{ENV['HOME']}/.cache", "gfm-render")
class RenderWithTaskLists < Redcarpet::Render::HTML
@PackeTsar
PackeTsar / byobu-ssh-cheatsheet.md
Last active March 28, 2024 01:36
Byobu (over SSH) Cheat Sheet

Byobu (over SSH) Cheat Sheet

I often find myself using Byobu on a Linux machine when connected to it over SSH. In doing so, I've noticed that many of the documented keyboard shortcuts don't work. This can be due to the native PC's OS intercepting certain keys, or possibly other reasons.

Below is a cheatsheet with Byobu features I have found usually work when run over a SSH connection.

Action Windows + Putty to Ubuntu MacOS + Terminal to Ubuntu
Help menu BASH: byobu-config FN-F1
Create new window CTRL-a c CTRL-a c or FN-F2
@vgmoose
vgmoose / readme.md
Created August 16, 2020 07:25
On Switchbrew, devkitPro, and Atmosphere

For about the past year, I have been banned on Github from commenting on any issues from the following Github organizations:

I do not know the makeup of these groups and where exactly the overlap lies. As of today, their "People" pages on their Github organizations look like this: https://imgur.com/a/rw8rLkR

On the devkitPro org, Github explains the exact reason for my ban as follows: https://imgur.com/a/m8k8R4X

@bu5hm4nn
bu5hm4nn / atmega1284p_bootloader.md
Last active December 18, 2022 07:04
Flash Bootloader to Creality Ender 3 Pro (ATMega1284p, Melzi, Sanguino) using a Raspberry Pi only

My raspberry is running Raspbian

  1. Setup avrdude on Raspberry following this guide: http://archive.today/U0WzQ

    The wiring diagram works exactly the same for the Creality Melzi board

    To run the test, replace atmega328p with atmega1284p

@meleu
meleu / covid-ranking.sh
Created March 27, 2020 17:18
Show a bargraph with a ranking of countries with the highest number of deaths caused by COVID-19
#!/usr/bin/env bash
# covid-ranking.sh
##################
#
# Show a bargraph with a ranking of countries with
# the highest number of deaths caused by COVID-19.
#
# Dependencies: curl, jq, termgraph
#
# (install termgraph via `pip3 install termgraph`)
@meleu
meleu / covid.sh
Last active March 18, 2020 23:42
Check the numbers of COVID-19 (caused by Coronavirus) cases/deaths/recovered directly at your terminal.
#!/usr/bin/env bash
# covid.sh
##########
readonly API_URL='https://coronavirus-19-api.herokuapp.com'
readonly USAGE="Usage: $0 [country1 [country2] [countryN]] "
declare -A data
json2array() {
@Sanaki
Sanaki / updatera
Last active February 5, 2022 07:57
Script for building retroarch and select cores
#!/usr/bin/env bash
# Known non-working (YMMV): Dosbox SVN CE (Dosbox Pure is now preferred anyway), Emux (requires a special build recipe), easyrpg (relies on a rather specific server setup and scripts now)
# Partial Reference: https://libretro.readthedocs.io/en/latest/development/retroarch/compilation/linux-and-bsd/
# FORCE when set to YES will build regardless of changes
# NOCLEAN when set to 1 will prevent make clean before each build. Do not use NOCLEAN on core recipes or cores won't pull changes. Due to this situation I recommend against building MAME as part of this script.
# EXIT_ON_ERROR determines if the build stops on errors
# SINGLE_CORE can be set to a core name to bypass building the entire recipe (core set)
@nitrocode
nitrocode / equivalent-domains-password-manager.txt
Last active July 9, 2022 07:13
List of equivalent domains for password managers like Bitwarden, LastPass, KeePass, 1Password, etc
# Comma and new line delimited list of equivalent domains for password managers
# Source: https://meta.stackexchange.com/a/81383/386515
# Stackoverflow
askubuntu.com,
mathoverflow.net,
blogoverflow.com,
serverfault.com,
stackoverflow.com,
stackexchange.com,
baslist
baiprog
bmaptex
bstftex
beffect
brecipe
agstats
bphyssb
hkt