Skip to content

Instantly share code, notes, and snippets.

View ashokgelal's full-sized avatar
🌐
Building

Ashok Gelal ashokgelal

🌐
Building
View GitHub Profile
@ashokgelal
ashokgelal / release.sh
Created January 12, 2020 21:26 — forked from bclinkinbeard/release.sh
Bash script to automate the Git Flow tag/release process
#!/bin/bash
# current Git branch
branch=$(git symbolic-ref HEAD | sed -e 's,.*/\(.*\),\1,')
# v1.0.0, v1.5.2, etc.
versionLabel=v$1
# establish branch and tag name variables
devBranch=develop
@ashokgelal
ashokgelal / install-teamcity.md
Last active May 8, 2019 17:40 — forked from simoneb/install-teamcity.md
Install TeamCity on Ubuntu with Nginx
@ashokgelal
ashokgelal / post.md
Last active December 18, 2018 22:44 — forked from LostKobrakai/post.md
Using Laravel-Mix with Phoenix

Introduction

Laravel-Mix is "an elegant wrapper around Webpack for the 80% use case". It has nothing to do with Elixir's Mix and does not require Laravel to work!

Set up

Create a new phoenix application with mix phx.new. You may choose to add the --no-brunch flag to stop brunch from being intiailized, but I personally prefer leaving that in and replacing brunch so that the folder structure is set up for me.

$ mix phx.new demo

Install Laravel-Mix

@ashokgelal
ashokgelal / Envoy.blade.php
Created September 1, 2018 17:43 — forked from michaeldyrynda/Envoy.blade.php
Laravel 5 Envoy deploy configuration
@servers([ 'remote' => 'server.example.com', ])
@setup
if ( ! isset($repo) )
{
throw new Exception('--repo must be specified');
}
if ( ! isset($base_dir) )
{
@ashokgelal
ashokgelal / gist:fa85a4b94b22319020bcbaba0b0278df
Created May 4, 2016 01:42
Hacking router - wlctl usage help
Usage: wlctl [-a|i <adapter>] [-h] [-d|u|x] <command> [arguments]
-h this message and command descriptions
-h [cmd] command description for cmd
-a, -i adapter name or number
-d output format signed integer
-u output format unsigned integer
-x output format hexdecimal
ver get version information
import Foundation
extension String
{
var length: Int {
get {
return countElements(self)
}
}

Installation

Clone this Gist, copy in dropbox-android-sdk.jar file from Dropbox SDK. Change version in POMs if you need it, then run mvn clean install.

Usage

<dependency>
  <artifactId>android-sdk</artifactId>
 1.5
@ashokgelal
ashokgelal / CoverFlow.cs
Created February 27, 2012 00:46 — forked from conceptdev/CoverFlow.cs
MonoDroid port of a CoverFlow-showing Activity for Android http://twitpic.com/46n72l
/*
* ORIGINAL (JAVA) CODE LICENCE
*
* Copyright (C) 2010 Neil Davies
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0