Skip to content

Instantly share code, notes, and snippets.

View qral's full-sized avatar
🥲

A.D. qral

🥲
  • Brno, Czech Republic
View GitHub Profile
@qral
qral / asdf-python-mac.info
Last active September 8, 2023 21:23
Fix macos asdf install of python when pyexpat module can't be found..
CAN'T COMPILE PYTHON?
$ asdf install python 3.9.0
python-build 3.9.0 /Users/ad/.asdf/installs/python/3.9.0
python-build: use openssl@1.1 from homebrew
python-build: use readline from homebrew
Downloading Python-3.9.0.tar.xz...
-> https://www.python.org/ftp/python/3.9.0/Python-3.9.0.tar.xz
Installing Python-3.9.0...
python-build: use readline from homebrew
$ docker run --rm fchapp
Puma starting in single mode...
* Version 5.0.4 (ruby 2.6.6-p146), codename: Spoony Bard
* Min threads: 1, max threads: 16
* Environment: development
2020-11-06 18:52:04 +0000 ERROR: No application configured, nothing to run
Forgot to include config.ru ?
@qral
qral / booklet.js
Last active August 29, 2015 14:00
booklet - CMDB - sev1
javascript:
(function(){
function f(xpath) {
var doc=document.getElementsByTagName('frame')['data'].contentDocument;
return doc.evaluate(xpath, doc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue.textContent
};
xp_host = f("//a[@title='Show server details']/text()");
xp_image = f("//tr[@bgcolor='white']/td[10]");
xp_site = f("//tr[@bgcolor='white']/td[7]");
temp = xp_host+':'+xp_image.slice(1)+': <problem> :'+xp_site;