This file contains 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/sh | |
# MongoDB official community ed discontinued support of raspberry pi after mongod 4.4 | |
# We tried their steps from https://www.mongodb.com/docs/v4.4/tutorial/install-mongodb-on-ubuntu/ | |
# and the result is core dump; didn't matter for 20.04/18.04 images, all core dumps. | |
# Lesson learned, just use the old apt package provided by Ubuntu. | |
lxc launch ubuntu:20.04 mdb | |
lxc exec mdb -- bash |
This file contains 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
# To make sense, see the mailinglist archive item | |
# https://www.mail-archive.com/golang-nuts@googlegroups.com/msg47286.html | |
# Also, manage the mono repo fetch separately and avoid docker repeating the step | |
FROM ll0 | |
WORKDIR /opt | |
RUN tar -xzf git-09629215c272f09e3ebde6cc7eac9625d28910ff.tgz | |
RUN rm git-09629215c272f09e3ebde6cc7eac9625d28910ff.tgz |
This file contains 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/sh | |
# after : sudo systemctl stop/disable wpa_supplicant.service | |
##sudo wpa_cli terminate | |
##sleep 2 | |
sudo wpa_supplicant -B -iwlan0 -c $HOME/.config/wlan0.wpa | |
sleep 5 | |
sudo dhclient -v -cf $HOME/.config/dhclient.conf wlan0 |
This file contains 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/sh | |
#see https://help.ubuntu.com/community/BackupYourSystem | |
lsblk | |
sudo mount /dev/sda1 /media/usb | |
sudo su | |
tar -cvpzf /media/usb/backup.tar.gz --exclude=/media/usb --one-file-system / |
This file contains 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/sh | |
sudo apt update | |
sudo systemctl stop gdm3 | |
sudo systemctl disable gdm3.service | |
apt-cache showpkg gdm3 | |
sudo apt-get --purge remove ubuntu-desktop-minimal ubuntu-desktop gnome-shell gnome-settings-daemon gnome-initial-setup xscreensaver vanilla-gnome-desktop gnome-shell-bin |
This file contains 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/sh | |
startpg() { | |
postgresql10.pgctl -D $HOME/snap/postgresql10/common/data -l $HOME/snap/postgresql10/common/logs/logfile start | |
} | |
stoppg() { | |
postgresql10.pgctl -D $HOME/snap/postgresql10/common/data -l $HOME/snap/postgresql10/common/logs/logfile stop | |
} |
This file contains 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
FROM elixir:1.8 | |
ARG ZIPPROTOC=https://github.com/protocolbuffers/protobuf/releases/download/v3.6.1/protoc-3.6.1-linux-x86_64.zip | |
ARG TGZGOLANG=https://dl.google.com/go/go1.11.5.linux-amd64.tar.gz | |
ENV PATH=/root/.mix/escripts:/root/go/bin:/usr/local/go/bin:/usr/local/protoc/bin:$PATH | |
# We need to add golang since base image is now elixir | |
RUN curl -o golang.tar.gz -L $TGZGOLANG ; \ | |
tar -C /usr/local -xzf golang.tar.gz ; \ |
This file contains 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
#!/usr/bin/env bash | |
set -e | |
if [ "$EUID" -ne 0 ]; then | |
echo "This script uses functionality which requires root privileges" | |
exit 1 | |
fi | |
acbuild --debug begin |
This file contains 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
#ip link set wlp3s0 up | |
#iw dev wlp3s0 link | |
#ip link show wlp3s0 | |
#vi /etc/wpa_supplicant/example.conf: | |
ctrl_interface=/run/wpa_supplicant | |
update_config=1 | |
#wpa_supplicant -B -i wlp3s0 -c /etc/wpa_supplicant/example.conf |
This file contains 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
FROM golang:onbuild |
NewerOlder