Instantly share code, notes, and snippets.

View r47.xml
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<!-- 8.1.0_r47 -->
<remove-project name="AICP/build" />
<project path="build/make" name="mordiford/build" groups="pdk" remote="aicp" >
<copyfile src="core/root.mk" dest="Makefile" />
<linkfile src="CleanSpec.mk" dest="build/CleanSpec.mk" />
<linkfile src="buildspec.mk.default" dest="build/buildspec.mk.default" />
<linkfile src="core" dest="build/core" />
<linkfile src="envsetup.sh" dest="build/envsetup.sh" />
View genwebfonts.py
#!/usr/bin/env fontforge -lang=py -script
# -*- coding: utf-8 -*-
import fontforge
import sys
import os
def _select_codepoint(codepoint, selection, more=True):
more_str = 'more' if more else 'less'
if isinstance(codepoint, tuple) and len(codepoint) == 2:
View about.html
<style>
.section {
text-align: right;
}
.section strong {
font-weight: 500;
font-size: 32px;
line-height: 48px;
display: block;
View db_migrate
Starting mastodon_db_1 ... done
Starting mastodon_redis_1 ... done
Migrating to FixAccountsUniqueIndex (20180528141303)
rails aborted!
SyntaxError: /mastodon/db/migrate/20180528141303_fix_accounts_unique_index.rb:73: syntax error, unexpected keyword_rescue, expecting keyword_end
rescue ActiveRecord::RecordNotUnique
^
/mastodon/db/migrate/20180528141303_fix_accounts_unique_index.rb:79: syntax error, unexpected keyword_rescue, expecting keyword_end
rescue ActiveRecord::RecordNotUnique
^
View build_opengapps.sh
#!/bin/bash
# ビルド用
LANG=C
export ALLOW_MISSING_DEPENDENCIES=true
# download
./download_sources.sh --shallow arm64
make clean
make arm64-27-nano
View dd
root@cloud:~# dd if=/dev/sdc1 of=/dev/sdb1 bs=4K conv=noerror,sync status=progress
470333775872 bytes (470 GB, 438 GiB) copied, 5336.52 s, 88.1 MB/s
dd: '/dev/sdc1' の読み込みエラー: 入力/出力エラーです
114827585+0 レコード入力
114827585+0 レコード出力
470333788160 bytes (470 GB, 438 GiB) copied, 5339.42 s, 88.1 MB/s
470333796352 bytes (470 GB, 438 GiB) copied, 5339.45 s, 88.1 MB/s
dd: '/dev/sdc1' の読み込みエラー: 入力/出力エラーです
114827586+1 レコード入力
114827587+0 レコード出力
View 201804301536_ocn
[ 72% 71750/98366] target thumb C++: libcameraservice_32 <= frameworks/av/services/camera/libcameraservice/utils/CameraTraces.cpp [4192/9607]
[ 72% 71751/98366] build /nvme1/lindwurm/aicp/out/target/product/ocn/obj/ETC/nonplat_file_contexts_intermediates/nonplat_file_contexts
FAILED: /nvme1/lindwurm/aicp/out/target/product/ocn/obj/ETC/nonplat_file_contexts_intermediates/nonplat_file_contexts
/bin/bash -c "(m4 -s system/sepolicy/vendor/file_contexts /nvme1/lindwurm/aicp/out/target/product/ocn/obj/ETC/sectxfile_nl_intermediates/sectxfile_nl device/qcom/sepolicy/common/file_contexts /nvme1/lindwurm/aicp/out/target/prod
uct/ocn/obj/ETC/sectxfile_nl_intermediates/sectxfile_nl device/qcom/sepolicy/msm8998/file_contexts /nvme1/lindwurm/aicp/out/target/product/ocn/obj/ETC/sectxfile_nl_intermediates/sectxfile_nl device/qcom/sepolicy/test/file_contexts
/nvme1/lindwurm/aicp/out/target/product/ocn/obj/ETC/sec
View Maintainer_Application.md

Prerequisites for device maintaining

Application procedure

  • Applicants with history of "conflicts" won't be accepted in any way. You should be aware of this before applying.
  • Applicants should drop a message to one team member only. The member will forward the message to the reviewers and give you the appropriate contact information for your reviewer. "Spamming" more than one team member will result in an immediate rejection.
  • Applicants contacting the reviewers on any other communication platform but Google Hangouts will be rejected as they clearly didn't read this!
  • Applicants must be aware of the fact that the team's language for communicating is ENGLISH.
  • Continued support will be needed, so ask yourself: "Can/Do I want to provide continuous support?". AICP is not a "submit & forget" home for buildbots. We don't want people who build numerous custom ROMs. This is not the purpose of maintaining from our point of view. You need to be willing to continue maintaining the device b
View 20180405_023459_aicp_zeroltekdi.log
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=8.1.0
TARGET_PRODUCT=aicp_zeroltekdi
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=generic
TARGET_2ND_ARCH=arm
View .zshrc
# zshrc
# License : MIT
# http://mollifier.mit-license.org/
# fork from https://gist.github.com/mollifier/4979906/43d1c77344dd59fa119ca5b75e7a54e01e668710
########################################
# 補完とプロンプト
autoload -Uz compinit promptinit
compinit
promptinit