Skip to content

Instantly share code, notes, and snippets.

View lanefu's full-sized avatar
🏅
outstanding achievement in the field of excellence

lanefu

🏅
outstanding achievement in the field of excellence
View GitHub Profile
@lanefu
lanefu / temp_notes.md
Created February 16, 2020 14:30
temp release nodes.md
    Release notes - Armbian - Version 20.02

Task

  • [AR-46] - Support for single function run
  • [AR-47] - Adding Docker shell support
@lanefu
lanefu / crunch_on_arm.yaml
Created April 18, 2020 17:23
quick and dirty ansible playbook for crunch-on-arm
- hosts: [ 'all', '!excludehosts']
gather_facts: no
become: yes
vars:
boinc_account: CHANGEME
pre_tasks:
- name: install python
raw: '[[ $(python --version) ]] || apt update -y; apt install python -y'
@lanefu
lanefu / ESPHome.yml
Last active September 7, 2022 21:54
ESPHome multimode rotary encoder button
esphome:
name: magicbuttonboard
platform: ESP8266
board: d1_mini
on_boot:
priority: -100
then:
- lambda: id(magic_button_board_selection_mode).publish_state(false);
- lambda: id(magic_button_board_button_click).publish_state(false);
@lanefu
lanefu / checkoutGitHubPR.sh
Created May 21, 2020 01:25
Checkout pull request from GitHub repo.
#!/bin/bash
#ex: /usr/local/bin/checkoutGitHubPR.sh 1234
REMOTE_REPO=origin ## name of your git remote.. typically origin or upstream
MERGE_STATE=merge ## set to "merge" to checkout PR merged against repo, or set to "head" to checkout PR unmerged
PR=${1} ## github pull request number
git fetch -v ${REMOTE_REPO} +refs/pull/${PR}*:refs/remotes/${REMOTE_REPO}/pull/${PR}*
git checkout -f ${REMOTE_REPO}/pull/${PR}/${MERGE_STATE}
@lanefu
lanefu / fail2ban-apt-repo-abuse.md
Last active July 18, 2020 02:49
fail2ban apt repo abuse

fail2ban config for excessive apt update

apt install fail2ban

  • known issue: IPV6s fail to block with ufw banaction
  • currently only blocks stretch repo abuse.

see banned IPs

iptables -L ufw-user-input -n|fgrep REJECT

unban

fail2ban-client unban %IP%

@lanefu
lanefu / maint.md
Created July 23, 2020 16:29
Maintenace Page

Forums under maintenance Will be back shortly

Hello! We are migrating forums to a new host, will be available when DNS updates!

@lanefu
lanefu / mirror candidates.md
Last active July 28, 2020 13:56
armbian mirror candidates

we need mirrors.

can they replcate rsync.armbian.com::apt - 150G and rsync.armbian.com::dl 760GB-1TB ?

North America Mirror candidates

http://mirrors.gigenet.com    

This hardware and bandwidth for this mirror is donated by GigeNET as a service to the open-source community. If you are interested in having us mirror your open-source project, please reach out to [email protected].

http://plug-mirror.rcac.purdue.edu/info.html

The mirror is hosted on an Isilon box (dual Xeon L5410s, 28GB ram, 111TB disk [71TB usable], 10G network, running Debian) generously donated by Purdue's research computing group.

@lanefu
lanefu / devopsythings.md
Created July 28, 2020 18:37
List of Devopys Things I like
@lanefu
lanefu / btrfs_balance.sh
Created August 6, 2020 15:06
btrfs progressive balance
#!/bin/bash
diskpath=/
echo before
btrfs filesystem usage ${diskpath}
for i in 0 5 10 15 20 25 30 40 50 60 70 80 90 100
do
echo "${0}: Running with ${i}%"
btrfs filesystem usage ${diskpath}
@lanefu
lanefu / sd-seq-write.md
Last active January 1, 2021 21:58
SDcard sequentional write testing

sequentional write tests

hardware

  • pinebook pro
  • usb 3.0 ugreen sdcard reader

benchmark

  • write a random arnbian image approx 1.4G command time dd of=/dev/sdb if=Armbian_21.02.0-trunk-AR-512_Orangepioneplus_focal_dev_5.10.0.img bs=1M conf=fsync status=progress

tests