Skip to content

Commit

Permalink
Merge branch 'master' of github.com:Maxattax97/miscellaneous
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxattax97 committed Oct 20, 2024
2 parents a0c7fab + e591f4e commit 0fe2a20
Show file tree
Hide file tree
Showing 84 changed files with 3,867 additions and 1,521 deletions.
3 changes: 2 additions & 1 deletion .Xdefaults
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ st*selectToClipboard: true
st*disallowedWindowOps: 20,21,SetXprop
! st.termname: st-256color
st.borderpx: 0
st.font: Hack Nerd Font Mono:size=9:antialias=true:autohint=true
st.font: Hack Nerd Font Mono:pixelsize=12:antialias=true:autohint=true
st.alpha: 0.9
st.alphaOffset: 0.0
st.alphaUnfocus: 0.0
Expand All @@ -132,6 +132,7 @@ Xft.antialias: 1
Xft.hinting: true
!Xft.hintstyle: hintslight
Xft.hintstyle: hintfull
/* This is the default DPI and unfortunately does not scale according to Gnome: */
Xft.dpi: 96
!Xft.rgba: rgb
Xft.rgba: none
Expand Down
13 changes: 13 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
##### MOCULL AUTOGENERATED ### DO NOT EDIT #####
# Using [[shell]] rather than [*.sh] will capture files with no extension
[[shell]]
# Used by shfmt
indent_style = space
indent_size = 4
;shell_variant = posix
binary_next_line = true
switch_case_indent = true
space_redirects = true
;keep_padding = true
simplify = true
##### END MOCULL AUTOGENERATED ### DO NOT EDIT #####
5 changes: 5 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
##### MOCULL AUTOGENERATED ### DO NOT EDIT #####
[flake8]
extend-ignore = E203
max-line-length = 88
##### END MOCULL AUTOGENERATED ### DO NOT EDIT #####
80 changes: 80 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,83 @@
/config/shell_gpt/roles/veronica.json filter=git-crypt diff=git-crypt
/config/weechat/sec.conf filter=git-crypt diff=git-crypt
/scripts/supermicro_ipmi.sh filter=git-crypt diff=git-crypt

##### MOCULL AUTOGENERATED ### DO NOT EDIT #####
# Images
*.png filter=lfs diff=lfs merge=lfs -text
*.jpg filter=lfs diff=lfs merge=lfs -text
*.jpeg filter=lfs diff=lfs merge=lfs -text
*.gif filter=lfs diff=lfs merge=lfs -text
*.bmp filter=lfs diff=lfs merge=lfs -text
*.tiff filter=lfs diff=lfs merge=lfs -text
*.ico filter=lfs diff=lfs merge=lfs -text

# Audio
*.mp3 filter=lfs diff=lfs merge=lfs -text
*.wav filter=lfs diff=lfs merge=lfs -text
*.ogg filter=lfs diff=lfs merge=lfs -text
*.m4a filter=lfs diff=lfs merge=lfs -text
*.flac filter=lfs diff=lfs merge=lfs -text

# Video
*.mp4 filter=lfs diff=lfs merge=lfs -text
*.mov filter=lfs diff=lfs merge=lfs -text
*.avi filter=lfs diff=lfs merge=lfs -text
*.flv filter=lfs diff=lfs merge=lfs -text
*.wmv filter=lfs diff=lfs merge=lfs -text
*.mpeg filter=lfs diff=lfs merge=lfs -text
*.mkv filter=lfs diff=lfs merge=lfs -text

# Archives
*.zip filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.rar filter=lfs diff=lfs merge=lfs -text
*.7z filter=lfs diff=lfs merge=lfs -text
*.tar filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text

# Large data
*.csv filter=lfs diff=lfs merge=lfs -text
*.xml filter=lfs diff=lfs merge=lfs -text

# Disabled because these are often used for settings:
# *.json filter=lfs diff=lfs merge=lfs -text

# Executables and libraries
*.exe filter=lfs diff=lfs merge=lfs -text
*.dll filter=lfs diff=lfs merge=lfs -text
*.so filter=lfs diff=lfs merge=lfs -text
*.dylib filter=lfs diff=lfs merge=lfs -text

# Fonts
*.ttf filter=lfs diff=lfs merge=lfs -text
*.otf filter=lfs diff=lfs merge=lfs -text

# 3D Models
*.obj filter=lfs diff=lfs merge=lfs -text
*.fbx filter=lfs diff=lfs merge=lfs -text
*.stl filter=lfs diff=lfs merge=lfs -text

# Design files
*.psd filter=lfs diff=lfs merge=lfs -text
*.ai filter=lfs diff=lfs merge=lfs -text

# Documents
*.pdf filter=lfs diff=lfs merge=lfs -text

# Packet Captures
*.pcap filter=lfs diff=lfs merge=lfs -text
*.pcapng filter=lfs diff=lfs merge=lfs -text
*.cap filter=lfs diff=lfs merge=lfs -text
*.dmp filter=lfs diff=lfs merge=lfs -text
*.5vw filter=lfs diff=lfs merge=lfs -text
*.pkt filter=lfs diff=lfs merge=lfs -text
*.net filter=lfs diff=lfs merge=lfs -text

# Various Binaries
*.bin filter=lfs diff=lfs merge=lfs -text
*.dat filter=lfs diff=lfs merge=lfs -text
*.bit filter=lfs diff=lfs merge=lfs -text
*.sqlite filter=lfs diff=lfs merge=lfs -text
*.db filter=lfs diff=lfs merge=lfs -text
##### END MOCULL AUTOGENERATED ### DO NOT EDIT #####
187 changes: 179 additions & 8 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,10 @@
name: Lint Build Publish

on: # yamllint disable-line rule:truthy
push: null
pull_request: null

permissions: {}

push:
pull_request:
jobs:
build:
lint:
name: Lint
runs-on: ubuntu-latest

Expand All @@ -31,10 +28,183 @@ jobs:
env:
# To report GitHub Actions status checks
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# JSCPD is actually finding valid duplicates... but it sucks to fix right now.
VALIDATE_JSCPD: false
# Ignore files which are scratch notes, encrypted
# https://regex101.com/r/b2rUJw/2
FILTER_REGEX_EXCLUDE: \.sample-secret\.md|\/config\/(shell_gpt\/roles\/|weechat\/.*(pl|py|lua)|awesome\/.*lua)|\/scripts\/supermicro_ipmi\.sh|notes\/.*\.md

- name: Check .zshrc source idempotency
run: ./test/source_idempotency.zsh

build-archlinux:
name: Arch Linux Docker Image
runs-on: ubuntu-latest

permissions:
contents: read
packages: read

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
# super-linter needs the full git history to get the
# list of files that changed across commits
fetch-depth: 0

- name: Log in to Docker Hub
uses: docker/[email protected]
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_ACCESS_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/[email protected]
with:
images: dotfiles
tags: latest,archlinux

- name: Build and push Docker image
uses: docker/[email protected]
with:
context: .
file: ./Dockerfile.archlinux
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

build-fedora:
name: Fedora Docker Image
runs-on: ubuntu-latest

permissions:
contents: read
packages: read

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
# super-linter needs the full git history to get the
# list of files that changed across commits
fetch-depth: 0

- name: Log in to Docker Hub
uses: docker/[email protected]
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_ACCESS_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/[email protected]
with:
images: dotfiles
tags: fedora

- name: Build and push Docker image
uses: docker/[email protected]
with:
context: .
file: ./Dockerfile.fedora
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

build-gentoo:
name: Gentoo Docker Image
runs-on: ubuntu-latest

permissions:
contents: read
packages: read

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
# super-linter needs the full git history to get the
# list of files that changed across commits
fetch-depth: 0

- name: Log in to Docker Hub
uses: docker/[email protected]
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_ACCESS_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/[email protected]
with:
images: dotfiles
tags: gentoo

- name: Build and push Docker image
uses: docker/[email protected]
with:
context: .
file: ./Dockerfile.gentoo
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

build-debian:
name: Debian Docker Image
runs-on: ubuntu-latest

permissions:
contents: read
packages: read

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
# super-linter needs the full git history to get the
# list of files that changed across commits
fetch-depth: 0

- name: Log in to Docker Hub
uses: docker/[email protected]
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_ACCESS_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/[email protected]
with:
images: dotfiles
tags: debian

- name: Build and push Docker image
uses: docker/[email protected]
with:
context: .
file: ./Dockerfile.debian
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

build-brew:
name: Brew Docker Image
runs-on: ubuntu-latest

permissions:
contents: read
packages: read

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
# super-linter needs the full git history to get the
# list of files that changed across commits
fetch-depth: 0

- name: Log in to Docker Hub
uses: docker/[email protected]
with:
Expand All @@ -45,13 +215,14 @@ jobs:
id: meta
uses: docker/[email protected]
with:
images: dotfiles:latest
images: dotfiles
tags: brew

- name: Build and push Docker image
uses: docker/[email protected]
with:
context: .
file: ./Dockerfile
file: ./Dockerfile.brew
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
Loading

0 comments on commit 0fe2a20

Please sign in to comment.