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 | |
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin | |
export PATH | |
#=================================================================# | |
# System Required: CentOS 6,7, Debian, Ubuntu # | |
# Description: One click Install ShadowsocksR Server # | |
# Author: AlphaBrock <https://alphabrock.cn> # | |
# Thanks: @breakwa11 <https://twitter.com/breakwa11> # | |
# Thanks: @Teddysun <i@teddysun.com> # | |
# Intro: https://shadowsocks.be/9.html # |
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
window.getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN | |
| View.SYSTEM_UI_FLAG_LAYOUT_STABLE); | |
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { | |
window.clearFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS); | |
window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS); | |
window.setStatusBarColor(Color.TRANSPARENT); | |
} else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { | |
//透明状态栏 | |
window.addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS); | |
} |
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.homework.app.util; | |
import android.annotation.TargetApi; | |
import android.app.Activity; | |
import android.graphics.Color; | |
import android.os.Build; | |
import android.view.View; | |
import android.view.Window; | |
import android.view.WindowManager; |
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.homework.app.util.camera; | |
import android.Manifest; | |
import android.app.Activity; | |
import android.content.Context; | |
import android.hardware.Camera; | |
import android.os.Build; | |
import android.support.annotation.NonNull; | |
import android.support.v4.app.ActivityCompat; | |
import android.support.v4.content.ContextCompat; |
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
{"sig":"54529c5d91949ac16f4bf5b09a857fb9a50b485e4cce6222f0c88f8b27cfd0cc41c0da9dea6cfb7d3d39464235f558b17376ac08cc49a267bc4664855d7b2e1e1","msghash":"7c998b815f3a05e1262a8f3d8670e0a8ab81cb7713c5e4ab9af51da1a8f3e1f0"} |
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
public class QuickSort{ | |
private void quickSort(int[] array, int startIndex, int endIndex) { | |
if (startIndex >= endIndex) { | |
return; | |
} | |
int p = part(array, startIndex, endIndex); | |
quickSort(array, startIndex, p-1); | |
quickSort(array, p + 1, endIndex); | |
} |
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
public class HttpUtil { | |
private static OkHttpClient internalHttpClientWithLongTimeout; | |
static { | |
List<Protocol> list = new ArrayList<>(); | |
list.add(Protocol.HTTP_1_1); | |
list.add(Protocol.HTTP_2); | |
internalHttpClientWithLongTimeout = new OkHttpClient.Builder() |
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
{ | |
"imServer": "test01.kl9177.com", | |
"appServer": "test03.kl9177.com", | |
"imPort": 80, | |
"appPort": 80 | |
} |
- wget -N --no-check-certificate https://raw.githubusercontent.com/91yun/shadowsocks_install/master/shadowsocksR.sh && bash shadowsocksR.sh
- rpm -ivh http://soft.91yun.org/ISO/Linux/CentOS/kernel/kernel-firmware-2.6.32-504.3.3.el6.noarch.rpm
- rpm -ivh http://soft.91yun.org/ISO/Linux/CentOS/kernel/kernel-2.6.32-504.3.3.el6.x86_64.rpm --force
- rpm -qa | grep kernel
- reboot
OlderNewer