Skip to content

Instantly share code, notes, and snippets.

View nicopace's full-sized avatar

Nicolás Pace nicopace

View GitHub Profile
# you need Docker installed first
git clone --depth=1 https://github.com/armbian/build
cd build
./compile.sh docker BRANCH=next BOARD=orangepizero KERNEL_ONLY=no \
    KERNEL_CONFIGURE=no BUILD_DESKTOP=no EXTERNAL=no RELEASE=stretch
    # or simply ./compile.sh docker , a menu will appear
My id 02:90:a9:ff:fe:0c:6d:21 seqno 56112
Neighbour fe80::290:a9ff:fe0b:dd7b dev wlan0-adhoc reach ffc0 ureach 0000 rxcost 256 txcost 264 rtt 0.000 rttcost 0 chan 6.
Neighbour fe80::290:a9ff:fe0c:6ce6 dev wlan0-adhoc reach ff00 ureach 0000 rxcost 258 txcost 456 rtt 0.000 rttcost 0 chan 6.
100.64.0.33/32 metric 0 (exported)
100.64.0.1/32 metric 0 (exported)
2801:1e8:2::216d:c00/128 metric 0 (exported)
2801:1e8:2::1/128 metric 0 (exported)
Received hello 8068 (400) from fe80::290:a9ff:fe0c:6ce6 on wlan0-adhoc.
Received ihu 328 (1200) from fe80::290:a9ff:fe0c:6ce6 on wlan0-adhoc for fe80::290:a9ff:fe0c:6d21.
@nicopace
nicopace / Instructions
Created November 8, 2018 08:57
How to add a new repo with a simple package to lime-sdk
# cd lime-sdk
cd feeds
git clone https://github.com/nicopace/openwrt-simple-repo.git newrepo
cd ..
REPOPATH=`pwd`/feeds/newrepo
TARGET=ar71xx/generic
echo src-link newrepo $REPOPATH >> feeds.conf
@nicopace
nicopace / # LibreMesh Dependency Tree
Last active November 6, 2018 10:49
LibreMesh Dependency Tree
python ./deptree.py 17.01.4/ar71xx/generic/ib/packages/ # run from the base of lime-sdk
paste the content of deptree1.dot in this web https://dreampuf.github.io/GraphvizOnline/
Or you can use this online visualizer:
https://www.yworks.com/yed-live/?file=https://gist.githubusercontent.com/nicopace/1539db17b71b239bf17b9cea47385348/raw/ba263283810f8b57fe1e525b5a83f5936b4429e9/deptree1.dot
@nicopace
nicopace / script
Created October 27, 2018 08:13
Back To Basics: Making Your Own Connections
# Back To Basics: Making Your Own Connections
## What will happen in your session?
Participants will learn how to build a do-it-yourself Internet connection using mesh technologies.
Nico Pace will lead a hands-on session using open source hardware WiFi router to create a network onstage, work with participants to build a peer-to-peer platform, stream videos and even show how peer-to-peer instant messaging can happen.
It will be all about tinkering, exploring possibilities, and showing how anyone, anywhere, can connect their community.
@nicopace
nicopace / ssb identity
Created October 25, 2018 07:14
my ssb identity
@2AWm36HvcuOOcYeNgGgoybKXcMZx+COIf4/aAxJwnVI=.ed25519
@nicopace
nicopace / howto.md
Created February 22, 2018 03:02
Install Debian from network

Based on https://sowhatisthesolution.wordpress.com/2016/03/13/headless-debian-install-via-ssh/

wget https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-9.3.0-amd64-netinst.iso
sudo mount -o loop -t iso9660 debian-9.3.0-amd64-netinst.iso isoorig/
mkdir isonew
rsync -a -H –exclude=TRANS.TBL isoorig/ isonew
cd isonew
# edit all files defined here
mkisofs -o ../custom_install.iso -r -J -no-emul-boot -boot-load-size 4 -boot-info-table -b isolinux/isolinux.bin -c isolinux/boot.cat ../isonew
@nicopace
nicopace / any.sslreq.conf
Created February 13, 2018 14:28
Generate self signed wildcard certificate
[ req ]
default_bits = 2048
default_keyfile = server-key.pem
distinguished_name = subject
req_extensions = req_ext
x509_extensions = x509_ext
string_mask = utf8only
[ subject ]
@nicopace
nicopace / generate-cert.sh
Created February 13, 2018 13:55
Generate mock root certificate without console interaction
#!/bin/bash
PRIVATE_KEY_PASS=1234
openssl genrsa -des3 -out myCA.key -passout pass:$PRIVATE_KEY_PASS 2048
openssl req -x509 -new -nodes -key myCA.key -sha256 -days 1825 -out myCA.pem -passin pass:$PRIVATE_KEY_PASS -multivalue-rdn -subj /CN=My\ Name/OU=My\ Organization/emailAddress=someone@somewhere.org
echo 'A pass generated in myCA.key and a root cert in myCA.pem'
@nicopace
nicopace / get-feeds.sh
Last active January 5, 2018 19:10
lime-sdk get-feeds
#!/bin/sh
for repodir in `ls -d */`; do
cd $repodir;
repo=${repodir%?} #one char less
echo src-git $repo `git config --get remote.origin.url`^`git rev-parse HEAD`;
cd ..;
done