Skip to content

Instantly share code, notes, and snippets.

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

beosro

💭
Grabbing info!
View GitHub Profile
@roustem
roustem / gist:a59364b5b8128d0f646bfb144983df02
Last active May 19, 2026 10:40
/etc/hosts changes to remove ads in Apple News
# Based on info from https://github.com/froggeric/DNS-blocklists
127.0.0.1 advertising.apple.com
127.0.0.1 banners.itunes.apple.com
127.0.0.1 iad.apple.com
127.0.0.1 iadcontent.apple.com
127.0.0.1 iadctest.qwapi.com
127.0.0.1 iadmoo.apple.com
127.0.0.1 iadworkbench.apple.com
127.0.0.1 launch.apple.com

nvm allows you to quickly install and use different versions of node via the command line.

curl

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
@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.

#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 / 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
@e-minguez
e-minguez / 01-podman-pod-nextcloud.md
Last active June 14, 2025 10:14
podman pod nextcloud
  • Some variables to avoid writting too much and create some folders:
export PODNAME="nextcloud"
mkdir -p ~/containers/nextcloud/{db,nginx,html}
  • Copy the nginx.conf file:
@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/
#
@beosro
beosro / camera-ssd-threaded.py
Created January 22, 2020 23:15 — forked from jkjung-avt/camera-ssd-threaded.py
Capture live video from camera and do Single-Shot Multibox Detector (SSD) object detetion in Caffe on Jetson TX2/TX1.
# --------------------------------------------------------
# Camera Single-Shot Multibox Detector (SSD) 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
# object detection with Single-Shot Multibox Detector (SSD)
# in Caffe. Refer to the following blog post for how to set
# up and run the code:
#
@beosro
beosro / mjpeg2.py
Created November 8, 2019 22:53 — forked from walchko/mjpeg2.py
a better mjpeg streamer in python using opencv 3.x
#!/usr/bin/env python
# MIT License
# (c) 2017 Kevin J. Walchko
from __future__ import print_function
import cv2
from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer
import time
import argparse
@beosro
beosro / rpi3_iot_server.md
Created April 26, 2019 15:27 — forked from xoseperez/rpi3_iot_server.md
Raspberry Pi 3 with Mosquitto, Node-RED, InfluxDB, Grafana and Nginx (as a reverse proxy)