Skip to content

Instantly share code, notes, and snippets.

View kmarf's full-sized avatar
💭
I may be slow to respond.

kmarf

💭
I may be slow to respond.
View GitHub Profile
@kmarf
kmarf / install_canon_printer.sh
Created February 26, 2025 19:18 — forked from Mahedi-61/install_canon_printer.sh
canon_LBP3300_printer_driver_installation_on_ubuntu_18.04
## This gist contains step by step instructions of installing canon LBP3300 printer driver on ubuntu 18.04 machine
## After a couple of months painful trying, i finally got it successfully installed on my 18.04 ubuntu machine.
## Here is the requirement
# 1) For 64 bit linux version install necessary the libraries
# 2) install the official CAPT drivers
# 3) register the printer with lpadmin
# 4) register the printer with the ccpd daemon
@kmarf
kmarf / jmeter_ibmmq.jmx
Created October 16, 2020 13:50 — forked from rmoff/jmeter_ibmmq.jmx
IBM MQ JMeter test script
<?xml version="1.0" encoding="UTF-8"?>
<jmeterTestPlan version="1.2" properties="4.0" jmeter="4.0 r1823414">
<hashTree>
<TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="Test Plan" enabled="true">
<stringProp name="TestPlan.comments"></stringProp>
<boolProp name="TestPlan.functional_mode">false</boolProp>
<boolProp name="TestPlan.tearDown_on_shutdown">true</boolProp>
<boolProp name="TestPlan.serialize_threadgroups">false</boolProp>
<elementProp name="TestPlan.user_defined_variables" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
<collectionProp name="Arguments.arguments">
@kmarf
kmarf / gist:960f3a00690756f978882607dec94179
Last active April 22, 2021 22:12 — forked from jovimon/gist:524e116471f249626fd2ccd141f3fe05
compile realtek network driver for pfsense 2.4.x

How to compile and install latest realtek network driver in pfSense 2.4.5-RELEASE-p1 (FreeBSD 11.3)

  1. Download FreeBSD 11.3 VMDK and create a VM with it as HDD.

  2. Get FreeBSD source tree for your exact FreeBSD version and uncompress it to /usr/src:

    fetch -o /tmp ftp://ftp.freebsd.org/pub/`uname -s`/releases/`uname -m`/`uname -r | cut -d'-' -f1,2`/src.txz
    tar -C / -xvf /tmp/src.txz
    
  3. Download latest Realtek network driver (you need to input any email address - a fake one will do!).

Using Vagrant with Multi-Node MicroK8S to experiment with Kubernetes

This script (using Vagrant) is used to build a pair of Ubuntu based virtual machines that have the MicroK8S setup of Kubernetes.

It also installs docker, and sets up aliases for kubectl in line with the MicroK8S documentation.

Please note that this script relies on the fact that Vagrant transfers files in /vagrant to the host file system, which we can then use to setup the second node.