# set http proxy
export http_proxy=http://PROXYHOST:PROXYPORT
# set http proxy with user and password
export http_proxy=http://USERNAME:PASSWORD@PROXYHOST:PROXYPORT
# set http proxy with user and password (with special characters)
This file contains 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 | |
# https://tug.org/mactex/uninstalling.html | |
echo "# Uninstall TeX" | |
echo "rm -rf /usr/local/texlive" | |
echo "# Uninstall GUI Applications" | |
echo "rm -rf /Applications/TeX" |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
Beyond Compare 4 | |
Licensed to: ASIO Allsoftinone | |
Quantity: 1 user | |
Serial number: 1822-9597 | |
License type: Pro Edition for Windows | |
--- BEGIN LICENSE KEY --- | |
H1bJTd2SauPv5Garuaq0Ig43uqq5NJOEw94wxdZTpU-pFB9GmyPk677gJ | |
vC1Ro6sbAvKR4pVwtxdCfuoZDb6hJ5bVQKqlfihJfSYZt-xVrVU27+0Ja | |
hFbqTmYskatMTgPyjvv99CF2Te8ec+Ys2SPxyZAF0YwOCNOWmsyqN5y9t |
from the github solution webdevops/Dockerfile#212
RUN sed -i -e 's/archive.ubuntu.com\|security.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list
This file contains 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
204.79.197.212 onedrive.live.com | |
204.79.197.212 skyapi.onedrive.live.com | |
204.79.197.212 d.docs.live.net | |
204.79.197.212 dm2304files.storage.live.com | |
204.79.197.212 ocws.officeapps.live.com | |
40.74.129.10 www.onenote.com | |
104.210.40.87 nexus.officeapps.live.com | |
204.79.197.212 ocos-office365-s2s.msedge.net | |
204.79.197.212 directory.services.live.com | |
204.79.197.212 docs.live.net |
This file contains 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 com.meixun.b2b.mall.supplier.adapter.decoration; | |
import android.graphics.Canvas; | |
import android.graphics.Rect; | |
import android.graphics.drawable.Drawable; | |
import android.support.v7.widget.RecyclerView; | |
import android.view.View; | |
/** | |
* Adds interior dividers to a RecyclerView with a GridLayoutManager. |
This file contains 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
import android.content.Context; | |
import android.graphics.Camera; | |
import android.graphics.Matrix; | |
import android.text.TextUtils; | |
import android.util.AttributeSet; | |
import android.view.Gravity; | |
import android.view.View; | |
import android.view.ViewGroup; | |
import android.view.animation.AccelerateInterpolator; | |
import android.view.animation.Animation; |
This file contains 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 com.androidrecipes.downloader; | |
import android.app.Activity; | |
import android.app.DownloadManager; | |
import android.content.BroadcastReceiver; | |
import android.content.Context; | |
import android.content.Intent; | |
import android.content.IntentFilter; | |
import android.content.SharedPreferences; | |
import android.database.Cursor; |
This file contains 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
class CountDownTask extends AsyncTask<Long, Void, Pair<String, String>> { | |
@Override | |
protected Pair<String, String> doInBackground(Long... params) { | |
long millisUntilFinished = params[0]; | |
long day = millisUntilFinished / (24 * 60 * 60 * SECOND_IN_MILLIS); | |
long hour = (millisUntilFinished / (60 * 60 * SECOND_IN_MILLIS) - day * 24); | |
long min = ((millisUntilFinished / (60 * SECOND_IN_MILLIS)) - day * 24 * 60 - hour * 60); | |
long s = (millisUntilFinished / SECOND_IN_MILLIS - day * 24 * 60 * 60 - hour * 60 * 60 - min * 60); | |
String timeLeft = "" + day + "天" + hour + "小时" + min + "分" + s + "秒"; | |
String dayLeft = String.format(Locale.CHINA, "请%d天内处理,超时系统将自动同意此次售后。", day + 1); |
NewerOlder