Skip to content

Instantly share code, notes, and snippets.

View MaartenS's full-sized avatar

Maarten MaartenS

View GitHub Profile
String credentials = "username:password";
final String basic =
"Basic " + Base64.encodeToString(credentials.getBytes(), Base64.NO_WRAP);
OkHttpClient httpClient = new OkHttpClient();
httpClient.interceptors().clear();
List<Interceptor> interceptors = new ArrayList<>();
interceptors.add(new Interceptor() {
@Override
@MaartenS
MaartenS / creditcards.md
Last active November 13, 2017 16:28 — forked from j3j5/gist:8b3e48ccad746b90a54a
Adyen Test Card Numbers

Adyen Test Card Numbers These cards are only valid on our TEST system and they will never involve any actual transaction or transfer of funds. The TEST card numbers will not work on the Adyen LIVE Platform.

For all cards use the following expiration and CVV2/CVC2/or CID for Amex.

For all cards:

Expiration Dates CVV2 / CVC3 CID (American Express) 06/2016 OR 08/2018 737 7373

Noizio is an app that will drown out the noise of the street and allow you to concentrate on the work at hand, increasing your productivity. On the other hand, it can also set the mood for a romantic evening or lull you to sleep, ensuring that you will dream soundly all night long. An ambient sound equalizer app for creating a mixture of ambient sounds available for Mac OS X.

https://itunes.apple.com/us/app/noizio/id928871589

CSE merchant server call to perform credit card payment

curl -u "ws@Company.YourCompany":"YourWsPassword" \
   -H "Content-Type: application/json" \
   -X POST \
   --data \
   '{
       "additionalData": {
 "card.encrypted.json":"adyenjs_0_1_4p1$..."

#Installing TeamCity for building Android projects

##Requirements

  • MySQL
  • JDK 1.7
  • 32-bit libstdc++ zlib.i686

##Install JDK

Command to copy your public key into the ~/.ssh for a specific host

ssh-copy-id host

cd to the path of the front Finder window

cdf() {
	target=`osascript -e 'tell application "Finder" to if (count of Finder windows) > 0 then get POSIX path of (target of front Finder window as text)'`
	if [ "$target" != "" ]; then
		cd "$target"; pwd
	else
		echo 'No Finder window found' >&2
	fi

cmd + F12 search method in file

In order to add a button in a listview you will need to add focusable="false" to the root of the item.xml

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="72dp"
    android:orientation="horizontal"
    android:paddingBottom="8dp"
 android:paddingLeft="16dp"