Skip to content

Instantly share code, notes, and snippets.

View pjobson's full-sized avatar
:shipit:
p̰͍͖̄̀ͬ̒̎̅a̲͚̯̱̺͗̿̓̆͊̀͌ǘ̳̹͙͔̘̈ͭ̋̒ͭ̋lͫ̔ͯ̂ ͎͖͍̤ͣͧ̀ͨj̾o̹̗͍̲̽ͥ́̊͐b̪ͬͪͫ̂s̙̫͕̼̭͛̍̔on̽

Paul Jobson pjobson

:shipit:
p̰͍͖̄̀ͬ̒̎̅a̲͚̯̱̺͗̿̓̆͊̀͌ǘ̳̹͙͔̘̈ͭ̋̒ͭ̋lͫ̔ͯ̂ ͎͖͍̤ͣͧ̀ͨj̾o̹̗͍̲̽ͥ́̊͐b̪ͬͪͫ̂s̙̫͕̼̭͛̍̔on̽
View GitHub Profile
@pjobson
pjobson / glances_init.d.txt
Last active May 6, 2024 19:41
glances notes
#!/bin/sh
### BEGIN INIT INFO
# Provides: glances
# Required-Start: $network $remote_fs $syslog
# Required-Stop: $network $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start glances at boot time
# Description: Start glances at boot.
### END INIT INFO
RAR registration data
WinRAR
Unlimited Company License
UID=4b914fb772c8376bf571
6412212250f5711ad072cf351cfa39e2851192daf8a362681bbb1d
cd48da1d14d995f0bbf960fce6cb5ffde62890079861be57638717
7131ced835ed65cc743d9777f2ea71a8e32c7e593cf66794343565
b41bcf56929486b8bcdac33d50ecf773996052598f1f556defffbd
982fbe71e93df6b6346c37a3890f3c7edc65d7f5455470d13d1190
6e6fb824bcf25f155547b5fc41901ad58c0992f570be1cf5608ba9
#!/bin/bash
# Make Some Directories
mkdir -p ~/bin ~/code
# Update apt
sudo mint-switch-to-local-mirror
sudo apt update
# Multimedia CODECs
@pjobson
pjobson / amdgpu_firmware.md
Created August 31, 2023 03:17
install amdgpu firmware
   git clone https://kernel.googlesource.com/pub/scm/linux/kernel/git/firmware/linux-firmware.git
   sudo cp linux-firmware/amdgpu/* /lib/firmware/amdgpu
   sudo update-initramfs -k all -u -v
@pjobson
pjobson / thinkpad_t495_fingerprint_linux.md
Created August 30, 2023 19:52
Enable Fingerprint Reader in Ubuntu Linux Variants

Enable T495 Fingerprint Reader in Ubuntu Variants

I'm currently on Mint 21.2 testing on a ThinkPad T495.

This pertains to any laptop with a Synaptics Prometheus MIS Touch Fingerprint Reader.

sudo apt install -y fprintd libpam-fprintd
sudo pam-auth-update

The edit common auth.

#!/usr/bin/env node
// Script for converting hevc to avc (h265 to h264)
const fs = require('fs');
const os = require('os');
const path = require('path');
const process = require('process');
const shellescape = require('shell-escape');
const child_process = require('child_process');
#!/usr/bin/env node
// Script for extracting all files from an MKV container.
const fs = require('fs');
const path = require('path');
const process = require('process');
const shellescape = require('shell-escape');
const child_process = require('child_process');
@pjobson
pjobson / chonkyrc
Last active April 15, 2023 20:07
chonky rc
conky.config = {
alignment = 'top_right',
background = true,
border_inner_margin = 0,
border_outer_margin = 0,
border_width = 10,
cpu_avg_samples = 100,
display = 1,
double_buffer = true,
draw_borders = false,
@pjobson
pjobson / cavm.md
Last active January 20, 2023 00:52
Clam AV Mac

Download/install from: https://www.clamav.net/downloads

Open terminal

One time:

sudo cp /usr/local/clamav/etc/freshclam.conf.sample /usr/local/clamav/etc/freshclam.conf
sudo /usr/bin/sed -i '' 's/Example/# Example/' /usr/local/clamav/etc/freshclam.conf
sudo cp /usr/local/clamav/etc/clamd.conf.sample /usr/local/clamav/etc/clamd.conf

sudo /usr/bin/sed -i '' 's/Example/# Example/' /usr/local/clamav/etc/clamd.conf

@pjobson
pjobson / openhab_notes.md
Last active April 4, 2024 07:42
OpenHAB on Low Power Hardware

OpenHAB on Low Power Hardware

Geared towards running on Dell Wyse 3040 ATOM CPU devices with antiX Linux with Nortek GoControl HUSBZB-1 Z-Wave and Zigbee.

The Wyse 3040 is a very basic 4 core 1.44GHz/1.92GHz (burst) Intel Atom x5-Z8350 with 2GB of RAM. Supposedly they average about 7.5 watts under normal load. They can be purchased for $35-100 on eBay (as of 2 Jan 2023). CPUMark on mine is 1,050, which is about 138 points higher than average.

Install antiX

I chose antiX as it is geared for low-end computers and it does not come with much installed on it.