This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Usage: | |
# sudo ID=1000 NAME=richard PASSWORD=azerty /bin/bash -c "$(curl -fsSL https://gist.github.com/RichardFevrier/6e515aaaadc5d3b72906be6f23689867/raw/macOS_cli_create_admin_user.sh)" | |
dscl . -create /Groups/$NAME | |
dscl . -create /Groups/$NAME gid $ID | |
dscl . -create /Users/$NAME | |
dscl . -create /Users/$NAME UserShell /bin/zsh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env -S python3 -u | |
# -*- coding: utf-8 -*- | |
import subprocess | |
def _main() -> None: | |
installed_fedora_app_ids: list[str] = [] | |
process = subprocess.Popen(['flatpak', 'list', '--columns=application,origin'], stdout=subprocess.PIPE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
Dir.glob("**/*/") do |filepath| | |
if File.exist?("#{filepath}.git/") | |
`cd #{Dir.pwd}/#{filepath} && git gc` | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
Dir.glob("**/*/") do |filepath| | |
if File.exist?("#{filepath}.git/lfs/") | |
`cd #{Dir.pwd}/#{filepath} && git lfs prune` | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BasedOnStyle: LLVM | |
BreakBeforeBraces: Linux | |
ColumnLimit: 135 # fine with a macbook pro 15" screen | |
IndentWidth: 4 | |
IndentWrappedFunctionNames: true | |
MaxEmptyLinesToKeep: 2 | |
ObjCBinPackProtocolList: Always | |
ObjCBlockIndentWidth: 4 | |
ObjCSpaceAfterProperty: true | |
ObjCSpaceBeforeProtocolList: true |