Skip to content

Instantly share code, notes, and snippets.

View NickMcSweeney's full-sized avatar

Nick NickMcSweeney

  • MapXact
  • Arnhem, NL
View GitHub Profile
@NickMcSweeney
NickMcSweeney / ubtouch_begonia.md
Last active January 15, 2024 11:35
Ubuntu Touch Notes For Redme Note 8 Pro (Begonia)

Installing the OS

Unlock the phone

Needs to be done in a Windows system. Only needs to be done once.

  1. Create a Mi account on Xiaomi’s website. Beware that one account is only allowed to unlock one unique device every 30 days.
  2. Add a phone number to your Mi account.
  3. Insert a SIM into your phone.
  4. Enable developer options in Settings > About Phone by repeatedly tapping MIUI Version.
  5. Link the device to your Mi account in Settings > Additional settings > Developer options > Mi Unlock status.
@NickMcSweeney
NickMcSweeney / Arch Linux -- with Encryptions.md
Last active December 13, 2023 01:53
Arch linux system install with encryption and external key files

Encrypted Arch Linux that might still be useable: A Guide

gpt format, with UEFI boot system and encrypted root

Goal:

  • install arch linux as a single partition with lvm partition for boot, root, home, swap, and hibernation virtual partitions.
  • encrypt the entire system
  • unlock encryption with usb key
  • setup a light weight i3 desktop environment

Other Resources

@NickMcSweeney
NickMcSweeney / postgresql_plus_arch-linux.md
Last active May 1, 2024 14:23
Getting postgresql running on Arch Linux

Setup Postgresql

run postgresql with systemctl

Install postgres

latest

sudo pacman -S postgresql

specific version

find version & build from source

@NickMcSweeney
NickMcSweeney / nodejs_plus_arch-linux.md
Created June 28, 2018 20:12
Getting nodejs & npm setup on Arch Linux

Setup

IMPORTANT use nvm to install everything or your permisions will be all sorts of messed up.

install nvm

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash

configure nvm

export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm

confirm install was done corectly

@NickMcSweeney
NickMcSweeney / Arch_Setup.md
Last active March 27, 2024 17:35
Instructions for setting up fresh Arch linux install

Arch Linux Guide

gpt format, with UEFI boot system and encrypted root

Notes

This will work for SD card instalaition as well as a standard install. To install on an SD card the boot and efi partitions must remain on the main hard drive. Replace /dev/sdX with /dev/mmcblk0 for the root partition using /dev/mmcblk0p1 in place of /dev/sdX3.

Other Resources

Download arch to usb & boot

@NickMcSweeney
NickMcSweeney / keybase.md
Created June 21, 2018 20:55
Keybase proof

Keybase proof

I hereby claim:

  • I am nickmcsweeney on github.
  • I am shindler25 (https://keybase.io/shindler25) on keybase.
  • I have a public key ASAMBnHwE4GMFMBDTUZqWkqml-Gz-ee4glr_uSZyx0CHkQo

To claim this, I am signing this object:

@NickMcSweeney
NickMcSweeney / bundle.js
Created February 13, 2017 19:13
my web page
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
// shim for using process in browser
var process = module.exports = {};
// cached from whatever global is present so that test runners that stub it
// don't break things. But we need to wrap it in a try catch in case it is
// wrapped in strict mode code which doesn't define any globals. It's inside a
// function because try/catches deoptimize in certain engines.
var cachedSetTimeout;