This information was taken (and updated with information for unsupported releasses) from:
https://chatgpt.com/c/66e47308-57d4-8013-ac8f-e6b0bc806759
Thank you, Hendrik!
This information was taken (and updated with information for unsupported releasses) from:
https://chatgpt.com/c/66e47308-57d4-8013-ac8f-e6b0bc806759
Thank you, Hendrik!
# Key bindings for chromeos / chromebook to allow X clipboard copy and pasting | |
# | |
# Keys: | |
# Copy: Shift + Search + C | |
# Paste: Shift + Search + V | |
# | |
# Use xbindkeys, xsel, and xdotool | |
# | |
# sudo apt-get install xbindkeys xsel xdotool | |
# |
Dealing with Windows with limited usage of console | |
Download URLs for TightVNC: | |
https://www.tightvnc.com/download/2.8.27/tightvnc-2.8.27-gpl-setup-64bit.msi | |
https://www.tightvnc.com/download/2.8.27/tightvnc-2.8.27-gpl-setup-32bit.msi | |
1. Enable Administrator account (from Windows console command line) | |
net user Administrator password123 | |
net user Administrator /active:yes |
# Here's another ridiculous thing, just for fun... | |
# Dont try this at home, kids. | |
# Your homework is to implement this in Go. | |
# See https://github.com/weaveworks/procspy for a head start. | |
# How to get the remote IP and port of socket connecting to the local machine | |
# (not necesarily localhost) on port 443 ( hex 0x01BB ) on given PID 13866 | |
# Given a Process ID (PID), get list of sockets open: | |
$ ls -l /proc/13866/fd/ | grep socket | grep -o '\[.*\]' | sed 's/\[//;s/\]//' |
# BASH Gist: | |
# Get the PID, standard out, standard error, and the exit code of a process | |
# Here we simulate a single program by running a subprocess with () in the background, | |
# just long enough to get the PID and start waiting on it to finish. | |
# The PID is nice to have available to query the status of the program or to send it a SIGNAL | |
# | |
# Step 1: Run the process in the background | |
# This set of commands simulates a single process that writes to stderr, stdout, and returns | |
# exit code 42 |
# Use a "sane" date format in terminal and applications | |
# Jeremy Bryan Smith <me@jeremybryansmith.com> | |
# The following environment variables can be set in your terminal's profile config file. | |
# For BASH this typically is ~/.bash_profile for your user or /etc/profile for system-wide. | |
# What is a "sane" date format? | |
# * I consider a "sane" date format a format that: | |
# * Uses 24-hour time format instead of the AM/PM nonsense. | |
# * Begins with the most significant number and ends with the least significant number. |
set-window-option -g xterm-keys on |
" Tab movement key bindings for vim | |
" Jeremy Bryan Smith <me@jeremybryansmith.com> | |
" ================ Key Code Settings ================ | |
" Needed by chromeos to map Alt + KEY | |
set <M-`>=^[` | |
set <M-1>=^[1 | |
set <M-2>=^[2 | |
set <M-3>=^[3 | |
set <M-4>=^[4 |