Skip to content

Instantly share code, notes, and snippets.

arp -na | grep -i "b8:27:eb"
arp -na | grep -i "dc:a6:32"
# generate actual sources.list with sed "s/DIST/`lsb_release -c -s`/g" sources.list.init7.template
# main
deb http://mirror.init7.net/ubuntu/ DIST main restricted
deb-src http://mirror.init7.net/ubuntu/ DIST main restricted
deb http://mirror.init7.net/ubuntu/ DIST-updates main restricted
deb-src http://mirror.init7.net/ubuntu/ DIST-updates main restricted
deb http://mirror.init7.net/ubuntu/ DIST-security main restricted
# universe
@metebalci
metebalci / mod4init7.sh
Created October 31, 2022 20:36
change apt to init7
sed 's/archive.ubuntu.com/mirror.init7.net/g' /etc/apt/sources.list | sed 's/security.ubuntu.com/mirror.init7.net/g' > /tmp/sources.list
@metebalci
metebalci / pre-commit.license_check.sample
Last active November 19, 2023 06:23
pre-commit hook to check licenses
#!/bin/sh
for fname in *.c *.h *.ld *.py Makefile README.md
do
grep -L "SPDX-License-Identifier: Apache-2.0" $fname
if [ $? -ne 0 ]
then
echo "LICENSE in $fname is not NOK. Run 'make fixlicenses'."
exit 1
fi