Skip to content

Instantly share code, notes, and snippets.

View abhiTronix's full-sized avatar
:electron:
I may be slow to respond.

Abhishek Thakur abhiTronix

:electron:
I may be slow to respond.
View GitHub Profile
@abhiTronix
abhiTronix / Fast.ai install script.py
Last active September 27, 2018 06:45 — forked from carbocation/Fast.ai install script.py
Fast.ai Install on Google Colab
!pip install pathlib
!pip install fastai
!apt-get -qq install -y libsm6 libxext6 && pip install -q -U opencv-python
import cv2
from os import path
from wheel.pep425tags import get_abbr_impl, get_impl_ver, get_abi_tag
platform = '{}{}-{}'.format(get_abbr_impl(), get_impl_ver(), get_abi_tag())
accelerator = 'cu80' if path.exists('/opt/bin/nvidia-smi') else 'cpu'
@abhiTronix
abhiTronix / reboot.py
Created February 7, 2020 07:19 — forked from patrickelectric/reboot.py
reboot python script to pixhawk
#!/usr/bin/env python
from pymavlink import mavutil
import sys
import time
class Rebooter(object):
def __init__(self, connection_string, baudrate=None):
self.master = None
self.source_system = 13
@abhiTronix
abhiTronix / web-servers.md
Created August 20, 2020 11:51 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000