Skip to content

Instantly share code, notes, and snippets.

View silpol's full-sized avatar
🏠
Email is best comm tool.

Andriy Tymchenko silpol

🏠
Email is best comm tool.
View GitHub Profile
@silpol
silpol / nordpool_current_date_URL.js
Created February 6, 2024 20:17
Bookmarklet for new NordPool site to show current date graph of price in Finland
javascript:function url() {
var date = new Date();
var y = date.getFullYear();
var m = date.getMonth() +1;
if(m < 10){m = '0' + m;}
var d = date.getDate();
if(d < 10){d = '0' + d;}
var date = y + "-" + m + "-" + d;
return 'https://data.nordpoolgroup.com/auction/day-ahead/prices?deliveryDate='+date+'&deliveryAreas=FI&currency=EUR';
@silpol
silpol / Andriy_oemc_hackathon_2023_AutoML.ipynb
Last active September 15, 2023 20:04
Andriy_oemc_hackathon_2023_AutoML.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@silpol
silpol / oemc_hackathon_2023.ipynb
Created September 13, 2023 11:35
Andriy_oemc_hackathon_2023.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
==========================
How Software Companies Die
==========================
- Orson Scott Card
The environment that nurtures creative programmers kills management and
marketing types - and vice versa.
Programming is the Great Game. It consumes you, body and soul. When
you're caught up in it, nothing else matters. When you emerge into
@silpol
silpol / create-package.md
Created February 3, 2023 13:49 — forked from deanrather/create-package.md
Creating a .deb Package

Creating a .deb Package

This creates a package which runs an install.sh which copies a file somewhere the below is entirely incorrect. Hopefully I'll get around to fixing it tip: this would install to the root dir & the relative path to ./install.sh would be wrong

go to project directory

cd /path/to/project
@silpol
silpol / debian-source-pkg-build.txt
Created February 3, 2023 13:49 — forked from FollowMeDown/debian-source-pkg-build.txt
How to create debian package from source
In any GNU/Linux distribution, which have a package manager on board, is recommended to install software by using "packages".
Building from source
Step 1. GPG key
The first thing you need is generate a gpg key.
Package will be signed by this key.
Run this commands in your terminal:
@silpol
silpol / gnupg_scdaemon.md
Created December 8, 2022 08:09 — forked from artizirk/gnupg_scdaemon.md
OpenPGP SSH access with Yubikey and GnuPG

OpenPGP SSH access with Yubikey and GnuPG

Yubikey, Smart Cards, OpenSC and GnuPG are pain in the ass to get working. Those snippets here sould help alleviate pain.

Notes written here should work on

  • Ubuntu 20.04 with Gnome
  • Debian 11 with Gnome
  • Linux Mint with Cinnamon (needs different environment setup, check comments)
  • Arch Linux with Gnome (pacman instead of apt)

This is not a step by step guide

@silpol
silpol / sync_trv_with_external_temp_sensor.yaml
Created December 12, 2021 11:46 — forked from bruvv/sync_trv_with_external_temp_sensor.yaml
Sync TRV with external sensor blueprint
blueprint:
name: Sync TRV tempature
description: Sync external tempature sensor with TRV tempature
domain: automation
input:
@silpol
silpol / .gitignore
Created November 5, 2018 19:04 — forked from starenka/.gitignore
fabfile to deploy flask app to nginx/supervisor/uwsgi stack
.idea/*
*.pyc