Skip to content

Instantly share code, notes, and snippets.

@TimVelo
TimVelo / TLSSocketFactory.java
Created April 8, 2016 20:22 — forked from fkrauthan/TLSSocketFactory.java
Custom SSLSocketFactory Implementation to enable tls 1.1 and tls 1.2 for android 4.1 (16+)
package net.cogindo.ssl;
import java.io.IOException;
import java.net.InetAddress;
import java.net.Socket;
import java.net.UnknownHostException;
import java.security.KeyManagementException;
import java.security.NoSuchAlgorithmException;
import javax.net.ssl.SSLContext;
@TimVelo
TimVelo / MultiSelectViewModeHelper.java
Last active July 8, 2017 05:11
Fast Adapter Multi Select View Helper
package com.orangelinephotography.athenaeum.ui.actionMode;
import android.os.Bundle;
import com.mikepenz.fastadapter.FastAdapter;
import com.mikepenz.fastadapter.IItem;
/**
* Created by tvelo on 7/7/2017.
* based on extension from mikepenz; will PR for this to help others with non Action Mode views like
@TimVelo
TimVelo / wildfly-install.sh
Created July 21, 2017 19:40 — forked from sukharevd/wildfly-install.sh
Script to install JBoss Wildfly 10.x as service in Linux
#!/bin/bash
#title :wildfly-install.sh
#description :The script to install Wildfly 10.x
#more :http://sukharevd.net/wildfly-8-installation.html
#author :Dmitriy Sukharev
#date :2016-06-18T02:45-0700
#usage :/bin/bash wildfly-install.sh
#tested-version1 :10.0.0.CR3
#tested-distros1 :Ubuntu 15.10; Debian 7,8; CentOS 7; Fedora 22
#tested-version2 :10.0.0.Final