Skip to content

Instantly share code, notes, and snippets.

View GeorgiosGoniotakis's full-sized avatar
🤖
Simplification through automation

Georgios Goniotakis GeorgiosGoniotakis

🤖
Simplification through automation
View GitHub Profile
@GeorgiosGoniotakis
GeorgiosGoniotakis / cleanup_stale_branches.ps1
Last active October 21, 2021 14:43
Delete all local Git branches except master (Windows PowerShell)
git branch | %{ $_.Trim() } | ?{ $_ -ne 'master' } | %{ git branch -D $_ }
@GeorgiosGoniotakis
GeorgiosGoniotakis / script.sh
Created September 25, 2021 19:50
Yes/No Prompt Shell Scripting
while true; do
read -p "Are you sure you want to continue? " yn
case $yn in
[Yy]* ) call_function; break;;
[Nn]* ) exit;;
* ) echo "Please answer yes or no.";;
esac
done
@GeorgiosGoniotakis
GeorgiosGoniotakis / how-to-git-secret.sh
Last active July 17, 2019 19:39
Usage of git-secret
#!/bin/bash
gpg --version # Check GPG installation
git --version # Check Git installation
git-secret --version # Check git-secret installation
gpg --list-keys # Make sure that your GPG key is listed here
git init # Initialize the repository if you have not done it already
git secret init # Initialize the repository using git-secret
git secret tell email@example.com # Add a user
@GeorgiosGoniotakis
GeorgiosGoniotakis / .travis.yml
Last active April 15, 2018 12:07
Example of using Travis CI with Codecov in a multi-module Android project
language: android
jdk: oraclejdk8
before_install:
- mkdir "$ANDROID_HOME/licenses" || true
- echo -e "\n8933bad161af4178b1185d1a37fbf41ea5269c55" > "$ANDROID_HOME/licenses/android-sdk-license"
- echo -e "\n84831b9409646a918e30573bab4c9c91346d8abd" > "$ANDROID_HOME/licenses/android-sdk-preview-license"
script:
- ./gradlew check
@GeorgiosGoniotakis
GeorgiosGoniotakis / BluetoothWrapperArduino.ino
Created October 7, 2017 09:45
Sketch that tests the functionality of the BluetoothWrapper Android library. It demonstrates a connection between an Arduino board and a Bluetooth module (currently HC-05).
/**
Sketch that tests the functionality of the BluetoothWrapper Android
library available here: https://github.com/GeorgiosGoniotakis/BluetoothWrapper
It demonstrates a connection between an Arduino board and a
Bluetooth module (currently HC-05).
author: Georgios Goniotakis
date: 07 Oct 2017
version: 1.0.0