Skip to content

Instantly share code, notes, and snippets.

View pkpio's full-sized avatar
👋

Praveen Pendyala pkpio

👋
View GitHub Profile
...
- uses: microsoft/[email protected]
name: Run APK size comparision
with:
baseAppPath: test/assets/test.apk
targetAppPath: test/assets/test.apk
summaryOutputPath: summary.md
...
@pkpio
pkpio / setup-docker.sh
Last active September 24, 2020 22:26
Install docker and docker-compose on ubuntu server raspberry pi
echo "============= Installing docker ==========="
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
rm get-docker.sh
sudo usermod -aG docker ${USER}
echo "============= Installing docker-compose ==========="
sudo apt install libffi-dev libssl-dev
sudo apt install python3-dev
sudo apt install -y python3 python3-pip
while true; do
# Reconnect to device - just in case
adb connect 192.168.178.79
sleep 1
# Reconnect the game - just in case
adb shell input tap 1526 675 # Press cross on reconnect window
#adb shell input tap 877 1027 #1024 1076 # normal reconnect
#adb shell input tap 1250 1100 # network failures reconnect
sleep 5
// Column definition
MPI_Type_vector(DIM_LEN, 1, DIM_LEN, MPI_INT, &col_type);
// Redefine cols with custom extent
MPI_Datatype ncol_type;
MPI_Type_create_resized(col_type, 0, sizeof(int), &ncol_type);
// Scatter using new type
MPI_Scatterv(mat_2, {8, 8, 8, 8}, {0, 0, 8, 8}, ncol_type, mat_2, DIM_LEN, ncol_type, 0, MPI_COMM_WORLD);
MPI_Datatype row_type;
MPI_Datatype col_type;
// Row definition
MPI_Type_vector(DIM_LEN, DIM_LEN, 0, MPI_INT, &row_type);
MPI_Type_commit(&row_type);
// Column definition
MPI_Type_vector(DIM_LEN, 1, DIM_LEN, MPI_INT, &col_type);
MPI_Type_commit(&col_type);
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- google's material design colours from
http://www.google.com/design/spec/style/color.html#color-ui-color-palette -->
<!--reds-->
<color name="md_red_50">#fde0dc</color>
<color name="md_red_100">#f9bdbb</color>
<color name="md_red_200">#f69988</color>
@pkpio
pkpio / timings.md
Last active August 11, 2017 19:44
Timings brainfuck

You have reached Praveen, almost. You may find me during:

+++++ +++++
+++++ +++++
+++++ +++++
+++++ +++++
+++++ +++++

-.
@pkpio
pkpio / send.php
Created August 15, 2014 07:51
SMS sending script
<?php
//Your authentication key
$authKey = "4187AFDl0tFG53ebc36e";
//Multiple mobiles numbers seperated by comma
$mobileNumber = "8828829765";
//Sender ID,While using route4 sender id should be 6 characters long.
$senderId = "testid";
@pkpio
pkpio / sample.c
Created July 24, 2014 08:40
Some testing with C
#include <stdio.h>
#include <stdlib.h>
int main(){
int *ptr_one;
ptr_one = (int *)malloc(sizeof(int)*10);
if (ptr_one == 0)
{
@pkpio
pkpio / kern.log
Last active August 29, 2015 14:04
Paging error log
Jul 23 18:07:46 praveen kernel: [ 6206.209450] dlfb_ops_setcolreg called
Jul 23 18:07:46 praveen kernel: [ 6206.209452] dlfb_ops_setcolreg called
Jul 23 18:07:47 praveen kernel: [ 6207.516714] dlfb_ops_blank called
Jul 23 18:07:47 praveen kernel: [ 6207.516715] udlfb: /dev/fb2 FB_BLANK mode 1 --> 0
Jul 23 18:07:47 praveen kernel: [ 6207.516716] dlfb_get_urb called
Jul 23 18:07:47 praveen kernel: [ 6207.516717] dlfb_vidreg_lock called
Jul 23 18:07:47 praveen kernel: [ 6207.516718] dlfb_set_register called
Jul 23 18:07:47 praveen kernel: [ 6207.516718] dlfb_blanking called
Jul 23 18:07:47 praveen kernel: [ 6207.516718] dlfb_set_register called
Jul 23 18:07:47 praveen kernel: [ 6207.516719] dlfb_vidreg_unlock called