Skip to content

Instantly share code, notes, and snippets.

View douglasmiranda's full-sized avatar
👽

Douglas Miranda douglasmiranda

👽
  • Earth, Brazil
View GitHub Profile
@douglasmiranda
douglasmiranda / install.sh
Created August 22, 2017 00:43
Debian Stretch on Dell N4030
su
apt-get install sudo
usermod -a -G sudo <username>
# Install Broadcom drivers
https://gist.github.com/douglasmiranda/6607d9ddd09e294beb842b272fa329cb
@douglasmiranda
douglasmiranda / install.sh
Created August 22, 2017 00:42
Debian Stretch on Dell N4030 - Broadcom Drivers (at least wifi was not working)
# Open /etc/apt/sources.list and allow install non-free stuff
deb http://ftp.br.debian.org/debian/ stretch main contrib non-free
apt-get update
apt-get install broadcom-sta-dkms
setup-alpine
apk update
apk upgrade
lbu commit
rc-update add swclock boot
rc-update del hwclock boot
setup-ntp
@douglasmiranda
douglasmiranda / dietpi-pine-aarch64-docker.md
Created August 11, 2017 01:29
DietPi on Pine64 and running Docker aarch64

Flash an sd card with the Pine64 DietPi compatible on "Downloads" section. http://dietpi.com/

Configuring

  1. ssh into it: "Ok" and wait for initial update, it will reboot after
  2. It will start on config screen again, so enter DietPi-Config > Advanced Options > Update firmware
  3. Change DietPi-Config > locale, lang, keyboard configs if needed
  4. Go to DietPi-Config > Security Options and change root pass and hostname
  5. You could mark some software to install, switch ssh server and more, but I want a headless / server instalation, so I'll go to "Install" without choosing additional softwares to install, to finish my instalation.
@douglasmiranda
douglasmiranda / cleaning.sh
Created August 10, 2017 20:38
Find and remove .DS_Store and .AppleDouble / (Useful for cleaning external storages)
find PATH/ -depth -name ".DS_Store" -exec rm {} \;
find PATH/ -depth -name ".AppleDouble" -exec rm -Rf {} \;
@douglasmiranda
douglasmiranda / install.sh
Created August 7, 2017 06:35
Ubuntu, after fresh install
sudo apt-get update
sudo apt-get upgrade -y
sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo apt-get update
sudo apt-get install -y google-chrome-stable
# Remember: install / verify additional drivers
@douglasmiranda
douglasmiranda / macos_install.sh
Last active July 16, 2018 20:42
install packages - macos
#!/usr/bin/env bash
# Install Xcode Command Line Tools.
xcode-select --install
# Install Homebrew.
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# Install brew basics (auto-updating).
brew install terminal-notifier
# ~/.ssh/config
Host XXX
proxycommand ssh root@MYSERVER nc %h %p
hostname DESTINATIONSERVER
port 22
user DESTINATIONSERVER_USER
@douglasmiranda
douglasmiranda / docker.md
Last active January 30, 2018 11:21
Packaging Docker CE 17.07 aarch64 on Pine64 (DietPi)
git clone https://github.com/docker/docker-ce
git checkout 17.07

create the dockerfile

components/packaging/deb/debian-jessie/Dockerfile.aarch64

FROM arm64v8/debian:jessie-backports
@douglasmiranda
douglasmiranda / gist:8a8a7e34040acae162b9d8568d022410
Created July 29, 2017 23:29
Packaging docker aarch64 on Packet.net
https://github.com/sealsystems/arm-docker-engine-deb
git clone https://github.com/docker/docker-ce/
git checkout tags/X
# git checkout tags/v17.07.0-ce-rc1
cd docker-ce/components/packaging/deb
# make deb
# make ubuntu-xenial