Skip to content

Instantly share code, notes, and snippets.

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
View sublime-settings.json
{
"draw_white_space": "all",
"ensure_newline_at_eof_on_save": true,
"font_face": "Hack",
"font_size": 28.0,
"gutter": true,
"highlight_line": true,
"ignored_packages":
[
"Vintage",
View sublime-keymap.json
[
{
"keys": ["super+shift+r"],
"command": "show_panel",
"args": {
"panel": "replace",
"reverse": false
}
},
{
View git_branch-ps1.sh
# Shows git branch at prompt.
# add to ~/.bashrc or ~/.bash_profile
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
export PS1="\u@\h \[\033[32m\]\w\[\033[33m\]\$(parse_git_branch)\[\033[00m\] $ "
@pjobson
pjobson / install.md
Last active Sep 24, 2022
Installing Into Lakka and other LibreELEC Based Distros
View install.md

Installing Into Lakka and other LibreELEC Based Distros

NOTE

First, you're not really supposed to do this, you're supposed to recompile a new release with what you want in it.

Second, this really isn't installing, it is just coping files around.

Third, there are security risks as these never get updated, but I don't really expect most people run LibreELEC stuff in production environments.

View 1datto_alto_3.md

Datto Alto 3 Info

Datto is an American cybersecurity and data backup company. There are a variety of NUC-style Mini-PCs floating around on the upcycle market.

Many of these are BIOS password locked, the default password is R@str.

Per neko-noire on reddit, these units are rebrand of the AsRock Beebox-S Series (Kaby Lake), so you can flash the BIOS on them.

https://www.asrock.com/nettop/Intel/Beebox-S%20Series%20(Kaby%20Lake)/#BIOS

View 1intel_centrino_antennas.md

Intel Centrino 6300 Wifi Antena Configuration

There are a variety of these Intel Centrino Wifi Adapters on the market, though I couldn't find any useful information as to what the best antenna configuration is. Do I need three antenas? Can I use one antenna? Who knows!

I did a little bit of testing to attempt to determine the answers.

These units are PCIe Half MiniCard with three antenna IPEX MHF1 ports.

View 1datto_s3x2_info.md

Datto S3X2 Info

Datto is an American cybersecurity and data backup company. There are a variety of NUC-style Mini-PCs floating around on the upcycle market.

Many of these are BIOS password locked, the default password is R@str.

System Brief

View set_hdmi_audio.node.js
#!/usr/bin/env node
// Forces the audio card and profile in Linux
// tested on Mint, should work on other distros which use pulse audio.
//
// Requires pulseaudio and node installed in your path.
// apt install pulseaudio-utils pulseaudio
// apt install nodejs # or install it some other way
//
// For some reason my MEDIA PC would randomly change the output to dummy or internal
@pjobson
pjobson / openapi_install.md
Created Jul 12, 2022
Installing Open API Tools
View openapi_install.md

Install

sudo yum install maven jq
mkdir -p ~/bin/openapitools
curl https://raw.githubusercontent.com/OpenAPITools/openapi-generator/v5.4.0/bin/utils/openapi-generator-cli.sh > \ 
     ~/bin/openapitools/openapi-generator-cli
chmod u+x ~/bin/openapitools/openapi-generator-cli
export PATH=$PATH:~/bin/openapitools/
openapi-generator-cli
@pjobson
pjobson / using_ublox_neo_usb_linux.txt
Created Jun 29, 2022
Linux Mint u-blox NEO-6M-0-001 USB
View using_ublox_neo_usb_linux.txt
apt install gpsd gpsd-clients foxtrotgps
vi /etc/default/gpsd
################################
# Default settings for gpsd.
# Please do not edit this file directly - use `dpkg-reconfigure gpsd' to
# change the options.
START_DAEMON="true"
GPSD_OPTIONS="/dev/ttyUSB0"