Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
cooldown:
default-days: 7
groups:
github-actions:
patterns:
- "*"
24 changes: 18 additions & 6 deletions .github/workflows/superlinter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,27 @@ name: Lint Code Base

#
# Documentation:
# https://help.github.com/en/articles/workflow-syntax-for-github-actions
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions
#

#############################
# Start the job on all push #
#############################
on:
push
push:
branches: [master, main]
pull_request:
branches: [master, main]

permissions:
contents: read
statuses: write

###############
# Set the Job #
###############
jobs:
build:
lint:
# Name the Job
name: Lint Code Base
# Set the agent to run on
Expand All @@ -35,14 +42,19 @@ jobs:
# Checkout the code base #
##########################
- name: Checkout Code
uses: actions/checkout@v2
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
# Full git history is needed to get a proper list of changed files
fetch-depth: 0
persist-credentials: false

################################
# Run Linter against code base #
################################
- name: Lint Code Base
uses: docker://github/super-linter:v3
uses: super-linter/super-linter@47984f49b4e87383eed97890fe2dca6063bbd9c3 # v8.3.1
env:
VALIDATE_ALL_CODEBASE: true
VALIDATE_ALL_CODEBASE: true
DEFAULT_BRANCH: master
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
LINTER_RULES_PATH: /
10 changes: 5 additions & 5 deletions BrewConfig.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

#Check If Brew Is Installed
if ! [ -x "$(command -v brew)" ]; then
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
else
brew update
brew upgrade
fi
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
else
brew update
brew upgrade
fi

# Install My Tools
brew install ack
Expand Down
17 changes: 11 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
# MacOS-Config
Simple shell scripts I use to tweak MacOS to my liking.

## Usage:
Simple shell scripts I use to tweak macOS to my liking.

- `BrewConfig.sh` Installs and updates HomeBrew and tools I like.
- `OSConfig.sh` Tweaks OS sittings to how I like them.
- `UnsplashBackground.sh` Downloads an amazing image from Unsplash and sets it as the background.
## Usage

- `BrewConfig.sh` Installs and updates Homebrew and tools I like.
- `OSConfig.sh` Tweaks OS sittings to how I like them.
- `UnsplashBackground.sh` Downloads an amazing image from Unsplash and sets it
as the background.

## Important Notice
I likely dont know what I am doing and this could be done faster, better and simpler some other way. These scripts could also break your MacBook and make you cry.

I likely dont know what I am doing and this could be done faster, better and
simpler some other way. These scripts could also break your MacBook and make
you cry.
2 changes: 1 addition & 1 deletion UnsplashBackground.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
mkdir -p ~/Pictures/Wallpapers/unsplash
rm -f ~/Pictures/Wallpapers/unsplash/"$(date +%F)".png
curl -s -L -o ~/Pictures/Wallpapers/unsplash/"$(date +%F)".png "https://unsplash.it/2560/1600/?random" > /dev/null
curl -s -L -o ~/Pictures/Wallpapers/unsplash/"$(date +%F)".png "https://unsplash.it/2560/1600/?random" >/dev/null
osascript -e "tell application \"System Events\" to set picture of every desktop to \"~/Pictures/Wallpapers/unsplash/$(date +%F).png\""
killall Dock
Loading