| tags | ||
|---|---|---|
|
This file contains hidden or 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
| #!/usr/bin/env bash | |
| PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin | |
| export PATH | |
| #=================================================================# | |
| # System Required: CentOS 6+, Debian 7+, Ubuntu 12+ # | |
| # Description: One click Install Shadowsocks-Python server # | |
| # Author: Teddysun <[email protected]> # | |
| # Thanks: @clowwindy <https://twitter.com/clowwindy> # | |
| # Intro: https://teddysun.com/342.html # | |
| #=================================================================# |
https://zhuanlan.zhihu.com/p/24537759
这篇文章列出了比较完备的信息,但是楼主发现有一些重要的东西还是和其他类似文章一样没有点到 (也可能是过时了而最新的签证申请变了吧)
官方目前要求只需要offer letter,存款证明,护照,TB测试结果,雅思UKVI成绩单 (如果是英国认可的英语授课学历可以不需要雅思证明,这个具体怎么操作的楼主不太清楚),在线申请的时候会填基本信息(以及最重要的CoS号码)然后缴费(用支付宝就好,信用卡也行)。缴费后只需要打印checklist的那份表格就行了,然后带上它和材料一并去签证中心即可。
官方要求更简单,只需要A marriage certificate, or a reasonable equivalent, for XXX and XXX,护照,存款证明,TB测试结果即可。在线申请填完表格付款后打印checklist一并带着前往签证中心即可。
This file contains hidden or 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 com.sun.tools.attach.VirtualMachine; | |
| public class AttachClient { | |
| public static void main(String[] args) throws Exception { | |
| String pid = args[0]; | |
| VirtualMachine vm = VirtualMachine.attach(pid); | |
| System.out.println("vm = " + vm); | |
| vm.detach(); | |
| } |
This file contains hidden or 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
| // From: http://stackoverflow.com/a/37816976 | |
| public class SnappyRecyclerView extends RecyclerView { | |
| // Use it with a horizontal LinearLayoutManager | |
| // Based on http://stackoverflow.com/a/29171652/4034572 | |
| public SnappyRecyclerView(Context context) { | |
| super(context); | |
| } |
This file contains hidden or 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 codepath.com.recyclerviewfun; | |
| import java.util.ArrayList; | |
| import java.util.List; | |
| public class Contact { | |
| private String mName; | |
| private boolean mOnline; | |
| public Contact(String name, boolean online) { |
This file contains hidden or 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
| #!/usr/bin/env bash | |
| # I've found that the "Migrate to AndroidX" converter in Android Studio doesn't work very | |
| # well, so I wrote my own script to do the simple job of converting package names. | |
| # | |
| # You can download a CSV of package names here: https://developer.android.com/topic/libraries/support-library/downloads/androidx-class-mapping.csv | |
| # | |
| # It'll run faster on a clean build because then there are fewer files to scan over. | |
| # | |
| # Uses `gsed` because I'm on a Mac. Can easily replace with `sed` if you don't have `gsed`. |
This file contains hidden or 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 com.squareup.okhttp.OkHttpClient; | |
| import java.security.cert.CertificateException; | |
| import javax.net.ssl.HostnameVerifier; | |
| import javax.net.ssl.SSLContext; | |
| import javax.net.ssl.SSLSession; | |
| import javax.net.ssl.SSLSocketFactory; | |
| import javax.net.ssl.TrustManager; | |
| import javax.net.ssl.X509TrustManager; | |
| public class OkHttpUtils { |