Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/bash
sed -ne "/$1/,\$p" $2
@jankowskib
jankowskib / github_search.sh
Last active October 31, 2017 19:18
Search for file names in github
for i in {1..34}; do curl -v -H "Authorization: token XXXX" -H 'Accept: application/vnd.github.mercy-preview+json' "https://api.github.com/search/code?q=cmd+in:path+path:include/dt-bindings/lcm/+extension:dtsi&page=$i" >> test2.json; done
#then
cat test2.json | ack 'name.*dtsi' | sort -u
@jankowskib
jankowskib / jd936x.dtsi
Created October 31, 2017 23:59
Test for DTSI lcm driver for mtk
/*
* Mediatek's LCM driver device tree
*
* Copyright (c) 2013 MediaTek Co., Ltd.
* (c) 2017 Bartosz Jankowski
*
* http://www.mediatek.com
*
*/