Restore data form soft brick trough download mode?

I’m losing my mind. This is the last place to ask.

Basically what I did is described in this thread

Moded system UI files by swift installer prevented the OTA update from Oreo to Pie. Now I’m stuck in boot loop after flashing stock oreo. I flashed home_csc because I want all my apps and data. So my question is … how to backup apps and all their data when all I can enter is download mode? I have found these solutions ADB and HOLO backup But I’m not sure if it’s possible on SGS9 Do you have any ideas or advice?

can’t ssh to download data from gcloud instance running centos6 to get moodle backup due to possible hack

I’m noob-server-admin-wannabe so please bare with me.

I have a centos 6 lamp moodle server in a gcloud vm instance, 2 days ago users reported issues accessing moodle with a database connection error.

through my research this is what I found:

  1. restarting the instance didn’t work and it actually cause an issue with apache as I can’t even server html pages from the server eventhough the httpd service is up and restarts ok.

  2. checked apache and security logs, the logs seem to indicate an attempt of hacking, and this is my fault and possible the reason why this is happenning.

I figure I would try to get my data and start over on a new instance but when I try to ssh into the server (ssh web or gcloud ssh cli or filezilla) to download a backup zip file that gets created automatically via a script I setup, I can’t seem to be able to ssh at all here are some details:

  • on browser ssh I get this error:

    Error: The VM guest environment is outdated and only supports the deprecated ‘sshKeys’ metadata item. Please follow the steps here to update

    and even though I’m eventually given access I can’t download anything via browser.

  • on ssh gcloud cli I get this error:

    Permission denied (publickey,gssapi-keyex,gssapi-with-mic). ERROR: (gcloud.compute.ssh) [/usr/bin/ssh] exited with return code [255].

ssh verbose shows this:

MacBook-Pro:.ssh fcortes$   sudo gcloud compute ssh centos6 --ssh-flag="-vvv" Password: OpenSSH_7.9p1, LibreSSL 2.7.3 debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 48: Applying options for * debug2: resolve_canonicalize: hostname is address debug2: ssh_connect_direct debug1: Connecting to [] port 22. debug1: Connection established. debug1: identity file /Users/fcortes/.ssh/google_compute_engine type 0 debug1: identity file /Users/fcortes/.ssh/google_compute_engine-cert type -1 debug1: Local version string SSH-2.0-OpenSSH_7.9 debug1: Remote protocol version 2.0, remote software version OpenSSH_5.3 debug1: match: OpenSSH_5.3 pat OpenSSH_5* compat 0x0c000002 debug2: fd 3 setting O_NONBLOCK debug1: Authenticating to as 'root' debug1: using hostkeyalias: compute.8844278207473884047 debug3: hostkeys_foreach: reading file "/Users/fcortes/.ssh/google_compute_known_hosts" debug3: record_hostkey: found key type RSA in file /Users/fcortes/.ssh/google_compute_known_hosts:1 debug3: load_hostkeys: loaded 1 keys from compute.8844278207473884047 debug3: order_hostkeyalgs: prefer hostkeyalgs:,,,rsa-sha2-512,rsa-sha2-256,ssh-rsa debug3: send packet: type 20 debug1: SSH2_MSG_KEXINIT sent debug3: receive packet: type 20 debug1: SSH2_MSG_KEXINIT received debug2: local client KEXINIT proposal debug2: KEX algorithms: curve25519-sha256,,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256,diffie-hellman-group14-sha1,ext-info-c debug2: host key algorithms:,,,rsa-sha2-512,rsa-sha2-256,ssh-rsa,,,,,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-ed25519 debug2: ciphers ctos:,aes128-ctr,aes192-ctr,aes256-ctr,, debug2: ciphers stoc:,aes128-ctr,aes192-ctr,aes256-ctr,, debug2: MACs ctos:,,,,,,,hmac-sha2-256,hmac-sha2-512,hmac-sha1 debug2: MACs stoc:,,,,,,,hmac-sha2-256,hmac-sha2-512,hmac-sha1 debug2: compression ctos: none,,zlib debug2: compression stoc: none,,zlib debug2: languages ctos:  debug2: languages stoc:  debug2: first_kex_follows 0  debug2: reserved 0  debug2: peer server KEXINIT proposal debug2: KEX algorithms: diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1 debug2: host key algorithms: ssh-rsa,ssh-dss debug2: ciphers ctos: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour, debug2: ciphers stoc: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour, debug2: MACs ctos: hmac-md5,hmac-sha1,,hmac-sha2-256,hmac-sha2-512,hmac-ripemd160,,hmac-sha1-96,hmac-md5-96 debug2: MACs stoc: hmac-md5,hmac-sha1,,hmac-sha2-256,hmac-sha2-512,hmac-ripemd160,,hmac-sha1-96,hmac-md5-96 debug2: compression ctos: none, debug2: compression stoc: none, debug2: languages ctos:  debug2: languages stoc:  debug2: first_kex_follows 0  debug2: reserved 0  debug1: kex: algorithm: diffie-hellman-group-exchange-sha256 debug1: kex: host key algorithm: ssh-rsa debug1: kex: server->client cipher: aes128-ctr MAC: compression: none debug1: kex: client->server cipher: aes128-ctr MAC: compression: none debug3: send packet: type 34 debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(2048<3072<8192) sent debug3: receive packet: type 31 debug1: got SSH2_MSG_KEX_DH_GEX_GROUP debug2: bits set: 1534/3072 debug3: send packet: type 32 debug1: SSH2_MSG_KEX_DH_GEX_INIT sent debug3: receive packet: type 33 debug1: got SSH2_MSG_KEX_DH_GEX_REPLY debug1: Server host key: ssh-rsa SHA256:FtoD8qoSAeNtVsWukZ5YTbWIiApxpn2T+VsVzcF7SPE debug1: using hostkeyalias: compute.8844278207473884047 debug3: hostkeys_foreach: reading file "/Users/fcortes/.ssh/google_compute_known_hosts" debug3: record_hostkey: found key type RSA in file /Users/fcortes/.ssh/google_compute_known_hosts:1 debug3: load_hostkeys: loaded 1 keys from compute.8844278207473884047 debug1: Host 'compute.8844278207473884047' is known and matches the RSA host key. debug1: Found key in /Users/fcortes/.ssh/google_compute_known_hosts:1 debug2: bits set: 1531/3072 debug3: send packet: type 21 debug2: set_newkeys: mode 1 debug1: rekey after 4294967296 blocks debug1: SSH2_MSG_NEWKEYS sent debug1: expecting SSH2_MSG_NEWKEYS debug3: receive packet: type 21 debug1: SSH2_MSG_NEWKEYS received debug2: set_newkeys: mode 0 debug1: rekey after 4294967296 blocks debug1: Will attempt key: /Users/fcortes/.ssh/google_compute_engine RSA SHA256:CxsVOSJsVd6lZxknFbIRRlzARrtvXpyOItST5IG6mVw explicit debug2: pubkey_prepare: done debug3: send packet: type 5 debug3: receive packet: type 6 debug2: service_accept: ssh-userauth debug1: SSH2_MSG_SERVICE_ACCEPT received debug3: send packet: type 50 debug3: receive packet: type 51 debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic debug3: start over, passed a different list publickey,gssapi-keyex,gssapi-with-mic debug3: preferred publickey,keyboard-interactive,password debug3: authmethod_lookup publickey debug3: remaining preferred: keyboard-interactive,password debug3: authmethod_is_enabled publickey debug1: Next authentication method: publickey debug1: Offering public key: /Users/fcortes/.ssh/google_compute_engine RSA SHA256:CxsVOSJsVd6lZxknFbIRRlzARrtvXpyOItST5IG6mVw explicit debug3: send packet: type 50 debug2: we sent a publickey packet, wait for reply debug3: receive packet: type 51 debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic debug2: we did not send a packet, disable method debug1: No more authentication methods to try. root@ Permission denied (publickey,gssapi-keyex,gssapi-with-mic). 

and in my console log the only thing that I found that might be pertinent to my problem is this:

Starting udev: udevd[351]: can not read '/etc/udev/rules.d/75-persistent-net-generator.rules'  udevd[351]: can not read '/etc/udev/rules.d/75-persistent-net-generator.rules' 

but gcloud console does show that I have my rules setup for http and ssh

Any help or guidance on how to get my data or get the server up and running again is really appreciated.

thank you in advance.

Use proxy for stock android download manager? Play store not downloading through shadowsocks

I’m in China.
I use proxy to access GFW blocked sites.
Proxy is connected as an android VPN.
Stock download manager does not go through proxy.
How can I use proxy with it?

On my Mi Mix 2S, I just opened the download manager app and disabled “Xunlei Download Acceleration” and then it worked. But there is no download manager app to open on my Nexus, and I can’t find any settings related to it.

Now on my Nexus, everything I download in google play store is stuck at “Downloading…”, without even starting the download process.

How can I configure the download manager so that it uses the proxy?

More Info: •   Proxy App: Shadowsocks 4.8.0  •   Android Version: 9 •   StatiX OS Version: v2.0-OFFICIAL-20190225-2252 •   Android Security Patch Level: February 5, 2019 •   Kernel Version:      o   3.10.108-Statix-Pie-g950b2df     o   #1 Mon Feb 25 22:58:17 UTC 2019 •   Build Number: PQ2A.190205.003 release-keys 

Retrofit fails to download binary file in an Android app – end result is a corrupted file that is larger than expected

I am trying to download PDF files using Retrofit 2 on an Android app written in Kotlin. The snippet below is basically my entire code. Based on my log output, it appears that the file downloads successfully and saves to the intended location.

However, the downloaded file is larger than expected, and is corrupt. I can open it in a PDF reader, but the PDF is blank. In the example below, I tried downloading If I download this file through a browser, the result is a PDF that is 13,264 bytes. Downloaded with this code however, it is 22,503 bytes, about 70% larger than expected. I am getting a similar result for other binary files like JPEGs. However, downloading a TXT actually works fine, even a large one. So it seems like the problem is isolated to binary files.

package com.ebelinski.RetrofitTestApp  import import android.content.Context import android.os.Build import import android.os.Bundle import android.util.Log import import import okhttp3.OkHttpClient import okhttp3.ResponseBody import org.jetbrains.anko.doAsync import retrofit2.Call import retrofit2.http.* import retrofit2.Retrofit import retrofit2.converter.gson.GsonConverterFactory import* import java.util.concurrent.Executors import java.util.concurrent.TimeUnit  interface FileService {      @Streaming     @GET     @Headers("Content-Type: application/pdf", "Accept: application/pdf")     fun fileFromUrl(@Url url: String,                     @Header("Authorization") tokenTypeWithAuthorization: String): Call<ResponseBody>  }  class MainActivity : AppCompatActivity() {      val TAG = "MainActivity"      val RETROFIT_CONNECT_TIMEOUT_SECONDS = 60     private val RETROFIT_READ_TIMEOUT_SECONDS = 60     private val RETROFIT_WRITE_TIMEOUT_SECONDS = 60      private val retrofit: Retrofit         get() {             val gson = GsonBuilder()                 .setDateFormat("yyyyMMdd")                 .setFieldNamingPolicy(FieldNamingPolicy.LOWER_CASE_WITH_UNDERSCORES)                 .create()              val converterFactory = GsonConverterFactory.create(gson)              val okHttpClient = OkHttpClient.Builder()                 .connectTimeout(RETROFIT_CONNECT_TIMEOUT_SECONDS.toLong(), TimeUnit.SECONDS)                 .readTimeout(RETROFIT_READ_TIMEOUT_SECONDS.toLong(), TimeUnit.SECONDS)                 .writeTimeout(RETROFIT_WRITE_TIMEOUT_SECONDS.toLong(), TimeUnit.SECONDS)                 .addInterceptor { chain ->                     val userAgentValue = "doesn't matter"                     val originalRequest = chain.request().newBuilder().addHeader("User-Agent", userAgentValue).build()                      var response = chain.proceed(originalRequest)                     if (BuildConfig.DEBUG) {                         val bodyString = response.body()!!.string()                         Log.d(TAG, String.format("Sending request %s with headers %s ", originalRequest.url(), originalRequest.headers()))                         Log.d(TAG, String.format("Got response HTTP %s %s \n\n with body %s \n\n with headers %s ", response.code(), response.message(), bodyString, response.headers()))                         response = response.newBuilder().body(ResponseBody.create(response.body()!!.contentType(), bodyString)).build()                     }                      response                 }                 .build()              return Retrofit.Builder()                 .callbackExecutor(Executors.newCachedThreadPool())                 .baseUrl("")                 .addConverterFactory(converterFactory)                 .client(okHttpClient)                 .build()         }      private val fileService: FileService = retrofit.create(      override fun onCreate(savedInstanceState: Bundle?) {         super.onCreate(savedInstanceState)         setContentView(R.layout.activity_main)          doAsync { downloadFile() }     }      fun downloadFile() {         val uri = ""         val auth = "doesn't matter"          val response = fileService.fileFromUrl(             uri,             auth         ).execute()          if (!response.isSuccessful) {             Log.e(TAG, "response was not successful: " +                     response.code() + " -- " + response.message())             throw Throwable(response.message())         }          Log.d(TAG, "Server has file for $  {uri}")         saveFileFromResponseBody(response.body()!!)     }        // Returns the name of what the file should be, whether or not it exists locally     private fun getFileName(): String? {         return "dummy.pdf"     }      fun saveFileFromResponseBody(body: ResponseBody): Boolean {         val fileName = getFileName()         val localFullFilePath = File(getFileFullDirectoryPath(), fileName)         var inputStream: InputStream? = null         var outputStream: OutputStream? = null         Log.d(TAG, "Attempting to download $  fileName")          try {             val fileReader = ByteArray(4096)             val fileSize = body.contentLength()             var fileSizeDownloaded: Long = 0              inputStream = body.byteStream()             outputStream = FileOutputStream(localFullFilePath)              while (true) {                 val read =                 if (read == -1) break                  outputStream.write(fileReader, 0, read)                 fileSizeDownloaded += read.toLong()                  Log.d(TAG, "$  fileName download progress: $  fileSizeDownloaded of $  fileSize")             }              outputStream.flush()             Log.d(TAG, "$  fileName downloaded successfully")             return true         } catch (e: IOException) {             Log.d(TAG, "$  fileName downloaded attempt failed")             return false         } finally {             inputStream?.close()             outputStream?.close()         }     }      fun getFileFullDirectoryPath(): String {         val directory = getDir("test_dir", Context.MODE_PRIVATE)         return directory.absolutePath     } } 

If it helps, here’s my build.gradle file:

apply plugin: ''  apply plugin: 'kotlin-android'  apply plugin: 'kotlin-android-extensions'  android {     compileSdkVersion 28     defaultConfig {         applicationId "com.ebelinski.RetrofitTestApp"         minSdkVersion 21         targetSdkVersion 28         versionCode 1         versionName "1.0"         testInstrumentationRunner ""     }     buildTypes {         release {             minifyEnabled false             proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), ''         }     } }  dependencies {     implementation fileTree(dir: 'libs', include: ['*.jar'])     implementation"org.jetbrains.kotlin:kotlin-stdlib-jdk7:$  kotlin_version"     implementation ''     implementation ''     implementation 'com.squareup.retrofit2:converter-gson:2.5.0'     implementation 'com.squareup.retrofit2:retrofit:2.5.0'     implementation 'com.squareup.okhttp3:okhttp:3.12.0'     implementation "org.jetbrains.anko:anko-commons:0.10.1"     testImplementation 'junit:junit:4.12'     androidTestImplementation ''     androidTestImplementation '' } 

Need a recommendation for Course videos with piracy / download protection (could involve a javascript video player or something else)

I’m really stuck on this one and would appreciate some help!

I am a video course creator and need to protect my video content (which will be embedded on my website) from being downloaded or shared on social media.

At the same time, I am also looking for a place to host my videos (for free or on my own server, though I prefer a free 3rd party solution if possible). Naturally, Youtube is the first thing that comes to mind, but the problem with that is that the YouTube logo shows up on the video and is clickable, which makes it easy to share the URL on Torrent sites, etc, even if I set the video to “Unlisted”.

I know Wistia and Vimeo offer a premium solution, but I am wondering if there’s a free option out there that I may not know about.

My requirements are: 1. Free video hosting 2. Fool-proof protection of my video content The second requirement above may involve a custom javascript web player (like Wistia’s as seen here: which makes it hard to download the video, even by looking at the source).

I am open to ideas.

Suggestions / recommendations / general thoughts?

need for speed 2014 game pc download

Press the "Download Now" button to download need for speed 2014 game pc installer.
The whole process will just take a few moments.


– Title: need for speed 2014 game pc
– Download type: safety (no torrent/no viruses)
– Status file: clean (as of last analysis)
– File size: undefined
– Price: free
– Special requirements:…

need for speed 2014 game pc download

download save game watch dogs xbox 360

Press the "Download Now" button to download save game watch dogs xbox 360 installer.
The whole process will just take a few moments.


– Title: save game watch dogs xbox 360
– Download type: safety (no torrent/no viruses)
– Status file: clean (as of last analysis)
– File size: undefined
– Price: free
– Special…

download save game watch dogs xbox 360

Btrade Automated Review Official Download Most Powerful Bitcoin Trading Software Of 2019

Btrade Automated Signup: Btrade Automated comes to us courtesy of the same people that have already released several other awesome trading systems. This is just the next addition to their long line of highly successful semi-automated trading programs. We are here doing a Btrade Automated Bot review to give you all of the info you need to trade with this awesome new system. If you think that this is just another automated…

Btrade Automated Review Official Download Most Powerful Bitcoin Trading Software Of 2019