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
865a866,874 | |
> // 1dmy | |
> { | |
> prefix: "gitlab.1dmy.com:10022/", | |
> re: `^(?P<root>gitlab\.1dmy\.com:10022/[A-Za-z0-9_.\-]+/[A-Za-z0-9_.\-]+)(/[A-Za-z0-9_.\-]+)*$`, | |
> ping: false, | |
> vcs: "git", | |
> repo: "ssh://git@gitlab.1dmy.com:10022/{p}.git", | |
> }, | |
> |
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
<resources> | |
<!-- Base application theme. --> | |
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar"> | |
<!-- Customize your theme here. --> | |
<item name="colorPrimary">@color/colorPrimary</item> | |
<item name="colorPrimaryDark">@color/colorPrimaryDark</item> | |
<item name="colorAccent">@color/colorAccent</item> | |
<item name="android:navigationBarColor">@color/colorPrimaryDark</item> | |
</style> |
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
inner class OnScrollListener(): RecyclerView.OnScrollListener() { | |
var isLoadingMore = false | |
override fun onScrolled(recyclerView: RecyclerView?, dx: Int, dy: Int) { | |
val lastVisibleItem: Int = (recyclerView?.layoutManager as LinearLayoutManager).findLastVisibleItemPosition() | |
val totalItemCount: Int = (recyclerView?.layoutManager as LinearLayoutManager).itemCount | |
if (lastVisibleItem >= totalItemCount - 4 && dy > 0) { // 4 items left to the bottom. | |
if (!isLoadingMore) { // not lock, load more. |
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/ash | |
#这行是用一个不存在的域名解析来钓出强制跳转地址 | |
NONEXISTDOMAIN="non.exist.domain.cn" | |
#这行写入一些会被污染的域名 | |
POSIONEDDOMAIN="www.twitter.com www.facebook.com www.youtube.com plus.google.com" | |
#下面这行写入本地的DNS地址,即被污染的DNS服务地址 |
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
nslookup shadowsocks.org | awk -F': ' 'NR==6 { print $2 } ' |
NewerOlder