Skip to content

Instantly share code, notes, and snippets.

View arag0re's full-sized avatar
🍫
i may be slow to respond

arag0re.eth arag0re

🍫
i may be slow to respond
View GitHub Profile
@arag0re
arag0re / configuration.yaml
Last active September 24, 2024 17:35
Lg webOS Dev Mode extender script
homeassistant:
external_url: "https://homeassi.local"
internal_url: "http://192.168.178.1:8123"
automation:
- alias: "Turn On Living Room TV with WakeOnLan"
trigger:
- platform: webostv.turn_on
entity_id: media_player.tv
action:
@arag0re
arag0re / widevine-flash_arm64.sh
Created March 21, 2024 19:19 — forked from teacupx/widevine-flash_arm64.sh
Fetches a ChromeOS image for ARM and extracts the Widevine and Flash binaries, saving them in a compressed archive
#!/bin/sh -eu
# Make sure we have wget or curl
available () {
command -v "$1" >/dev/null 2>&1
}
if available wget; then
DL="wget -O-"
DL_SL="wget -qO-"
elif available curl; then
@arag0re
arag0re / docker-compose-systemd-unit.md
Created February 23, 2024 15:59 — forked from aslafy-z/docker-compose-systemd-unit.md
Add doker-compose as a systemd unit

Docker compose as a systemd unit

Create file /etc/systemd/system/[email protected]

[Unit]
Description=%i service with docker compose
# Requires=docker.service
# After=docker.service
@arag0re
arag0re / RPIwithQEMU.md
Created February 11, 2024 01:35 — forked from plembo/RPIwithQEMU.md
Emulating a Raspberry Pi with QEMU

Emulating a Raspberry Pi with QEMU

Goal: Emulate a Raspberry Pi with QEMU in order to run the Raspbian O/S (based on Debian Linux).

The current setup is not ideal. For one thing, the maximum RAM allowed using the "versatile-pb" firmware is 256 Mb. In addition, only the most basic peripherals, a keyboard and mouse, are supported.

A number of articles have been written on this topic. Most are outdated, and the few recent ones are missing key information.

@arag0re
arag0re / ghpwithnamecheap.md
Created January 15, 2024 11:14 — forked from plembo/ghpwithnamecheap.md
GitHub Pages with Namecheap custom domain

Using GitHub Pages with a custom domain: Namecheap Edition

As often happens, I found the official documentation and forum answers to be "close, but no cigar", and so had to experiment a little to get things working.

The main problem for me was a lack of concrete configuration examples. That's not entirely GitHub's fault: having migrated from Google Domains to Namecheap in the middle of this project, I was once again reminded of how many different ways there are to do things in the name service universe [1].

Although you'd think the simplest setup would be to merely configure for the subdomain case (https://www.example.com), in my experience using the apex domain (https://example.com) instead resulted in fewer complications.

Procedure

So here's my recipe for using a custom domain with GitHub pages where Namecheap is the DNS provider:

@arag0re
arag0re / getData.sh
Created September 21, 2023 06:47
Duckyscript macOS
#! /bin/bash
# Read useful data
clear
echo "[ ] 0%"
date=$(date "+%Y-%m-%d-%H-%M")
clear
echo "[# ] 5%"
user=$(whoami)
clear
@arag0re
arag0re / getAppleID.sh
Created September 21, 2023 06:46
get apple id info terminal
defaults read MobileMeAccounts Accounts
@arag0re
arag0re / ports.sh
Created September 21, 2023 06:42
get all open ipv4 ports on mac
lsof -Pn -i4 | grep LISTEN
@arag0re
arag0re / darkmode.ps1
Last active May 22, 2023 20:08
darkmode.ps1
Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize -Name AppsUseLightTheme -Value 0
@arag0re
arag0re / raspi-install-guide.md
Created November 30, 2022 20:53
raspi-install-guide.md

Raspberry Pi Initial Install- & Setup-Guide

  • In this guide you will learn to setup a raspi as dev-server powered by openSSH and VSCode
  • You will need a working internet-connection for inital setup

Steps:

  1. Insert your microSD-Card into the appropriat reader (fresh cards need to be formatted first so they are mountable for the OS, format them as fat32).
  2. Turn on your sound on your pc and turn volume up a bit. (important for later)
  3. Download Raspberry Pi Imager for Windows.
  4. Install the app and open it afterwards.