This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export PS1='$ ' | |
export PS1='$ ' | |
export PS1='\W $ ' | |
export EDITOR=nano | |
export VISUAL='$EDITOR' | |
export PATH=$PATH:~/Library/Android/sdk/platform-tools:~/soft/flutter/bin/cache/dart-sdk/bin:~/soft/flutter/bin:/usr/local/opt/openssl/bin | |
alias hs='history' | |
alias ll='ls -lah' | |
alias ga='git add .' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<templateSet group="user"> | |
<template name="imf" value="import 'package:flutter/material.dart';" description="Import flutter material" toReformat="false" toShortenFQNames="true"> | |
<context> | |
<option name="DART" value="true" /> | |
</context> | |
</template> | |
<template name="fblo" value="import 'dart:async'; import 'package:bloc/bloc.dart'; class $name$Bloc extends Bloc<$event$, $state$> { @override $name$State get initialState => null; @override Stream<$name$State> mapEventToState($state$ currentState, $event$ event) { $cursor$ return null; } }" description="flutter bloc class template" toReformat="false" toShortenFQNames="true"> | |
<variable name="name" expression="" defaultValue="" alwaysStopAt="true" /> | |
<variable name="event" expression="" defaultValue="" alwaysStopAt="true" /> | |
<variable name="state" expression="" defaultValue="" alwaysStopAt="true" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ta test async | |
test( | |
'should $ACT$ when $END$', | |
() async { | |
// arrange | |
// act | |
// assert |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cd /home/dev/maxidroid/ | |
su -c '( | |
until java -Xms512m -Xmx1024m -jar maxidroid_asio*.jar --jar.name=`ls | grep maxidroid_asio` --app.started=`date "+%d.%m.%Y_at_%H:%M:%S"` ; do | |
echo "Application crashed with exit code $?. Respawning... " >&2 | |
sleep 5 | |
done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Licensed Materials - Property of IBM | |
* | |
* (C) COPYRIGHT IBM CORP. 2015 All Rights Reserved | |
* | |
* US Government Users Restricted Rights - Use, duplication or | |
* disclosure restricted by GSA ADP Schedule Contract with | |
* IBM Corp. | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package premiumapp.org.jtimer.dialogs; | |
import android.app.Dialog; | |
import android.content.Context; | |
import android.graphics.drawable.ColorDrawable; | |
import android.os.Bundle; | |
import android.support.annotation.NonNull; | |
import android.support.annotation.Nullable; | |
import android.support.v4.app.DialogFragment; | |
import android.view.Window; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package rubenpla.develop.privtmdbendlesslist.data.api | |
import retrofit2.Retrofit | |
import retrofit2.converter.gson.GsonConverterFactory | |
import retrofit2.http.GET | |
import retrofit2.http.Query | |
import rubenpla.develop.privtmdbendlesslist.data.model.MoviesResultsItem | |
interface TmdbApi { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ru.redsys.rea_conference.network; | |
import android.content.Context; | |
import android.content.Intent; | |
import android.support.annotation.NonNull; | |
import android.support.v4.app.JobIntentService; | |
import android.util.Log; | |
import org.greenrobot.eventbus.EventBus; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// if localhost do not forget add http:// before url | |
package ru.redsys.event_manager_rea.configuration; | |
import org.springframework.context.annotation.Configuration; | |
import org.springframework.web.servlet.config.annotation.CorsRegistry; | |
import org.springframework.web.servlet.config.annotation.EnableWebMvc; | |
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter; | |
@Configuration |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void main(String[] args) { | |
String[] cmd = new String[]{"/bin/sh", "/home/a/temp/notify.sh"}; | |
try { | |
Process pr = Runtime.getRuntime().exec(cmd); | |
} catch (IOException e) { | |
e.printStackTrace(); | |
} | |
} |