Skip to content

Instantly share code, notes, and snippets.

View pozgo's full-sized avatar
💭
¯\_(ツ)_/¯

Ozzy pozgo

💭
¯\_(ツ)_/¯
View GitHub Profile
@pozgo
pozgo / I2C_LCD_driver.py
Created March 9, 2017 23:38
I2C LCD Driver
#!/usr/bin/python
# i2c bus (0 -- original Pi, 1 -- Rev 2 Pi)
I2CBUS = 1
# LCD Address
ADDRESS = 0x3f
import smbus
from time import sleep
@pozgo
pozgo / polinux-functions
Created August 18, 2017 21:49
Bash Basic Functions
#!/usr/bin/env bash
# Bash Colors
green=$(tput setaf 2)
red=$(tput setaf 1)
white=$(tput setaf 7)
yellow=$(tput setaf 3)
blue=$(tput setaf 4)
purple=$(tput setaf 5)
cyan=$(tput setaf 6)
bold=$(tput bold)
@pozgo
pozgo / radio
Created January 7, 2020 23:04
Polskie Radio Python Script
#!/usr/local/bin/python3
# Requirements:
# OS - mplayer
# Python3 - sudo pip3 install inquirer termcolor
import os
import sys
import inquirer
import termcolor
from termcolor import colored
@pozgo
pozgo / provision.sh
Last active May 27, 2024 08:18
Quick provision Debian 12 with OhMyPosh neovim and kickstart and few base packages
#!/bin/bash
set -eu
export TERM=xterm
# Bash Colors
green=`tput setaf 2`
bold=`tput bold`
reset=`tput sgr0`
# Functions
log() {
if [[ "$@" ]]; then echo "${bold}${green}[LOG `date +'%T'`]${reset} $@";