Skip to content

Instantly share code, notes, and snippets.

View silvernoo's full-sized avatar
🎯
Focusing

Flan-chan silvernoo

🎯
Focusing
View GitHub Profile
<?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/main_content"
style="@style/match">
<android.support.v7.widget.RecyclerView
android:id="@+id/recyclerview"
style="@style/match"
app:layout_behavior="@string/appbar_scrolling_view_behavior" />
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- google's material design colours from
http://www.google.com/design/spec/style/color.html#color-ui-color-palette -->
<!--reds-->
<color name="md_red_50">#FFEBEE</color>
<color name="md_red_100">#FFCDD2</color>
<color name="md_red_200">#EF9A9A</color>
@silvernoo
silvernoo / CookieSync.java
Last active August 29, 2015 14:27 — forked from qpark99/CookieSync.java
android loopj http library, WebView Cookie Sync
AsyncHttpClient mClient = new AsyncHttpClient();
CookieSyncManager.createInstance(context);
CookieStore cookieStore = new PersistentCookieStore(c);
mClient.setCookieStore(cookieStore);
public void syncCookie() {
HttpContext httpContext = mClient.getHttpContext();
CookieStore cookieStore = (CookieStore) httpContext.getAttribute(ClientContext.COOKIE_STORE);
List<Cookie> cookies = cookieStore.getCookies();
/*
* Copyright (C) 2015 Actinarium
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
config 不为空 打包自动为debug版app。且其他配置会失效。
config 为空 其他选项均有效
config文件可以hosting在自己机器上,参考格式http://m.49lancai.com/_app/switch.json
@silvernoo
silvernoo / shell
Last active August 17, 2018 15:28
aapt dump badging
zipalign
lint
java -jar resourcesproguard.jar C:\Users\Administrator\Desktop\app-release.apk -config config.xml -signature C:\Users\Administrator\Dropbox\备份\lancai.keystore lancai2014 lancai2014 android.keystore
|perl -pe 's/%([0-9a-f]{2})/sprintf("%s", pack("H2",$1))/eig'
echo "" > ~/.zsh_history & exec $SHELL -l
find |grep web|xargs rm -rf
adb shell screenrecord /sdcard/movie.mp4
PRAGMA user_version
@silvernoo
silvernoo / gist:5a3175fa2bbf55a7ae43eca986b45669
Created November 23, 2018 07:39
获取keyweb全部项目
document.querySelectorAll('.list__item-title').forEach(function(x){console.log(x.innerText)})
tar -cvpzf /mnt/pine64/system_backup.tar --exclude=/proc --exclude=/lost+found --exclude=/mnt --exclude=/sys --exclude=/media --exclude=/download /
tar -xlpvf xxx.tar -C /mnt
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import math
import time
import datetime
import math
import json
import requests
from demo_opts import get_device
clash socks 9080
clash http 9081
tar -cvpzf /mnt/pine64/system_backup.tar --exclude=/proc --exclude=/lost+found --exclude=/mnt --exclude=/sys --exclude=/media --exclude=/download /
tar -xlpvf xxx.tar -C /mnt
docker rmi $(docker images -q)