Skip to content

Instantly share code, notes, and snippets.

View namchuai's full-sized avatar

NamH namchuai

View GitHub Profile
@namchuai
namchuai / Getting board id mac
Created August 7, 2019 15:32
Getting board id mac
Just paste the line to terminal. I'm not created the script. Just a note for me or someone when needed.
var_ID=$(ioreg -p IODeviceTree -r -n / -d 1 | grep board-id);var_ID=${var_ID##*<\"};var_ID=${var_ID%%\">};echo $var_ID\n
@namchuai
namchuai / Getting board id mac
Created August 7, 2019 15:32
Getting board id mac
Just paste the line to terminal. I'm not created the script. Just a note for me or someone when needed.
var_ID=$(ioreg -p IODeviceTree -r -n / -d 1 | grep board-id);var_ID=${var_ID##*<\"};var_ID=${var_ID%%\">};echo $var_ID\n
@namchuai
namchuai / Getting board id mac
Created August 7, 2019 15:32
Getting board id mac
Just paste the line to terminal. I'm not created the script. Just a note for me or someone when needed.
var_ID=$(ioreg -p IODeviceTree -r -n / -d 1 | grep board-id);var_ID=${var_ID##*<\"};var_ID=${var_ID%%\">};echo $var_ID\n
@namchuai
namchuai / Getting board id mac
Created August 7, 2019 15:32
Getting board id mac
Just paste the line to terminal. I'm not created the script. Just a note for me or someone when needed.
var_ID=$(ioreg -p IODeviceTree -r -n / -d 1 | grep board-id);var_ID=${var_ID##*<\"};var_ID=${var_ID%%\">};echo $var_ID\n
@namchuai
namchuai / Getting board id mac
Created August 7, 2019 15:32
Getting board id mac
Just paste the line to terminal. I'm not created the script. Just a note for me or someone when needed.
var_ID=$(ioreg -p IODeviceTree -r -n / -d 1 | grep board-id);var_ID=${var_ID##*<\"};var_ID=${var_ID%%\">};echo $var_ID\n
@namchuai
namchuai / Getting board id mac
Created August 7, 2019 15:32
Getting board id mac
Just paste the line to terminal. I'm not created the script. Just a note for me or someone when needed.
var_ID=$(ioreg -p IODeviceTree -r -n / -d 1 | grep board-id);var_ID=${var_ID##*<\"};var_ID=${var_ID%%\">};echo $var_ID\n
@namchuai
namchuai / Getting board id mac
Created August 7, 2019 15:32
Getting board id mac
Just paste the line to terminal. I'm not created the script. Just a note for me or someone when needed.
var_ID=$(ioreg -p IODeviceTree -r -n / -d 1 | grep board-id);var_ID=${var_ID##*<\"};var_ID=${var_ID%%\">};echo $var_ID\n
@namchuai
namchuai / Getting board id mac
Created August 7, 2019 15:32
Getting board id mac
Just paste the line to terminal. I'm not created the script. Just a note for me or someone when needed.
var_ID=$(ioreg -p IODeviceTree -r -n / -d 1 | grep board-id);var_ID=${var_ID##*<\"};var_ID=${var_ID%%\">};echo $var_ID\n
@namchuai
namchuai / Getting board id mac
Created August 7, 2019 15:32
Getting board id mac
Just paste the line to terminal. I'm not created the script. Just a note for me or someone when needed.
var_ID=$(ioreg -p IODeviceTree -r -n / -d 1 | grep board-id);var_ID=${var_ID##*<\"};var_ID=${var_ID%%\">};echo $var_ID\n
@namchuai
namchuai / Getting board id mac
Created August 7, 2019 15:32
Getting board id mac
Just paste the line to terminal. I'm not created the script. Just a note for me or someone when needed.
var_ID=$(ioreg -p IODeviceTree -r -n / -d 1 | grep board-id);var_ID=${var_ID##*<\"};var_ID=${var_ID%%\">};echo $var_ID\n