Skip to content

Instantly share code, notes, and snippets.

View epsimatic's full-sized avatar

Oleg epsimatic

View GitHub Profile
@epsimatic
epsimatic / co2-meter.esphome.yaml
Last active April 4, 2019 08:04
CO₂ autonomous meter with esphome
esphome:
name: co2_meter
platform: ESP8266
board: d1_mini
i2c:
sda: D1
scl: D2
scan: true
@epsimatic
epsimatic / Mouser.ino
Last active April 13, 2019 15:36
Mouser
// This is an Arduino code for Digispark attiny board
#include <DigiMouse.h>
void setup() {
DigiMouse.begin();
randomSeed(analogRead(0));
}
void loop() {
@epsimatic
epsimatic / trakt-watchlist-downloader.user.js
Last active January 9, 2020 12:33
trakt-watchlist-downloader.user.js
// ==UserScript==
// @name Trakt Watchlist Downloader
// @namespace https://gist.githubusercontent.com/epsimatic/8ab8d0f0089e627fc146709b02dd428c/raw
// @version 0.5
// @description Trakt.tv torrent site(s) added to the Watch Now modal. This is a fix of https://greasyfork.org/scripts/17991
// @author Tusk & Epsimatic
// @match https://trakt.tv/*
// @grant none
// ==/UserScript==
/* jshint -W097 */
@epsimatic
epsimatic / update wp
Last active August 29, 2015 14:27 — forked from tw3eX/update wp
update wp
UPDATE wp_options SET option_value = replace(option_value, 'http://wp', 'http://pushkarev-adv.ru') WHERE option_name = 'home' OR option_name = 'siteurl';
UPDATE wp_posts SET guid = replace(guid, 'http://wp','http://pushkarev-adv.ru');
UPDATE wp_posts SET post_content = replace(post_content, 'http://wp', 'http://pushkarev-adv.ru');
<?xml version="1.0" encoding="UTF-8"?>
<ELEM_LIST>
<ELEM PLAYER_NAME="Плеер" SCH_ID="0" SCH_NAME="Default" STATUS="playing">
<START_TIME>12:41:50</START_TIME>
<START_DATE>2015-06-24</START_DATE>
<BLK_TYPE>М</BLK_TYPE>
<TYPE>М</TYPE>
<NAME>Gotti</NAME>
<ARTIST>Lil Wayne Feat. The Lox</ARTIST>
<AUTHOR />
// ==UserScript==
// @name Steam — fast sell
// @include http*://steamcommunity.com/profiles/*/inventory*
// @include http*://steamcommunity.com/id/*/inventory*
// @description Fast sell Steam items with current price plus extra (epsimatic's mod)
// @version 0.14
// @namespace https://greasyfork.org/users/6507
// ==/UserScript==
const sell_price_factor = 1.4; // Add 40%!
@epsimatic
epsimatic / prune-apple-apps.sh
Last active August 29, 2015 14:17
prune-apple-apps.sh
#!/bin/sh
echo "Removing applications…"
for App in \
Stickies \
Dashboard \
"DVD Player" \
Reminders \
"Game Center" \
# Location of casks
CASKROOM = '/opt/homebrew-cask/Caskroom/'
TAPS = '/usr/local/Library/Taps/caskroom/'
MIN_AGE = 30 # days
require 'date'
require 'simple_progressbar'
i=1