Skip to content

Instantly share code, notes, and snippets.

View kevalpatel2106's full-sized avatar
πŸ––
Live long and prosper

Keval Patel kevalpatel2106

πŸ––
Live long and prosper
  • Bristol, UK
  • 07:49 (UTC)
View GitHub Profile
nano monitor-temp.py
pi@raspberrypi:~ $ /opt/vc/bin/vcgencmd measure_temp
temp=56.9'C
/opt/vc/bin/vcgencmd measure_temp
sudo gitlab-ctl reconfigure
sudo curl -sS https://packages.gitlab.com/install/repositories/gitlab/raspberry-pi2/script.deb.sh | sudo bash
sudo apt-get install gitlab-ce
curl https://packages.gitlab.com/gpg.key | sudo apt-key add -
sudo apt-get install curl openssh-server ca-certificates postfix apt-transport-https
//Here is the mount drive function which I called in onCreate of my activity.
private void mountDrive() throws IOException, InterruptedException {
Process mProcess = Runtime.getRuntime().exec("/system/xbin/su");
BufferedReader reader = new BufferedReader(new InputStreamReader(mProcess.getInputStream()));
DataOutputStream dos = new DataOutputStream(mProcess.getOutputStream());
dos.writeBytes("mkdir /mnt/usb\n");
dos.flush();
dos.writeBytes("mount -t vfat -o rw /dev/block/sda1 /mnt/usb\n");
@kevalpatel2106
kevalpatel2106 / employe.json
Created April 27, 2017 14:49
Interview Test
{
"status": "success",
"count": 11,
"employee": [
{
"name": {
"first_name": "Keval",
"last_name": "Patel"
},
"experience": 2,

Keybase proof

I hereby claim:

  • I am kevalpatel2106 on github.
  • I am kevalpatel2106 (https://keybase.io/kevalpatel2106) on keybase.
  • I have a public key whose fingerprint is 340D 657D E497 6120 75B1 2EEF 32D5 B008 6528 DF6C

To claim this, I am signing this object: