Skip to content

Instantly share code, notes, and snippets.

View apietsch's full-sized avatar

Alexander Pietsch apietsch

View GitHub Profile
@apietsch
apietsch / postgres-docker-with-macos.md
Last active December 28, 2021 16:35
How postgres docker with macos

postgres docker macos

Tasks

  • create directories holding the data later on
  • create network
  • start container

mkdir:

/Users/[your_username]/Develop
@echo off
echo.
echo.
ECHO Checking for an Internet connection, please wait...
PING -n 1 www.google.com|find "Reply from " >NUL
IF NOT ERRORLEVEL 1 goto :SUCCESS
IF ERRORLEVEL 1 goto :TRYAGAIN
:TRYAGAIN
echo.
@apietsch
apietsch / docker-volume-migration.md
Created March 6, 2019 15:27 — forked from andrius/docker-volume-migration.md
#howto rename #docker volume

Say, folder with docker-compose files was renamed or we do merging volumes etc. Then we shall rename docker volume. Because docker natively does not support renaming, we shall create it, then copy data, then inspect new volume, test and delete old one at the end

Volumes:

docker volume ls
@apietsch
apietsch / raspberry-pi-vpn-router.md
Created January 18, 2019 15:59 — forked from superjamie/raspberry-pi-vpn-router.md
Raspberry Pi VPN Router

Raspberry Pi VPN Router

This is a quick-and-dirty guide to setting up a Raspberry Pi as a "router on a stick" to PrivateInternetAccess VPN.

Requirements

Install Raspbian Jessie (2016-05-27-raspbian-jessie.img) to your Pi's sdcard.

Use the Raspberry Pi Configuration tool or sudo raspi-config to:

@apietsch
apietsch / endpoints.md
Created January 13, 2019 11:18 — forked from derhuerst/_.md
List of HAFAS API Endpoints
@apietsch
apietsch / understanding-word-vectors.ipynb
Created March 20, 2018 11:01 — forked from aparrish/understanding-word-vectors.ipynb
Understanding word vectors: A tutorial for "Reading and Writing Electronic Text," a class I teach at ITP. (Python 2.7) Code examples released under CC0 https://creativecommons.org/choose/zero/, other text released under CC BY 4.0 https://creativecommons.org/licenses/by/4.0/
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
FROM ubuntu:14.04
RUN apt-get update && apt-get -y install git libssl-dev libpam0g-dev zlib1g-dev dh-autoreconf
COPY . /shellinabox
WORKDIR /shellinabox
RUN autoreconf -i
RUN ./configure && make
RUN useradd -m user
USER user
EXPOSE 4200
@apietsch
apietsch / mac-vendor.txt
Created January 21, 2018 10:23 — forked from aallan/mac-vendor.txt
List of MAC addresses with vendors identities
000000 Officially Xerox
000001 SuperLAN-2U
000002 BBN (was internal usage only, no longer used)
000003 XEROX CORPORATION
000004 XEROX CORPORATION
000005 XEROX CORPORATION
000006 XEROX CORPORATION
000007 XEROX CORPORATION
000008 XEROX CORPORATION
000009 powerpipes?