Skip to content

Instantly share code, notes, and snippets.

View plembo's full-sized avatar

Phil Lembo plembo

View GitHub Profile
@plembo
plembo / PostFormInputWithJS.md
Created April 11, 2018 21:06
Post form input to a new page using javascript
@plembo
plembo / ROSFwdServiio.md
Last active April 16, 2018 16:38
RouterOS Port Forward for Serviio

Port forwarding for Serviio with RouterOS

Some Pro subscription services for the Serviio media server require Internet access.

On a network protected by a Mikrotik RouterOS device, this will probably need to be set up manually.

In the examples below the IP address of your local Serviio box is 10.0.0.5 and the router's Internet port is "ether-gateway".

In the graphical console

@plembo
plembo / ReadMdCmd.md
Created April 17, 2018 00:58
Read markdown at the command line

Read markdown on the command line

Neat trick I found in this Stack comment by @barry-staes:

pandoc README.md | lynx -stdin

Finally, a reason to start installing lynx on all my machines again.

@plembo
plembo / techdebtexp.md
Last active April 29, 2018 20:40
Technical debt explainers

Explaining Technical Debt

The Debt Metaphor

I thought borrowing money was a good idea, I thought that rushing software out the door to get some experience with it was a good idea, but that of course, you would eventually go back and as you learned things about that software you would repay that loan by refactoring the program to reflect your experience as you acquired it.

@plembo
plembo / pydoclikeperldoc.md
Created April 30, 2018 02:25
Pydoc is like perldoc

Pydoc is like perldoc

To get documentation for any given python module, do this

python -m pydoc <module_name>
@plembo
plembo / nodejs-debugging.md
Last active June 18, 2021 18:11
Debugging in Node.js
@plembo
plembo / fccbalgorithms.md
Last active May 21, 2018 04:28
FCC Basic Algorithms

freeCodeCamp: Basic Algorithms

My lame answers to Basic Algorithms challenges on freeCodeCamp.

Reverse a String

function reverseString(str) {
  
  var a = str.split('');
  a = a.reverse();
 str = a.join('');
@plembo
plembo / wptohtml.md
Last active July 15, 2023 01:21
Converting a WordPress site to static HTML

Converting a WordPress site to static HTML

There are many suggested solutions for this, once you get past the incessant finger-wagging by generations of StackOverflow moderators that the question is "outside the scope".

I have tried a few, most do not work.

Using wget seems to work if you target a specific page (which is all I needed for my project):

wget -r -p -e robots=off http://site.example.com/anotherpage
@plembo
plembo / latestgimp.md
Last active May 24, 2018 13:59
Getting the latest GIMP

Getting the latest GIMP

The GNU Image Manipulation Program may not quite be a PhotoShop killer, but for a lot of us it's close enough.

The latest version, v2.10.0 was release on 27 April 2018 and is a major improvement over previous versions.

Most Linux distributions still ship the previous version released in 2013, and as a result users who want to upgrade will have to find an alternative source.

The official package from the GIMP Project is in flatpak format.

That flatpak is hosted on Flathub.

@plembo
plembo / telegramautoubuntu.md
Last active May 22, 2018 14:33
Install and autostart Telegram on Ubuntu

Install and autostart Telegram on Ubuntu

Tested on Ubuntu 16.04 LTS with Unity 7 desktop.

Download official Linux 64-bit binary package from https://desktop.telegram.org/.

Extract to /opt/Telegram (version is latest as of this writing):

sudo tar xJf tsetup.1.2.17.tar.xz -C /opt/