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 / restart-ssh.sh
Created April 19, 2022 15:52
Restart SSH on Mac Terminal (High Sierra Method and Latest Method)
# high sierra
sudo launchctl stop com.openssh.sshd
sudo launchctl start com.openssh.sshd
# latest
sudo vim /etc/services # (update the port config for ssh and save)
sudo launchctl unload /System/Library/LaunchDaemons/ssh.plist
sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist
@arag0re
arag0re / Dockerfile
Last active June 21, 2022 14:22
Ubuntu 22.04 Docker Freeradius
FROM ubuntu:22.04
LABEL Maintainer=arag0re.eth
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get -y update
RUN apt-get install -y ssh zsh curl wget git libssl-dev ca-certificates sudo build-essential systemd dbus dbus-user-session python3 openssh-server openssh-client
RUN apt-get install -y python-is-python3 neofetch libnet-ssleay-perl libcrypt-ssleay-perl freeradius freeradius-utils eapoltest
RUN sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
RUN git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
RUN sed 's,plugins=(git)[^;]*,plugins=(git zsh-autosuggestions),' -i /root/.zshrc
RUN source /root/.zshrc | bash
@arag0re
arag0re / osx_extract_hash.py
Created July 3, 2022 21:22 — forked from teddziuba/osx_extract_hash.py
Extract a Mac OSX Catalina user's password hash as a hashcat-compatible string
#!/usr/bin/env python3
"""
Mac OSX Catalina User Password Hash Extractor
Extracts a user's password hash as a hashcat-compatible string.
Mac OSX Catalina (10.15) uses a salted SHA-512 PBKDF2 for storing user passwords
(hashcat type 7100), and it's saved in an annoying binary-plist-nested-inside-xml-plist
format, so previously reported methods for extracting the hash don't work.
@arag0re
arag0re / Keycodes.swift
Created October 17, 2022 20:12 — forked from swillits/Keycodes.swift
Swift Keyboard Keycodes
struct Keycode {
// Layout-independent Keys
// eg.These key codes are always the same key on all layouts.
static let returnKey : UInt16 = 0x24
static let enter : UInt16 = 0x4C
static let tab : UInt16 = 0x30
static let space : UInt16 = 0x31
static let delete : UInt16 = 0x33
static let escape : UInt16 = 0x35
@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.
@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 / ports.sh
Created September 21, 2023 06:42
get all open ipv4 ports on mac
lsof -Pn -i4 | grep LISTEN
@arag0re
arag0re / getAppleID.sh
Created September 21, 2023 06:46
get apple id info terminal
defaults read MobileMeAccounts Accounts
@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 / 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: