Skip to content

Instantly share code, notes, and snippets.

View alexymik's full-sized avatar
🏠
Working from home

Alexy Mikhailichenko alexymik

🏠
Working from home
View GitHub Profile
@alexymik
alexymik / docker-compose.yml
Last active July 19, 2022 06:48
slt relay server setup
version: '3.3'
services:
sls-b3ck-edit:
image: b3ckontwitch/sls-b3ck-edit
container_name: 'srt-relay'
restart: 'always'
ports:
- '30000:30000/udp'
- '8181:8181/tcp'
volumes:
@alexymik
alexymik / config.txt
Created June 15, 2021 19:54
Raspberry Pi PI2SCART config.txt Display Settings
# Edit your config.txt on SD Card to
disable_audio_dither=1
dtparam=audio=on
dtoverlay=vga666
enable_dpi_lcd=1
display_default_lcd=1
dpi_group=2
dpi_mode=87
hdmi_timings=320 1 16 30 34 240 1 2 3 22 0 0 0 60 0 6400000 1 #240p
@alexymik
alexymik / README.md
Last active June 15, 2021 19:55
GoPro HERO 2018 <-> HERO 5 Black Firmware
@alexymik
alexymik / RetailMeNot Unsubscribe Python Script
Created September 12, 2020 02:25
Python script to unsubcribe an apartment building from RetailMeNot mail flyers. Requires AntiCaptcha API key
import cloudscraper
import pprint
import names
import time
UNSUBSCRIBE_URL = 'https://www.retailmenot.com/responsive/ajax/UnsubscribeMailerQueue.php'
APARTMENT_MAX_FLOOR = 6
APARTMENT_MAX_UNIT = 7
@alexymik
alexymik / powermgmt.md
Last active February 19, 2020 17:13
Ubuntu 18.04.04 Fixes on Lenovo ThinkPad Carbon X1 7th Gen
sudo add-apt-repository ppa:linrunner/tlp
sudo apt install tlp tlp-rdw -y

For ThinkPads:

sudo apt install tp-smapi-dkms acpi-call-dkms -y

@alexymik
alexymik / metar.rb
Last active May 17, 2017 22:54
Ruby Class/script to decode METAR Reports
#!/usr/bin/ruby
unless ARGV.any?
puts 'Usage: metar.rb <paste your METAR report here>'
exit
end
# Example METAR report:
# METAR KITH 162256Z 15006KT 10SM BKN080 19/08 A2997 RMK AO2 SLP149 T01940078
class Metar
@alexymik
alexymik / Microsoft.md
Last active March 25, 2020 17:29
Microsoft PC Gaming Timeline

Aug. 2001 - Windows XP Launched

Nov. 2001 - Xbox Launched

Nov. 2004 - Half-Life 2 Released with Steam requirement

Mar. 2005 - We care about PC gaming, Longhorn (Vista) to usher in modern PC gaming with "Tray and Play"

(Microsoft Windows Graphics and gaming general manager Dean Lester) reaffirmed his group's commitment to making Windows gaming "a simple, straightforward, and robust experience" that isn't marked by long game-install times, driver conflicts, and downloading patches. To this end, we were shown a demonstration of "Tray and Play" with the PC version of Need For Speed Underground 2. "Tray and Play" is exactly what it sounds like--dropping a game disc into an optical drive and loading it up immediately, rather than having to install it to a hard drive.

@alexymik
alexymik / check_mysql_health
Created March 23, 2017 15:09
check_mysql_health compiled nagios plugin
#! /usr/bin/perl -w
# nagios: -epn
my %ERRORS=( OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 );
my %ERRORCODES=( 0 => 'OK', 1 => 'WARNING', 2 => 'CRITICAL', 3 => 'UNKNOWN' );
package DBD::MySQL::Server::Instance::Innodb;
use strict;
our @ISA = qw(DBD::MySQL::Server::Instance);
@alexymik
alexymik / zsh_install.md
Last active April 7, 2017 12:22
ZSH + Oh My ZSH Install Guide

ZSH

From https://en.wikipedia.org/wiki/Z_shell

The Z shell (zsh) is a Unix shell that can be used as an interactive login shell and as a powerful command interpreter for shell scripting. Zsh can be thought of as an extended Bourne shell with a large number of improvements, including some features of bash, ksh, and tcsh.

Example

image

@alexymik
alexymik / fizz_buzz.rb
Last active May 18, 2016 15:19
Ruby Fizz Buzz
# Powered by Ruby™
# This is meant to be satire
def fizz_buzz_start
1
end
def fizz_buzz_limit
100
end