Skip to content

Instantly share code, notes, and snippets.

View osleonard's full-sized avatar

Akinmolayan Olushola osleonard

View GitHub Profile
@osleonard
osleonard / Install LT4 21.1.md
Created October 5, 2020 19:50 — forked from jetsonhacks/Install LT4 21.1.md
Install LT4 21.1 on Jetson TK1

For best results, you should read through the official NVIDIA documentation found on:

https://developer.nvidia.com/linux-tegra-rel-21

In particular, the Quick Start Guide.

For this process you will need:

  • A host desktop or laptop computer running Ubuntu Linux 12.04 is officially recommended. In practice, this may be a virtual machine, I have used VirtualBox in the past. Also, I've successfully flashed from Ubuntu Linux 14.04. Your mileage may vary.
  • Micro USB cable provided with the Jetson TK1 kit
  • Jetson TK1 and power supply

Keybase proof

I hereby claim:

  • I am osleonard on github.
  • I am osleonard (https://keybase.io/osleonard) on keybase.
  • I have a public key ASAqF8bicb7SmeYgrDNN4xkw6fmVtddOhCR_0J2xHMhxtgo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am osleonard on github.
  • I am osleonard (https://keybase.io/osleonard) on keybase.
  • I have a public key ASArbR6CE7Dwgc7SA4gfRC385cqpLqiRpabBPTfOGQZaRgo

To claim this, I am signing this object:

<?php
$str = ["NORTH", "EAST", "WEST", "SOUTH", "WEST", "WEST"];
function dirReduc($str)
{
//check if parameter is array
if (!array($str)) {
throw new InvalidArgumentException('Parameter supplied is not an array');
}
//let ensure that atleast two points are supplied
@osleonard
osleonard / regex.rb
Created December 3, 2013 10:11
Help with regular expression,i want a regular expression to map to something like this AUO/11/794 or AUO/**/****
(?<School>\d{auo-AUO})\/(?<year>\d{11})\/(?<number>\d{10000})
@osleonard
osleonard / ema.rb
Created October 9, 2013 11:54 — forked from bjhaid/ema.rb
require 'net/telnet'
def get_imsi(array_of_msisdns, &block)
ema = Net::Telnet::new("Host" => "#{HOST}",
"Port" => "#{PORT}",
"Timeout" => 10,
"Prompt" => /Enter command:/)
ema.cmd("LOGIN:#{USERNAME}:#{PASSWORD};")
ema.waitfor(/Enter command:/)