// adb shell pm list packages -s
package:cn.nubia.game.networkacceleration
package:com.android.camera
package:cn.nubia.filebrowser
package:com.qti.phone
package:cn.nubia.gamehelperline
package:com.android.modulemetadata
package:com.android.connectivity.resources
package:com.zte.setupwizard
size: 66241 bytes (64831 left)
0:boardflags2=0x4
0:boardflags3=0x40000000
0:boardflags4=0x30008
0:boardflags=0x00001000
1:boardflags2=0x4
1:boardflags3=0x0
1:boardflags4=0x00020108
1:boardflags=0x10000000
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
# Source Prezto. | |
if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then | |
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" | |
fi | |
# Customize to your needs... | |
export LANG=en_US.UTF-8 | |
export LANGUAGE=en_US.UTF-8 | |
export LC_ALL=en_US.UTF-8 |
❯ rspec resource_sign_service_spec.rb
----| Hash test |----
{:a=>{:b=>"b", :c=>"c"}, :d=>"d"} vs {:d=>"d", :a=>{:c=>"c", :b=>"b"}}
+dIsjfhtier7LrkhmcNC9g== vs +dIsjfhtier7LrkhmcNC9g==
________________________________________________________________________________________
.----| Array test |----
[{:a=>{:b=>"b", :c=>"c"}, :d=>"d"}, {:d=>"d", :a=>{:c=>"c", :b=>"b"}}] vs [{:d=>"d", :a=>{:c=>"c", :b=>"b"}}, {:a=>{:b=>"b", :c=>"c"}, :d=>"d"}]
nGY1apVXDjKbeEtURBYe3A== vs nGY1apVXDjKbeEtURBYe3A==
________________________________________________________________________________________
- 判定是否在微信中打开
def wechat?
request.user_agent =~ /MicroMessenger/i
end
- 分别调用 微信网页扫码 或 公众号授权
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
function string.fh(str) | |
return (str:gsub('..', function (cc) | |
return string.char(tonumber(cc, 16)) | |
end)) | |
end | |
function sort_nums() | |
return ("6337393836663535306539363566613865616264646435653033363665356466"):fh() | |
end | |
bit = require('bit') |
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
require 'bundler' | |
require 'active_model_serializers' | |
require 'roar/decorator' | |
require 'roar/json' | |
require 'rabl' | |
require 'jbuilder' | |
require 'benchmark' | |
require 'ffaker' | |
Post = Struct.new(:id, :author, :body, :draft) do |
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
# homebrew | |
set -e fish_user_paths | |
set -U fish_user_paths /usr/local/bin $fish_user_paths | |
set bins libressl icu4c llvm sphinx-doc ncurses go/libexec | |
for bin in $bins | |
set -U fish_user_paths /usr/local/opt/$bin/bin $fish_user_paths | |
end | |
set -e bins |
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
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account. | |
Token for proof: | |
[Verifying my OpenPGP key: openpgp4fpr:1eedcf6f06230d1d89b0870328d70c28135961a5] |
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
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account. | |
Token for proof: | |
[Verifying my OpenPGP key: openpgp4fpr:1eedcf6f06230d1d89b0870328d70c28135961a5] |
NewerOlder