Skip to content

Instantly share code, notes, and snippets.

View andrenarchy's full-sized avatar
🚴‍♂️

André Gaul andrenarchy

🚴‍♂️
View GitHub Profile
import numpy
from krypy import linsys
m = 10
n = 5
A = numpy.random.rand(m, m)
A = A + A.T
B = numpy.random.rand(n, m)
Z = numpy.zeros((n, n))
tau = 1e-4
@andrenarchy
andrenarchy / oneliner.md
Last active January 2, 2016 07:49
One liner or very short code snippets
  • Get a list of all installed openwrt packages containing 'libremap'.

    opkg list-installed | grep libremap | awk '{ print $1 }' | tr '\n' ' '
    
  • pretty plots in matplotlib with mpltools:

    from mpltools import style
config defaults
option syn_flood '1'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'REJECT'
config zone
option name 'lan'
option network 'lan'
option input 'ACCEPT'