Skip to content

Instantly share code, notes, and snippets.


Mehmet Altıparmak mehmet6parmak

View GitHub Profile
bradtraversy /
Last active Aug 14, 2020
SSH & DevOps Crash Course Snippets

SSH Cheat Sheet

This sheet goes along with this SSH YouTube tutorial

Login via SSH with password (LOCAL SERVER)

$ ssh brad@

Create folder, file, install Apache (Just messing around)

$ mkdir test

$ cd test

sebaslogen / LiveObservable.kt
Created Jul 9, 2017
LiveObservable: Android lifecycle aware wrapper for an RxJava Observable
View LiveObservable.kt
import android.arch.lifecycle.Lifecycle
import android.arch.lifecycle.LifecycleObserver
import android.arch.lifecycle.LifecycleOwner
import android.arch.lifecycle.OnLifecycleEvent
import com.jakewharton.rxrelay.BehaviorRelay
import rx.Observable
import rx.functions.Action1
import rx.subscriptions.CompositeSubscription
tsuharesu /
Last active Jun 17, 2020
Handle Cookies easily with Retrofit/OkHttp
* This interceptor put all the Cookies in Preferences in the Request.
* Your implementation on how to get the Preferences MAY VARY.
* <p>
* Created by tsuharesu on 4/1/15.
public class AddCookiesInterceptor implements Interceptor {
public Response intercept(Chain chain) throws IOException {
alexfu /
Last active Jun 1, 2020
An ItemDecoration that draws dividers between items. Pulled from Android support demos.
* Copyright (C) 2014 The Android Open Source Project
* 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
* Unless required by applicable law or agreed to in writing, software
JakeWharton /
Created May 21, 2013
A `HttpStack` implementation for Volley that uses OkHttp as its transport.
import com.squareup.okhttp.OkHttpClient;
* An {@link HttpStack} implementation which
* uses OkHttp as its transport.
robcowie / countries.csv
Created Apr 4, 2011
Create a table of Countries with ISO codes
View countries.csv
alpha2 alpha3 numeric name
AF AFG 004 Afghanistan
AX ALA 248 Åland Islands
AL ALB 008 Albania
DZ DZA 012 Algeria
AS ASM 016 American Samoa
AD AND 020 Andorra
AO AGO 024 Angola
AI AIA 660 Anguilla
AQ ATA 010 Antarctica
You can’t perform that action at this time.