User Tools

Site Tools


private_bash_history

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

private_bash_history [2021/06/16 14:16]
— (current)
Line 1: Line 1:
-====== bash_history ====== 
  
-Just some snippets. Probaby dupes from elsewhere on this wiki too. 
- 
-<file bash .bash_history> 
-grep heapinfo2 CE4599994290.20180428-02.txt | tr -s ' ' | cut -d " " -f 1,2,8 | \ 
-sed 's/\([0-9\-]\+\) \([0-9:]\+\).[0-9]\+ \([0-9a-f]\+\)/\1,\2 0x\3/; s/.*/printf "%s %d" &/e' | \ 
-gnuplot -p -e 'set timefmt "%m-%d,%H:%M:%S"; set xdata time; set format x "%d,%H:%M"; 
-set xrange ["04-27,20:04:28":"04-27,23:55:19"]; plot "/dev/stdin" using 1:2 with lines' 
- 
-gnuplot -p -e 'set terminal dumb `tput cols` `tput lines`/2; ...' 
- 
-ping -c 1 teamcity.eng.roku.com > /dev/null || sudo openconnect -l --authgroup=CORP-ACCESS -u dblume -b vpn.roku.com 
-sudo openconnect -l --authgroup=CORP-ACCESS -u dblume --dtls-ciphers PSK-NEGOTIATE:AES256-SHA:AES128-SHA:DES-CBC3-SHA vpn.roku.com 
-egrep "openconnect.*(Established|dead peer|exiting)" /var/log/syslog | tail | clip 
-sudo kill $(pidof openconnect) 
-history -a; sync; sudo systemctl suspend 
- 
-echo "irremote on" | nc 10.15.26.5 8080 
- 
-cat amarillo_1080.json | jq '.testResults|del(.finalScore,.numberOfWorkloads)|with_entries(.value |= .avgFps)' > amarillo_1080.txt 
-cat gilbert.json | jq '.testResults|del(.finalScore,.numberOfWorkloads)|with_entries(.value |= .avgFps)' > gilbert.txt 
-paste amarillo_1080.txt gilbert.txt | column -s $'\t' -t 
- 
-cscope -b -q -k -R 
-cscope -d 
-ctags -R * 
- 
-http 10.15.24.248:8060/query/device-info | grep device-name 
-curl -X POST "http://`roku_dev_target`:8060/launch/dev?contentID=80103734&mediatype=movie" 
-http POST $ROKU_DEV_TARGET:8060/launch/dev contentID==80103734 mediatype==movie 
-http POST $ROKU_DEV_TARGET:8060/dial/Netflix 
-http $ROKU_DEV_TARGET:8060/dial/Netflix clientDialVer==2.1 
-http DELETE $ROKU_DEV_TARGET:8060/dial/Netflix/run 
-curl -X POST "http://`roku_dev_target`:8060/launch/dev?nflx_launch_src=tile&nflx_param=m%3D80133551%26trackId%3D14170286%26%26source_type_payload%3DgroupIndex%253D1%2526tileIndex%253D0%2526action%253Dplayback%2526movieId%253D80133551%2526trackId%253D14170286" 
- 
-killall -3 gnome-shell 
- 
-p4 changes -l -u dblume -s submitted ...@`date --date="1 week ago" +"%Y/%m/%d"`,@now 
-p4 opened -C dblume-edge ... 
- 
-roku_dev_target && make BUILD_PRODUCT=austin enable-telnet deploy -j12 
- 
-cat << "" | cut -d " " -f 3 | tr -d "[]" | addr2line -e builds/cooper/src/platform/gibbon/netflix | xargs -d '\n' realpath --relative-to=. | vim - 
- 
-http $ROKU_DEV_TARGET:8060/query/apps | xmllint --xpath '//app[text()="Netflix"]/@id' - | cut -d\" -f 2 
- 
-http DELETE r1231966.raehub.com:8888/REST/v1/firewall/portforwarding/8100 
-http PUT r1231966.raehub.com:8888/REST/v1/firewall/portforwarding srcPort=8100 dstPort=80 dstIpAddress=`roku_dev_target` 
-curl -# --user rokudev:ahov --digest -F "archive=@builds/gilbert/src/platform/gibbon/gibbon_squashfs.bin" -F "mysubmit=Install" --output /dev/null --write-out "%{http_code}\n" http://r3000530.raehub.com:8100/plugin_install 
- 
-# For finding an element from a dd.xml response. Use local-name because of the default XML namespace 
-curl -s http://192.168.1.135:8060/dial/dd.xml | xmllint --xpath 'string(//*[local-name()="friendlyName"])' - 
- 
-ssh -i $HOME/.ssh/dblume_trusteng_amazon_certproxy.pem ec2-user@10.228.69.62 
- 
-make -C builds/cooper roku_deploy_squashfs/fast 
- 
-find . -name \*.py | xargs grep -nH csv 
-grep supportUser ?(4.2|5.[0123])/partner/dpi/roku2/RokuSystem.cpp 
-top -b -H -n 1 -p <pid> 
-ps -LF <pid> 
-ps -eF | egrep "PID|tmux" 
- 
-# How to inspect what's in a signed package: 
-  cd dir-with-your-pkg 
-  ~/link_to_p4_root/apps/tools/ubuntu/bin/app-package unpackage your-pkg.pkg -p your-signing-pw -o your-pkg.squashfs 
-  ~/link_to_p4_root/apps/tools/ubuntu/bin/unsquashfs_roku -ll 5.2/builds/720ui/src/platform/gibbon/gibbon_squashfs.bin 
- 
-for files in $(diff -rq dev/apps/netflix/5.0/partner/ r8.1.0/apps/netflix/5.0/partner/ 2>/dev/null| grep 'differ$' | sed 's/^Files \(.\+\) and \(.\+\) differ/\1:\2/g'); do vimdiff "${files%:*}" "${files#*:}"; done 
-for files in $(diff -rq dev/apps/netflix/5.0/partner/ r8.1.0/apps/netflix/5.0/partner/ | grep 'differ$' | sed "s/^Files //g;s/ differ$//g;s/ and /:/g"); do vimdiff ${files%:*} ${files#*:}; done 
- 
-tail -n +$(sed -n '/Starting/=' ~/log/monitor_network.txt | tail -1) ~/log/monitor_network.txt 
- 
-VER=${PWD:(-3)}; BUILD=1080ui; ../../../../../os/apps/tools/ubuntu/bin/app-package package builds/$BUILD/src/platform/gibbon/gibbon_cramfs.bin -n Netflix/$VER -k keys/keys_dev_id_dc22279d0486a201e4672d5dc88bc9c66de38d77.pkg -p $(gpg --decrypt /home/dblume/Documents/netflix_secrets.txt.gpg | grep "Netflix  " | awk '{print $2}') -o "$HOME/Downloads/netflix$VER-$BUILD.pkg" 
- 
-# Use xmllint to extract just the field you want from the data. 
-curl -s -H "Content-Type: text/xml" -H "Accept-Encoding: identity" -H "x-roku-reserved-dev-Id: 1a2f5fd09622fd2b68be13fff92f09aebb6837fd" -H "x-roku-reserved-serial-number: 1GO0000027E6" -H "x-roku-reserved-model-name: 4200X" -H "x-roku-reserved-Version: 999.99E99999X" http://api.interstella.eng.roku.com/v2/channel-service.svc/get-channel-data/12/b4c2e879-1692-4c15-a973-f338a3ee8eec | tail -1 | xmllint --xpath 'string(//channel/version)' - && echo 
- 
-BUILD=1080ui; VER=${PWD:(-3)}.$(grep build_version builds/$BUILD/src/platform/gibbon/manifest | cut -c 16-); ../../../../../apps/tools/ubuntu/bin/app-package package builds/$BUILD/src/platform/gibbon/gibbon_squashfs.bin -n Netflix/$VER -k keys/keys_dev_id_dc22279d0486a201e4672d5dc88bc9c66de38d77.pkg -p $(gpg --decrypt /home/dblume/Documents/netflix_secrets.txt.gpg | grep "Netflix  " | awk '{print $2}') -o "$HOME/Downloads/netflix$VER.pkg"; echo "$HOME/Downloads/netflix$VER.pkg" 
-VER=208.1080.0; ../../../../../apps/tools/ubuntu/bin/app-package package build/benchflix_squashfs.bin -n Benchflix/$VER -k ../5.3/keys/keys_dev_id_dc22279d0486a201e4672d5dc88bc9c66de38d77.pkg -p $(gpg --decrypt /home/dblume/Documents/netflix_secrets.txt.gpg | grep "Netflix  " | awk '{print $2}') -o "$HOME/Downloads/benchflix$VER.pkg"; echo "$HOME/Downloads/benchflix$VER.pkg" 
- 
-# Get all the product prefixes for Reno 
-awk -F',' -v q="'" '$2 == "Reno" {print q$1q","}' ORS=" " ~/bin/dim_product_fields.csv 
-awk -F',' '$2 == "Reno" {printf "'\''%s'\'', ", $1}' ~/bin/dim_product_fields.csv 
- 
-# Update a CSV file for the Channel Store team. 
-sqlite3 -header -csv bs.ndk.proc.db "SELECT max(date) as date, platform, event FROM events WHERE event <= '6' GROUP BY platform;" > $P4ROOT/users/dblume/home/bin/cert_proxy/events_channel_versions.csv 
- 
-pidof tmux | tr " " "\n" | xargs -I {} ps -p {} -o pid,%cpu,%mem,cmd 
-ps -p $(pidof tmux | tr " " ",") -o pid,%cpu,%mem,cmd 
- 
-</file> 
private_bash_history.1623878206.txt.gz ยท Last modified: 2021/06/16 14:16 (external edit)