Skip to content

Instantly share code, notes, and snippets.

dentex dentex

Block or report user

Report or block dentex

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View .conkyrc
conky.config = {
use_xft = true,
font = 'Ubuntu:size=9',
use_xft = true,
override_utf8_locale = true,
update_interval = 2,
update_interval_on_battery = 8,
--total_run_times = 0,
double_buffer = true,
@dentex
dentex / sgs2cmd_bot_gh.py
Last active Nov 7, 2018
SGS2cmdBot: a Python Telegram bot to remotely control an old Samsung Galaxy S2 used as IP cam
View sgs2cmd_bot_gh.py
#!/usr/bin/python
# -*- coding: utf-8 -*-
"""
code adapted from https://github.com/ade1963/RaspberrySensorsBot
working on a Samsung Galaxy S2 (GT-I9100), with Lineage OS 14.1
dependencies to install on the SGS2:
IP Webcam android app -> https://play.google.com/store/apps/details?id=com.pas.webcam
QPython -> https://play.google.com/store/apps/details?id=org.qpython.qpy
@dentex
dentex / lirc-pi3.txt
Created Sep 25, 2018 — forked from prasanthj/lirc-pi3.txt
Getting lirc to work with Raspberry Pi 3 (Raspbian Stretch)
View lirc-pi3.txt
Notes to make IR shield (made by LinkSprite) work in Raspberry Pi 3 (bought from Amazon [1]).
The vendor has some documentation [2] but that is not complete and sufficient for Raspbian Stretch.
Following are the changes that I made to make it work.
$ sudo apt-get update
$ sudo apt-get install lirc
# Add the following lines to /etc/modules file
lirc_dev
lirc_rpi gpio_in_pin=18 gpio_out_pin=17
@dentex
dentex / dnsdynamic_update.sh
Created May 10, 2018
Bash script to update a dnsdynamic.org domain with your machine's current external IP.
View dnsdynamic_update.sh
#!/bin/bash
# script name
SC=`basename $0`
############### CONFIG ################
user="<<DNSDYNAMIC-ACCOUNT-EMAIL>>"
pw="<<DNSDYNAMIC-ACCOUNT-PASSWD>>"
domain="<<DNSDYNAMIC-DOMAIN-TO-UPDATE>>"
@dentex
dentex / Timer.sh
Last active Apr 14, 2018
Get a popup window as a timer using zenity
View Timer.sh
#!/bin/bash
# (C) 2014 Roland Latour, gpl v2
# from http://user.cavenet.com/rolandl
# uses zenity to create/move popup window as a timer
###################################################################
# modified by Samuele Rini
#
# https://github.com/dentex/
# https://dentex.github.io/
@dentex
dentex / lcd_driver.py
Last active May 11, 2017
Phython driver and usage script to run a 20x4 LCD (with a PCF8574 I2C backpack) with Raspbian
View lcd_driver.py
#!/usr/bin/python -u
# -*- coding: utf-8 -*-
"""
Copyright 2017 Samuele Rini
Modified from:
https://bitbucket.org/ryanteckltd/16x2-python-i2c-lib/
https://www.raspberrypi.org/forums/viewtopic.php?f=32&t=34261&p=378524
@dentex
dentex / buzzer.py
Last active Mar 7, 2017
Python script I'm using with Raspbian to operate a piezoelectric buzzer (connect the [+] end to a GPIO pin and the [-] to a GND pin)
View buzzer.py
#!/usr/bin/python -u
"""
MIT License
Copyright (c) 2016 Samuele Rini
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
You can’t perform that action at this time.