Skip to content

Instantly share code, notes, and snippets.

@helamonster
helamonster / pidgin_im_3_build_env_debian.md
Created January 14, 2023 16:09
Pidgin IM 3.0 Debian Build Environment (WIP)

Pidgin IM 3.0 Debian Build Environment (WIP)

How to setup a build environment for Pidgin IM 3.0 on a virgin debian bullseye system:

Distributor ID: Debian
Description:    Debian GNU/Linux 11 (bullseye)
Release:        11
Codename:       bullseye
@helamonster
helamonster / .xbindkeysrc
Last active October 10, 2022 17:30
Key bindings for chromeos / chromebook to allow X clipboard copy and pasting
# 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
@helamonster
helamonster / pid_to_remote_ip_and_port.sh
Created February 1, 2020 10:05
How NOT to get the remote IP and port of a socket connection of a given process ID and listening port
# 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
@helamonster
helamonster / .bash_profile
Created August 12, 2019 15:02
Use a "sane" date format in terminal and applications
# 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.
@helamonster
helamonster / .tmux.conf
Created August 12, 2019 14:11
tmux - Allow Ctrl + Left Arrow and Ctrl + Right Arrow to jump back and forward 1 word at shell prompt
set-window-option -g xterm-keys on
@helamonster
helamonster / .vimrc
Last active August 12, 2019 15:03
vim tab movement, etc keybindings
" 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