// 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
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
ROUTE_PATTERN = { | |
/^\d+$/ => '<id>', | |
/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/ => '<uuid>' | |
}.freeze | |
def to_http_route(path, patterns = ROUTE_PATTERN) | |
path.downcase.split('/').map do |segment| | |
next segment if segment.empty? | |
patterns.find { |pattern, _| segment =~ pattern }&.last || segment | |
end.join('/') |
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==
________________________________________________________________________________________
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] |
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
# 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
# frozen_string_literal: true | |
require 'oj' | |
require 'rabl' | |
require 'active_model_serializers' | |
require 'benchmark/memory' | |
require 'benchmark/ips' | |
Rabl.configure do |c| | |
c.view_paths << 'app/views' |
NewerOlder