Skip to content

Instantly share code, notes, and snippets.

View duxet's full-sized avatar
💭
👨‍💻

Wojciech duxet

💭
👨‍💻
View GitHub Profile
@duxet
duxet / 8311.lua
Last active November 9, 2024 19:02
--
-- opkg install prometheus-node-exporter-lua
-- and then add this file to /usr/lib/lua/prometheus-collectors/ directory
--
local function scrape()
local status = get_page("Status")
local hw_version = status["PON IP HW version"]
local fw_version = status["PON IP FW version"]
@duxet
duxet / introrx.md
Created April 15, 2019 07:14 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@duxet
duxet / richhickey.md
Created July 1, 2018 04:57 — forked from prakhar1989/richhickey.md
richhickey.md

Rich Hickey on becoming a better developer

Rich Hickey • 3 years ago

Sorry, I have to disagree with the entire premise here.

A wide variety of experiences might lead to well-roundedness, but not to greatness, nor even goodness. By constantly switching from one thing to another you are always reaching above your comfort zone, yes, but doing so by resetting your skill and knowledge level to zero.

Mastery comes from a combination of at least several of the following:

{"lastUpload":"2020-02-19T09:03:27.813Z","extensionVersion":"v3.4.3"}
{
"version": 0.6,
"generator": "Overpass API",
"osm3s": {
"timestamp_osm_base": "2017-10-17T15:47:02Z",
"copyright": "The data included in this document is from www.openstreetmap.org. The data is made available under ODbL."
},
"bounds": {
"minlat": 47.3705,
"minlon": -1.3048,
{
"rcs": "string",
"pageBeacon": "string",
"status": "string",
"viewGuid": "string",
"placements": [
{
"htmlElementId": "string",
"placementType": "string",
"strategyMessage": "string",
let widget = files_tree.upcast::<Widget>();
widget.connect_button_release_event(|_, event| {
println!("{}", event.get_button());
Inhibit(false)
});

KVM OSX Guest 10.11 (El Capitan) with Clover

  • Some notes about this approach:
    • An OSX Installer USB drive for Install OS X El Capitan is created
    • Clover is then installed on the USB drive
    • Clover Configurator is then run on the USB drive
    • The USB drive contents are copied to the VM host
    • VNC is used to connect to the guest UI
  • The qxl virtual video device is used (part of the standard kvm qemu install)

Keybase proof

I hereby claim:

  • I am duxet on github.
  • I am duxet (https://keybase.io/duxet) on keybase.
  • I have a public key whose fingerprint is AC03 3F92 B0F6 FF22 8B20 1D97 3EAC 3AA0 6DB7 CFC8

To claim this, I am signing this object:

@duxet
duxet / tooltip-hover.js
Created September 13, 2015 22:10
Bootstrap V4 - tooltip, popover - stay open while hovering on content
var originalLeave = $.fn.popover.Constructor.prototype._leave;
$.fn.popover.Constructor.prototype._leave = function(event, context){
var dataKey = this.constructor.DATA_KEY
var self = this
context = context || $(event.currentTarget).data(dataKey)
if (!context) {
context = new this.constructor(
event.currentTarget,