Skip to content

Instantly share code, notes, and snippets.

AndroPlus AndroPlus-org

Block or report user

Report or block AndroPlus-org

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@AndroPlus-org
AndroPlus-org / nginx_update.sh
Last active Feb 21, 2016
手探りで作ってみたnginxをngx_brotli入りでビルドするスクリプト 無停止でアップグレードするにはどうすればいいのか…
View nginx_update.sh
#!/bin/bash
echo -n "Enter version number: "
read nginxv
# ngx_brotliの更新
cd ~/nginx-build/ngx_brotli/
git pull
if [ $? -eq 0 ]; then
@AndroPlus-org
AndroPlus-org / sony.xml
Created Apr 30, 2016
local manifest file for Sony Xperia Z5 kitakami r2 device
View sony.xml
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<remote name="sony" fetch="git://github.com/sonyxperiadev/" />
<remote name="androplus" fetch="git://github.com/AndroPlus-org/" />
<remote name="omnirom" fetch="git://github.com/omnirom/" />
<remove-project name="device/generic/mips"/>
<remove-project name="device/generic/mini-emulator-mips"/>
<remove-project name="device/generic/mini-emulator-arm64"/>
@AndroPlus-org
AndroPlus-org / gdrive_list.sh
Created Sep 30, 2016
gdrive (https://github.com/prasmussen/gdrive) で、Google ドライブのルートディレクトリにある特定のディレクトリのIDを取得する
View gdrive_list.sh
#!/bin/sh
# 例ではディレクトリ名に「dora」を含むものだけを表示している
# 複数一致しても最初のディレクトリのIDしか返せないゴミスクリプト
gfolderlist=`gdrive list --max 1 --name-width 0 --query "trashed = false and 'me' in owners and 'root' in parents and mimeType = 'application/vnd.google-apps.folder' and name contains 'dora'"`
gfoldernames=`echo ${gfolderlist} | sed "s@Id Name Type Size Created \([a-zA-Z0-9]*\).*@\1@"`
echo ${gfoldernames}
@AndroPlus-org
AndroPlus-org / Upload_gdrive.ps1
Last active Jun 15, 2018
Upload recorded files to Google Drive (use with Mirakurun + EPGStation + gdrive)
View Upload_gdrive.ps1
#config.jsonの変更が必要です
#識別するため%ID%をファイル名の最後に追加
#"recordedFormat": "%YEAR%年%MONTH%月%DAY%日%HOUR%時%MIN%分-
#Googleドライブでは.m2ts拡張子でないとエンコードされません
#"fileExtension": ".m2ts",
#プログラムID
$program_id = "$env:PROGRAMID"
#====================ユーザ設定====================
@AndroPlus-org
AndroPlus-org / Upload.ps1
Last active Jun 17, 2018
Upload recorded files to Google Drive (use with Mirakurun + EPGStation + rclone)
View Upload.ps1
#config.jsonの変更が必要です
#識別するため%ID%をファイル名の最後に追加
#"recordedFormat": "%YEAR%年%MONTH%月%DAY%日%HOUR%時%MIN%分-
#Googleドライブでは.m2ts拡張子でないとエンコードされません
#"fileExtension": ".m2ts",
#プログラムID
$program_id = "$env:PROGRAMID"
#今日の月
@AndroPlus-org
AndroPlus-org / check_and_remove.ps1
Created Jul 10, 2018
Mirakurunのprograms.jsonとEPGStationのreserves.jsonの先頭が0で埋まっている時に削除して作り直させる
View check_and_remove.ps1
$mirak_url = "http://192.168.1.xxx:40772"
$epg_url = "http://192.168.1.xxx:8888"
Function Convert-FromUnixDate ($UnixDate) {
[timezone]::CurrentTimeZone.ToLocalTime(([datetime]'1/1/1970').AddSeconds($UnixDate))
}
<#
#MirakurunのAPIを確認し、チューナーが使用中でない状態になるまで待機する
Write-Output "Checking tuner status..."
@AndroPlus-org
AndroPlus-org / gist:a2624b59238ba7a8b41a0c2a5d32215e
Created Jan 6, 2017
Fix AICP's "G" icon when mobile network is 4G+ (not confirmed)
View gist:a2624b59238ba7a8b41a0c2a5d32215e
https://github.com/AICP/frameworks_base/blob/n7.1/packages/SystemUI/src/com/android/systemui/statusbar/policy/MobileSignalController.java#L207
- mNetworkToIconLookup.put(TelephonyManager.NETWORK_TYPE_LTE, TelephonyIcons.LTE);
+ mNetworkToIconLookup.put(TelephonyManager.NETWORK_TYPE_LTE, TelephonyIcons.LTE);
+ mNetworkToIconLookup.put(TelephonyManager.NETWORK_TYPE_LTE_CA, TelephonyIcons.LTE_PLUS);
View fail.log
04-09 21:19:59.296 9954 9954 D OpenGLRenderer: Skia GL Pipeline
04-09 21:19:59.338 9954 9954 D NetworkSecurityConfig: No Network Security Config specified, using platform default
04-09 21:19:59.359 9954 9954 W AppScannerSupport: Performing initial scan
04-09 21:19:59.381 1477 2154 I ActivityManager: Killing 9449:android.process.acore/u0a20 (adj 904): empty #17
04-09 21:19:59.383 1477 1512 W libprocessgroup: kill(-9449, 9) failed: No such process
04-09 21:19:59.409 1477 2154 D CountryDetector: No listener is left
04-09 21:19:59.411 889 889 I Zygote : Process 9449 exited due to signal (9)
04-09 21:19:59.423 1477 1512 W libprocessgroup: kill(-9449, 9) failed: No such process
04-09 21:19:59.423 1477 1512 I libprocessgroup: Successfully killed process cgroup uid 10020 pid 9449 in 41ms
04-09 21:20:01.398 1477 4713 W ActivityManager: Background start not allowed: service Intent { act=com.maxmpz.audioplayer.ACTION_SCAN_DIRS cmp=com.maxmpz.audioplayer/.scanner.ScanDispatcherService (has extras)
@AndroPlus-org
AndroPlus-org / show_fps.sh
Last active Jun 1, 2019
Show FPS on OnePlus 7 Pro
View show_fps.sh
#!/bin/bash
max=50
for ((i=0; i < $max; i++)); do
adb shell su -c "cat /sys/devices/platform/soc/ae00000.qcom,mdss_mdp/drm/card0/sde-crtc-0/measured_fps"
echo -n -e "\n"
done
@AndroPlus-org
AndroPlus-org / popup.xml
Last active Jun 14, 2019
Popup OnePlus 7 Pro camera when unlocked (Tasker)
View popup.xml
<TaskerData sr="" dvi="1" tv="5.8.0.beta.5">
<Profile sr="prof79" ve="2">
<cdate>1560391986044</cdate>
<edate>1560484093923</edate>
<id>79</id>
<mid0>80</mid0>
<nme>Popup</nme>
<Event sr="con0" ve="2">
<code>208</code>
<pri>0</pri>
You can’t perform that action at this time.