-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
BASE_DIR=/home/andre/ | |
INPUT_DIR=$BASE_DIR/handbrake_input/ | |
OUTPUT_DIR=$BASE_DIR/handbrake_output/ | |
OUTPUT_EXT=mp4 | |
HANDBRAKE=HandBrakeCLI | |
LOG=$BASE_DIR/handbrake_batch.log | |
for INPUT in `ls $INPUT_DIR`; do |
The icinga PPA only provides packages for i386 and amd64. If you're running an ARM-powered device such as the Raspberry Pi or the ODROID U3 (which I use), you have to build the packages yourself. However, compiling the packages is very easy thanks to Debian's excellent build tools and the work of the icinga package maintainer. This howto uses pbuilder which builds in a clean chroot so your original system is not polluted with build packages.
The ppa does not build packages for ARM (e.g. ODROID U3), so let's compile them.
Make sure that /etc/pbuilderrc
contains the line
echo 'COMPONENTS="main universe multiverse restricted"' | sudo tee -a /etc/pbuilderrc
IMPORTANT: use full zip (signed flashable zip; not the incremental update)
FILE="http://builds.cyngn.com/factory/bacon/cm-12.1-YOG4PAS2QL-bacon-signed.zip"
wget ${FILE}
# copy ${FILE} to phone storage (/sdcard)
# reboot to recovery, install ${FILE}, wipe cache & dalvik cache
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am andrenarchy on github. | |
* I am andrenarchy (https://keybase.io/andrenarchy) on keybase. | |
* I have a public key ASDBVcqSCeQErj79PAZaMzyv0WaMyYKSGClZLycQ6ZmDvwo | |
To claim this, I am signing this object: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LOG_FILE_PATH="" | |
BUCKET_DIR_PATH="/data/buckets" | |
DATABASE="postgresql://dbname=stellar-core user=postgres host=postgres-core" | |
HTTP_PORT=11626 | |
PUBLIC_HTTP_PORT=true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
postgres-core: | |
image: postgres:9 | |
volumes: | |
- "/var/stellar-data-testnet/postgres-core:/var/lib/postgresql/data" | |
environment: | |
- POSTGRES_DB=stellar-core | |
stellar-core: | |
image: stellar-core |
OlderNewer