Skip to content

Instantly share code, notes, and snippets.

@bullshit
bullshit / Install Docker on Raspberry Pi (Arch Linux).md
Created April 11, 2014 21:22
Install Docker on Raspberry Pi (Arch Linux)

Install Docker on Raspberry Pi (Arch Linux)

Prepare SD Card

  1. Download Image
  2. Unzip Image
  3. Copy Image on SD Card (dd if=./ArchLinuxARM-2014.03-rpi.img of=/dev/disk2)
  4. Boot Raspberry Pi

Connect to Pi

  1. Find out IP
@SeanChristopherConway
SeanChristopherConway / docker-compose.yaml
Last active June 15, 2022 00:30
Docker Pihole with unbound for authoritative, validating, recursive caching DNS
version: "3.7"
services:
pihole:
container_name: pihole
image: pihole/pihole:latest
dns: 127.0.0.1
restart: unless-stopped
links:
- unbound
@Jimmy-Z
Jimmy-Z / services-start.sh
Created February 28, 2019 08:42
multi SSID with VLAN script, for ASUS AC86U with merlin
#!/bin/sh
# multi SSID with VLAN script, for ASUS AC86U with merlin
#
# setup before hand:
# set "router" to "AP Mode"
# this will put all ports and wireless in br0
# create 2 guest network
# enable Administration => System => Enable JFFS custom scripts and configs
# put this script in /jffs/scripts/, name should be "services-start"
@Juul
Juul / amazon_fire_2015_7_inc_lineageos_install.md
Last active June 23, 2024 17:51
How to install install LineageOS on a 2015 7" Amazon Fire tablet

This is a guide for getting LineageOS (an older and unofficial version) onto an Amazon Fire 2015 7" tablet (also known as the 5th generation 7" Amazon Fire or under the internal codename "ford").

NOTE: This guide was originally written before someone figured out how to unlock the bootloader. There is now a newer method. Here it is very briefly. The old guide can be found below.

Unlocked bootloader method

First unlock the bootloader using this guide.

Once you're booted into TWRP download the latest LineageOS 14 release for your device here.

@bigheadsmith
bigheadsmith / Cloudflare DNS Updater
Last active January 9, 2023 00:13 — forked from badrianiulian/README.md
Cloudflare DNS Updater. Multi-zone, multi-record. IPv4 & IPv6 compatible. Bash replacement for ddclient using Cloudflare API4
# Cloudflare DDNS bash client with systemd
This is a bash script to act as a Cloudflare DDNS client, useful replacement for ddclient.
# Requirements
- curl
- jq
# How to use?
1) Move `cfupdater.sh` to `/usr/local/bin/cfupdater`.
```
@enuno
enuno / unifi-lets-encrypt.sh
Created November 27, 2019 16:01
unifi cloud key letsencrypt script
#!/bin/bash
# UniFi Let's Encrypt script.
# Version | 1.1.3
# Author | Glenn Rietveld
# Email | glennrietveld8@hotmail.nl
# Website | https://GlennR.nl
###################################################################################################################################################################################################
# #
@midibyte
midibyte / gibbons.sh
Created July 5, 2020 11:21
Get some simple CPU and GPU info for a Raspberry Pi
#!/bin/bash
# @midibyte
# (^ V ^)
# tested on Rpi zero W
min_freq=$(sudo cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq)
max_freq=$(sudo cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq)
current_freq=$(sudo cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq)
cpu=$(</sys/class/thermal/thermal_zone0/temp)
@midibyte
midibyte / list_all_cronjobs.sh
Created July 10, 2020 10:26
list all cron jobs
#!/bin/bash
# System-wide crontab file and cron job directory. Change these for your system.
CRONTAB='/etc/crontab'
CRONDIR='/etc/cron.d'
# Single tab character. Annoyingly necessary.
tab=$(echo -en "\t")
# Given a stream of crontab lines, exclude non-cron job lines, replace
@XSystem252
XSystem252 / RaspberryPi4Archlinux64EncryptionUSBBootBtrfsGuide.md
Last active July 5, 2024 02:33
How To Set Up a Raspberry Pi 4 with Archlinux 64-bit (AArch64) and Full Disk Encryption (+SSH unlock), USB Boot (No SD-Card) and btrfs

How To Set Up a Raspberry Pi 4 with Archlinux 64-bit (AArch64) and Full Disk Encryption (+SSH unlock), USB Boot (No SD-Card) and btrfs

Written by: XSystem
First published on: 20 Dec 2020
Last updated on: 20 Dec 2020

[0] Introduction

Overview

@russelltadams
russelltadams / gist:de3a05ebcdcd08394ad1720466f00252
Last active January 17, 2024 10:30
Flash IT mode firmware onto 9220-8i, good luck!
LSI 9220-8i flash to IT firmware via UEFI shell.
Format USB stick to FAT
Put FreeDOS on it via UNebootin
Get a copy of Shell_Full.efi v1. It must not be version 2. Do "ver" in the shell to see.
Put a copy of Shell_Full.efi in the root, and in "/efi/boot" and rename them to "bootx64.efi"
Some say depending on your bios/mobo you may need to use "shellx64.efi" and/or "/boot/efi".
Copy contents of LSI_DOS into the root of the stick
Copy choses firmware on to the stick (2118it.bin and mptsas2.rom, perhaps)
Copy sas2flash.efi on to the stick