Skip to content

Instantly share code, notes, and snippets.

View mrskug's full-sized avatar

Christoffer Holmberg mrskug

View GitHub Profile
@mrskug
mrskug / grml-install.sh
Last active March 27, 2024 18:58
simple Grml zsh config installer for Ubuntu/debian (The same one used in the Arch installer)
#!/usr/bin/env bash
pkgver=0.19.6
pkgdir=/tmp/grml/
echo "--** Installing dependencies **--"
apt update
apt install zsh coreutils grep sed procps txt2tags build-essential
echo "--** Creating pkgdir **--"
@mrskug
mrskug / mikrotik-chateau-cell-lock.txt
Created November 10, 2020 10:00
Mikrotik Chateau LTE cell lock described. Saved for posterity, in case forum post gets deleted.
https://forums.quectel.com/t/eg12-and-freq-or-cell-lock-feature/4619
thanks.
After many test I discover all stuff.
This is example at RouterBoard Chateau, RouterOS 7 beta 8
Quectel EG12 not support frequency lock to select band at any tower.
Quectel EG12 support one and many Cell Lock’s, you can enter max 20 of CellLock’s and it select the one with the best signal and set it as primary-band.
@mrskug
mrskug / getcaller.py
Last active November 6, 2017 08:43
Get caller of function in python
import inspect
# Gets the function name of the caller
# To be used for debug purposes
def getCaller():
a = inspect.currentframe()
b = inspect.getouterframes(a, 2)
print(b[1][3] + " Called by " + b[2][3])

Keybase proof

I hereby claim:

  • I am mrskug on github.
  • I am skug (https://keybase.io/skug) on keybase.
  • I have a public key whose fingerprint is C5DA E331 8A59 C373 D0EF 7BCC BEA0 CEB3 EF76 A979

To claim this, I am signing this object:

API workthough

  1. Open a browser

    # start an instance of firefox with selenium-webdriver
    driver = Selenium::WebDriver.for :firefox
    # :chrome -> chrome
    # :ie     -> iexplore
    
  • Go to a specified URL