Skip to content

Instantly share code, notes, and snippets.

View eduardomoroni's full-sized avatar
🤔

Eduardo Moroni eduardomoroni

🤔
View GitHub Profile
//compile ("com.jcraft:jsch:0.1.54")
//compile("org.apache.sshd:sshd-core:0.6.0")
import org.apache.sshd.SshServer;
import org.apache.sshd.server.command.ScpCommandFactory;
import org.apache.sshd.server.keyprovider.SimpleGeneratorHostKeyProvider;
import org.apache.sshd.server.sftp.SftpSubsystem;
import org.apache.sshd.server.shell.ProcessShellFactory;
import org.bouncycastle.jce.provider.BouncyCastleProvider;
// compile("commons-net:commons-net:3.5")
// testCompile("org.mockftpserver:MockFtpServer:2.7.1")
import org.apache.commons.net.ftp.FTPClient;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.TemporaryFolder;
import java.io.IOException;

Keybase proof

I hereby claim:

  • I am eduardomoroni on github.
  • I am eduardomoroni (https://keybase.io/eduardomoroni) on keybase.
  • I have a public key ASAmkUzqyBnARyjAJSHA5Hkf481CtEDh4dAYW16-4zD4Pwo

To claim this, I am signing this object:

@eduardomoroni
eduardomoroni / memoize.js
Created April 6, 2018 11:18
JS Memoize function
function memoize(fn) {
var cachedArg;
var cachedResult;
return function(arg) {
if (cachedArg === arg) {
return cachedResult;
}
cachedArg = arg;
cachedResult = fn(arg);
return cachedResult;

Keybase proof

I hereby claim:

  • I am eduardomoroni on github.
  • I am eduardomoroni (https://keybase.io/eduardomoroni) on keybase.
  • I have a public key ASDU9f7Zyv4E0DvqnIx9ZhAWr-AohBTl6aFJtqmzblOq_Ao

To claim this, I am signing this object:

@eduardomoroni
eduardomoroni / .travis.yml
Created May 29, 2018 11:07
React Native Android Travis CI Config
os: linux
language: android
jdk: oraclejdk8
android:
components:
- build-tools-23.0.1
- android-23
before_install:
- yes | sdkmanager "platforms;android-23"
- yes | sdkmanager "build-tools;23.0.1"
@eduardomoroni
eduardomoroni / Appfile
Created May 29, 2018 11:54
Como configurar TravisCI para um projeto React Native
# For more information about the Appfile, see:
# https://docs.fastlane.tools/advanced/#appfile
app_identifier("org.reactjs.native.example.ReactNativeTravisCI")
@eduardomoroni
eduardomoroni / Fastfile
Created May 29, 2018 11:55
Como configurar TravisCI para um projeto React Native
# This file contains the fastlane.tools configuration
# You can find the documentation at https://docs.fastlane.tools
platform :ios do
desc "Runs all the tests"
lane :test do
# https://docs.fastlane.tools/actions/scan/
scan(
project: "ios/ReactNativeTravisCI.xcodeproj",
scheme: "ReactNativeTravisCI"
@eduardomoroni
eduardomoroni / ReactNativeTravisCITests.m
Created May 29, 2018 12:16
Como configurar TravisCI para um projeto React Native
#import <UIKit/UIKit.h>
#import <XCTest/XCTest.h>
#import <React/RCTLog.h>
#import <React/RCTRootView.h>
@interface ReactNativeTravisCITests : XCTestCase
@end