Value | Color |
---|---|
\e[0;30m | Black |
\e[0;31m | Red |
\e[0;32m | Green |
\e[0;33m | Yellow |
\e[0;34m | Blue |
\e[0;35m | Purple |
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 | |
AWS_ACCOUNT_ID=012345678901 | |
# Check if jq is installed | |
if ! command -v jq &> /dev/null; then | |
echo "Error: jq is not installed. Please install jq to parse JSON." | |
exit 1 | |
fi |
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
#include <stdio.h> | |
#include <fcntl.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
void help(char* curbin) { | |
fprintf(stderr, "%s x86_bin arm64_output\n", curbin); | |
} | |
int main(int argc, char** argv) { |
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
brew install --cask visual-studio-code | |
brew install --cask iterm2 | |
brew install --cask alfred | |
brew install --cask istat-menus | |
brew install --cask hiddenbar | |
# Shell | |
echo 'alias l="ls -lashF"' >> ~/.zshrc |
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 | |
##################################################################### | |
# | |
# A macOS dev env setup script updated for a Big Sur | |
# install (08/2021). There isn't anything macos specific in here | |
# though, i just haven't tested it elsewhere. | |
# | |
# I have a seperate script that setups a fresh macOS install with | |
# a useful set of software applicatiions that you might want to run |
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 | |
##################################################################### | |
# | |
# A macOS software bootstrap script updated for a Big Sur | |
# install (08/2021). | |
# | |
# I have a seperate script that setups zsh and installs programming | |
# language toolchains that you would run after this if you are in | |
# software development game. |
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
↗ |
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 | |
# @params $1: APP_NAME | |
# @params $2: ICON_PATH | |
# set-icon.sh Slack /usr/share/pixmaps/slack.png | |
# Note: Make sure xseticon is installed on your system | |
# If not installed: https://github.com/xeyownt/xseticon | |
# Either/usr/bin or /usr/local/bin is fine for script directory | |
# sudo cp set-icon.sh /usr/bin |
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
version: "3.6" | |
networks: | |
macvlan_network: | |
driver: macvlan | |
driver_opts: | |
parent: eth01 | |
ipam: | |
config: | |
- subnet: 192.168.1.0/24 |
QNAP NAS model TS-453 Pro has limited documentation on how to control its various peripherals, namely:
- the front LCD display, a 2 row, 16 column blue & white LCD display, and its two menu buttons ("ENTER", "SELECT")
- the front LEDs "STATUS" (red & green) & "USB" (blue)
- the 4 "disk error" LEDs (red)
- the front "USB COPY" button
- the main rear fan
NewerOlder