Skip to content

Instantly share code, notes, and snippets.

@PackeTsar
PackeTsar / byobu-ssh-cheatsheet.md
Last active April 25, 2025 15:52
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
@joseluisq
joseluisq / resize_disk_image.md
Last active April 30, 2025 12:11
How to resize a qcow2 disk image on Linux

How to resize a qcow2 disk image on Linux

This example takes olddisk.qcow2 and resizes it into newdisk.qcow2, extending one of the guest's partitions to fill the extra space.

1. qcow2 format

1.1. Verify the filesystems of olddisk.qcow2

@michael-lazar
michael-lazar / alternatives_to_rtv.md
Last active April 29, 2025 01:11
Alternatives to RTV
@pabloasanchez
pabloasanchez / Tab Context.sublime-menu
Last active December 21, 2020 23:20
Sublime Text 3 Plugin: Close all saved tabs
[
{ "caption": "-" },
{ "command": "close_saved", "caption": "Close Saved Files" }
]
@Dalimil
Dalimil / Vector2.js
Created July 11, 2016 15:56
Basic Vector2 JavaScript Math Helper Class
function Vector2(x, y) {
this.x = (x === undefined) ? 0 : x;
this.y = (y === undefined) ? 0 : y;
}
Vector2.prototype = {
set: function(x, y) {
this.x = x || 0;
this.y = y || 0;
},
@jrelo
jrelo / gcc-security.txt
Last active November 14, 2024 06:54
GCC security related flags reference.
Source material:
http://security.stackexchange.com/questions/24444/what-is-the-most-hardened-set-of-options-for-gcc-compiling-c-c
https://wiki.gentoo.org/wiki/Hardened_Gentoo
https://wiki.debian.org/Hardening
================================================================================================================>
GCC Security related flags and options:
CFLAGS="-fPIE -fstack-protector-all -D_FORTIFY_SOURCE=2"
LDFLAGS="-Wl,-z,now -Wl,-z,relro"
@X-Raym
X-Raym / ReaScriptLesson03-VolumeConversion.lua
Last active December 7, 2024 08:58
ReaScript Lua Tutorial
---------------- Old Version :
vol_dB = 20 * ( math.log( vol_log, 10 ) )
vol_log = math.exp( vol_dB * 0.115129254 )
---------------- New Version :
-- Mod from SPK77
-- http://forum.cockos.com/showpost.php?p=1608719&postcount=6
@staltz
staltz / introrx.md
Last active May 1, 2025 10:51
The introduction to Reactive Programming you've been missing
@Twinklebear
Twinklebear / main.cpp
Last active April 24, 2025 05:25
Example of render to texture with SDL2
#include <iostream>
#ifdef __linux__
#include <SDL2/SDL.h>
#elif defined(_WIN32)
#include <SDL.h>
#endif
const int WIN_WIDTH = 640;
const int WIN_HEIGHT = 480;