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 | |
# Set up script with error handling | |
set -e | |
# install fuzzy finding | |
sudo apt install fzf | |
# install btop for resource monioring | |
sudo apt install snapd | |
sudo snap install core |
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
sudo apt-get update | |
sudo apt-get install ca-certificates curl | |
sudo install -m 0755 -d /etc/apt/keyrings | |
sudo curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc | |
sudo chmod a+r /etc/apt/keyrings/docker.asc | |
# Add the repository to Apt sources: | |
echo \ | |
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian \ | |
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \ |
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
sudo apt-get update | |
sudo apt install lsb-release curl gpg | |
curl -fsSL https://packages.redis.io/gpg | sudo gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpg | |
echo "deb [signed-by=/usr/share/keyrings/redis-archive-keyring.gpg] https://packages.redis.io/deb $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/redis.list | |
sudo apt-get update | |
sudo apt-get install redis |
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
[Unit] | |
Description=%i service with docker compose | |
PartOf=docker.service | |
After=docker.service | |
[Service] | |
Type=oneshot | |
RemainAfterExit=true | |
WorkingDirectory=/etc/docker/compose/%i | |
ExecStart=/usr/local/bin/docker compose up -d --remove-orphans --pull=always |
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 | |
# Set up script with error handling | |
# set -euo pipefail | |
set -e | |
# Update the package index | |
sudo apt-get update | |
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 | |
# Check if the correct number of arguments were provided | |
if [ "$#" -ne 3 ]; then | |
echo "Usage: $0 <DATABASE_NAME> <USERNAME> <PASSWORD>" | |
exit 1 | |
fi | |
DB_NAME=$1 | |
USER_NAME=$2 |
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
public class AccountAuthenticator extends AbstractAccountAuthenticator { | |
private final Context context; | |
@Inject @ClientId String clientId; | |
@Inject @ClientSecret String clientSecret; | |
@Inject ApiService apiService; | |
public AccountAuthenticator(Context context) { | |
super(context); |
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
public class WaitForConfig<T> implements IdlingResource { | |
private ResourceCallback resourceCallback; | |
private boolean idle; | |
private final T obj; | |
Check<T> checker = null; | |
private long timeOut; | |
public boolean success = false; | |
public WaitForConfig(T object, Check<T> checker, long durationTimeOut) { | |
this.obj = object; |
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
[alias] | |
cbfix = "!f() { git branch | grep bugfix | xargs git branch -d $1; }; f" | |
cbfeature = "!f() { git branch | grep bugfix | xargs git branch -d $1; }; f" | |
goto = "!f() { git reset --hard; git clean -f; git checkout $1; }; f" | |
sync = "!f() { touch STASHING; git stash --all --quiet; git checkout $1 --quiet; git pull origin $1; git checkout -; git stash pop --quiet; rm STASHING;}; f" |
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
[merge] | |
tool = intellij | |
[mergetool "intellij"] | |
cmd = C:/Program\\ Files/Android/Android\\ Studio/bin/studio64.exe merge \"$LOCAL\" \"$REMOTE\" \"$BASE\" \"$MERGED\" | |
[diff] | |
tool = intellij | |
[difftool "intellij"] |