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
// Convert UIColor to Color | |
import SwiftUI | |
extension UIColor { | |
var color: Color { | |
get { | |
let rgbColours = self.cgColor.components | |
return Color( | |
red: Double(rgbColours![0]), |
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
# Arch Linux Setup: https://gist.github.com/kevinkub/46ce7229ee4f17be710ddd7c5a80a3c3 | |
# Change root password | |
echo "# Change password of root user" | |
passwd | |
# Change hostname | |
echo "# Change hostname" | |
hostname | |
hostname $hostname |
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 | |
TXT_GREEN='\033[0;32m' | |
TXT_RED='\033[0;31m' | |
TXT_NC='\033[0m' | |
# Ask for continue | |
echo "This will reset all your local changes." | |
read -p "Are you sure you want to continue? (y/n) [y]" answer | |
answer=${answer:-y} |