Skip to content

Instantly share code, notes, and snippets.

View akalipetis's full-sized avatar

Antonis Kalipetis akalipetis

View GitHub Profile
@akalipetis
akalipetis / .drone.yml
Last active October 16, 2019 12:28
Drone Swarm deployment stack and example pipeline
pipeline:
test:
image: akalipetis/ci:17.07.0_1.16.1
environment:
- DOCKER_HOST=tcp://docker:2375
commands:
- docker-compose run web python tests.py
build:
image: akalipetis/ci:17.07.0_1.16.1
@akalipetis
akalipetis / install.sh
Last active June 14, 2016 13:30
Docker and Docker Compose installation
#! /bin/bash
# Run through curl, using sudo - curl -L https://gist.github.com/akalipetis/234bb2d496723975bcb197ca77d37a0e/raw/8db662920186ca8bb5bc150ada80774a350cda63/install.sh | sudo bash
wget https://get.docker.com/builds/Linux/x86_64/docker-1.11.2.tgz
tar -xzf docker-1.11.2.tgz
mv docker/docker* /usr/local/bin/
rm -r docker docker-1.11.2.tgz
mv docker/docker* /usr/local/bin/
curl -L https://github.com/docker/compose/releases/download/1.7.1/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
@akalipetis
akalipetis / bootstrap-appengine.sh
Last active June 3, 2016 19:47
Install appengine to SourceLair and setup dev server
# Run with curl -L https://gist.github.com/akalipetis/5e4feda016bafc22f0d0b049480061e8/raw/ce44226bd731b2f9104cd2070d367085f17f1678/bootstrap-appengine.sh | bash
# If you want to have another directory, use bash -s <dir_here> at the end
# Run with curl -L https://gist.github.com/akalipetis/5e4feda016bafc22f0d0b049480061e8/raw/ce44226bd731b2f9104cd2070d367085f17f1678/bootstrap-appengine.sh | bash -s <dir_here>
if [ $1 = ""]; then
dir='./'
else
dir=$1
fi
echo $dir
@akalipetis
akalipetis / ProgressActivity.java
Created April 2, 2014 23:11
Android Activity with ProgressBar below the ActionBar
public class ProgressActivity extends SherlockFragmentActivity {
private ProgressBar mProgressBar;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
super.setContentView(R.layout.activity_progress);
mProgressBar = (ProgressBar) findViewById(R.id.activity_progress_progress_bar);
}
<receiver android:name="com.akalipetis.android.testing_demo.MyReceiver">
<intent-filter>
<action android:name="my.custom.action"/>
</intent-filter>
</receiver>
@akalipetis
akalipetis / AndroidManifest_application_node.xml
Last active October 13, 2015 12:38
Code to be inserted for Warply SDK Integration
<!-- For Warply -->
<!-- Activity used for displaying Warply Campaigns. -->
<activity android:name="ly.warp.sdk.WarpViewActivity" />
<!-- Service used for handling Push Notifications. -->
<!-- If custom Push functionality is needed, replace this with your implementation. -->
<service android:name="ly.warp.sdk.WarpIntentService" />
<!-- Service used for updating user's location. -->
<service android:name="ly.warp.services.UpdateUserLocationService" />