Skip to content

Instantly share code, notes, and snippets.

View init.sh
#!/bin/sh
# Install Docker
curl -sSL get.docker.com | sh && \
sudo usermod pi -aG docker
# Disable Swap
sudo dphys-swapfile swapoff && \
sudo dphys-swapfile uninstall && \
sudo update-rc.d dphys-swapfile remove
@jtcmedia
jtcmedia / net-init.sh
Last active Aug 24, 2018 — forked from kaspernissen/hostname_and_ip.sh
Script for configuring hostname and static ip of rasbian
View net-init.sh
#!/bin/sh
hostname=$1 # k8s-node-X
ip=$2 # should be of format: 10.0.0.X
# Change the hostname
sudo hostnamectl set-hostname $hostname
sudo sed -i s/raspberrypi/$hostname/g /etc/hosts
# Set the static ip
@jtcmedia
jtcmedia / about.md
Created Apr 9, 2018 — forked from robfe/about.md
Running localstack in docker for windows with persistence enabled
View about.md

Running localstack in docker for windows with persistence enabled

Running on Docker for Windows

Localstack comes with a docker-compose file that won't quite work when you're running the (linux) container in docker for Windows.

Two changes need to be made:

The docker.sock volume won't work on windows

We can just comment that line out:

@jtcmedia
jtcmedia / open_powershell_here.md
Last active Dec 10, 2017 — forked from davecan/open_powershell_here.md
How to enable "Open PowerShell Here" context menu in Windows 10
View open_powershell_here.md
@jtcmedia
jtcmedia / Update-AUPackages.md
Last active Jul 13, 2020
Update-AUPackages Report #powershell #chocolatey
View Update-AUPackages.md
You can’t perform that action at this time.