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
https://github.com/torvalds/linux/tree/8bcab0346d4fcf21b97046eb44db8cf37ddd6da0 |
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
# Aggregated from the internet. | |
# adb is required. | |
# You can replace the url with any valid one. This gist use miui.com's. | |
# You may need to reconnect the network to apply the change. | |
# Android 7.1.1-10.0 | |
# Source: https://www.noisyfox.io/android-captive-portal.html | |
# Source: https://hky.moe/archives/162/ | |
adb shell settings put global captive_portal_http_url http://connect.rom.miui.com/generate_204 | |
adb shell settings put global captive_portal_https_url https://connect.rom.miui.com/generate_204 |
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 MainActivity : BaseActivity() { | |
override fun onCreate(savedInstanceState: Bundle?) { | |
super.onCreate(savedInstanceState) | |
setContentView(R.layout.activity_main) | |
with(window) { | |
enterTransition = Fade().setStartDelay(1000).setDuration(2000).withLogListener("Main.enter") | |
exitTransition = Fade().setDuration(2000).withLogListener("Main.exit") | |
returnTransition = Fade().setDuration(2000).withLogListener("Main.return") | |
reenterTransition = Fade().setStartDelay(1000).setDuration(2000).withLogListener("Main.reenter") |
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
<?xml version="1.0" encoding="utf-8"?> | |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
package="com.perqin.myapplication"> | |
<application | |
android:allowBackup="true" | |
android:icon="@mipmap/ic_launcher" | |
android:label="@string/app_name" | |
android:roundIcon="@mipmap/ic_launcher_round" | |
android:supportsRtl="true" |
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
5 3 | |
{1,3} {} {} | |
{} {2} {} | |
{} {2} {} | |
{} {} {4} | |
{} {} {4} | |
2 4 -1 | |
aaaaa | |
bbb | |
a |
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
lll |
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
#include <pthread.h> | |
#include <iostream> | |
#include <unistd.h> | |
#include <semaphore.h> | |
#include <stdlib.h> | |
#define BUFFER_SIZE 5 | |
#define MAX_SLEEP_TIME 15 | |
typedef int buffer_item; |
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/sh | |
# Works on Ubuntu 16.04.1 LTS | |
DESC="start sslocal service" | |
NAME=sslocal | |
OWNER=shadowsocks | |
DAEMON=/usr/local/bin/$NAME | |
PIDFILE=/var/run/$NAME.pid | |
CONFIGFILE=/etc/$OWNER/$NAME.json |