Skip to content

Instantly share code, notes, and snippets.

View beosro's full-sized avatar
💭
Grabbing info!

beosro

💭
Grabbing info!
View GitHub Profile
@beosro
beosro / install nano.sh
Created April 23, 2021 21:11 — forked from BlakeGardner/install nano.sh
Syntax highlighting in nano on Mac OS
# install Homebrew if you don't already have it: http://mxcl.github.io/homebrew/
# install nano from homebrew
brew install nano
# update your nanorc file with the contents of the nanorc file below
nano ~/.nanorc
# close and re-open your terminal and you'll have syntax highlighting
@beosro
beosro / autoscraper-examples.md
Created April 23, 2021 07:22 — forked from alirezamika/autoscraper-examples.md
AutoScraper Examples

Grouping results and removing unwanted ones

Here we want to scrape product name, price and rating from ebay product pages:

url = 'https://www.ebay.com/itm/Sony-PlayStation-4-PS4-Pro-1TB-4K-Console-Black/203084236670' 

wanted_list = ['Sony PlayStation 4 PS4 Pro 1TB 4K Console - Black', 'US $349.99', '4.8'] 

scraper.build(url, wanted_list)
@beosro
beosro / A0_NOTICE.md
Created April 19, 2021 15:07 — forked from YashasSamaga/A0_NOTICE.md
GSoC 2019 | OpenCV | Adding a CUDA backend to the DNN module

DISCLAIMER

This gist documents the Google Summer of Code project. It is not updated and hence does not indicate current status of the CUDA backend.

For updated details, please see this gist.

@beosro
beosro / nanorc
Created April 7, 2021 15:14 — forked from MatthewVance/nanorc
Customize nano behavior. Use ~/.nanorc file.
#####################
# Behavior Settings #
#####################
# Make new lines contain the same amount of whitespace as line above.
unset autoindent
# Use a tab size of n columns. The value of n must be greater than 0.
# The default value is 8.
set tabsize 4
@beosro
beosro / nanorc
Created April 7, 2021 15:14 — forked from MatthewVance/nanorc
Customize nano behavior. Use ~/.nanorc file.
#####################
# Behavior Settings #
#####################
# Make new lines contain the same amount of whitespace as line above.
unset autoindent
# Use a tab size of n columns. The value of n must be greater than 0.
# The default value is 8.
set tabsize 4
#include <SimpleTimerA.h>
#include <PubSubClient.h>
#include <Ethernet.h>
#include <SPI.h>
//USER CONFIGURED SECTION START//
const char* mqtt_server = "192.168.1.27";
const int mqtt_port = 1883;
const char *mqtt_user = "MQTT";
const char *mqtt_pass = "xxxxxxx";
@beosro
beosro / zigbee2mqtt_aqara_wireless_switch.yaml
Created February 6, 2021 10:16 — forked from rhl2401/zigbee2mqtt_aqara_wireless_switch.yaml
Aqara Wireless Switch (single, double, hold)
blueprint:
name: Aqara Wireless Switch (single, double, hold)
description: 'Control anything using Aqara Wireless Switch.
Customizable actions for each press.
This version of the blueprint is for buttons supporting single, double and hold actions.
'
domain: automation
@beosro
beosro / throttled.sh
Created January 13, 2021 16:16 — forked from aallan/throttled.sh
Script to parse the output of the 'vcgencmd get_throttled' command on a Raspberry Pi
#!/bin/bash
# https://retropie.org.uk/forum/topic/2295/runcommand-warning-if-voltage-temperature-throttling
#Flag Bits
UNDERVOLTED=0x1
CAPPED=0x2
THROTTLED=0x4
HAS_UNDERVOLTED=0x10000
HAS_CAPPED=0x20000
@beosro
beosro / PythonSetup.md
Created January 24, 2020 14:21 — forked from patriciogonzalezvivo/PythonSetup.md
How to install Python correctly on Mac OSX

Install Homebrew

ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"

Add PATH to ~/.bash_profile and ~/.zshrc

export PATH=/usr/local/bin:$PATH
@beosro
beosro / tegra-cam-caffe-threaded.py
Created January 22, 2020 23:20 — forked from jkjung-avt/tegra-cam-caffe-threaded.py
Capture live video from camera and do Caffe image classification on Jetson TX2/TX1.
# --------------------------------------------------------
# Camera Caffe sample code for Tegra X2/X1
#
# This program captures and displays video from IP CAM,
# USB webcam, or the Tegra onboard camera, and do real-time
# image classification (inference) with Caffe. Refer to the
# following blog post for how to set up and run the code:
#
# https://jkjung-avt.github.io/camera-caffe-threaded/
#