Skip to content

Instantly share code, notes, and snippets.

View smileart's full-sized avatar
:octocat:
Work In Progress

Serge Bedzhyk smileart

:octocat:
Work In Progress
View GitHub Profile
@smileart
smileart / README.md
Last active March 16, 2024 15:42 — forked from agnoster/README.md
My ZSH Theme — Agnoster Mod

My modified fork of agnoster.zsh-theme

A ZSH theme optimized for people who use:

  • Solarized
  • Git
  • Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)

Compatibility

@smileart
smileart / Day_1.md
Last active November 14, 2023 08:06
Euruko 2023
@smileart
smileart / euruko2015.md
Last active October 20, 2023 07:20
Euruko 2015
@smileart
smileart / spoiler-callout.css
Last active October 7, 2023 10:35
Obsidian Custom Spoiler Callout CSS Snippet
-- Simple version
[data-task="#"] {
filter: blur(8px);
-webkit-filter: blur(8px);
}
[data-task="#"]:hover {
filter: none;
-webkit-filter: none;
@smileart
smileart / README.md
Created August 8, 2023 17:16
🇺🇦 Ruscism.plist :: MacOS text replacement preset to be able to talk about ᵣussia online

Ruscism – also known as Rashism, Russism, or ᵣussian fascism, is a term used by a number of scholars, politicians and publicists to describe the political ideology and the social practices of the ᵣussian state in the late 20th and early 21st centuries, especially during the rule of vladimir putin. — Ruscism

Russophobia – Anti-ᵣussian sentiment, commonly referred to as Russophobia, is dislike or fear or hatred of ᵣussia, the ᵣussians, ᵣussian culture, or ᵣussian policy. The Collins English Dictionary defines it as intense and often irrational hatred of ᵣussia. It is often related to anti-Soviet and occasionally also to anti-Slavic sentiment. The opposite of Russophobia is Russophilia. — Russophobia

drawing © https://snowowl.kiev.ua<

@smileart
smileart / gemspec.sh
Last active September 15, 2023 21:50
gemspec cli tools
# deps and their versions in gemspec
cat name.gemspec | ack -o '(?<=dependency).*(?<=[<>=]\s)(?>\d+\.?\d+)' | tr -d "',><=~"
# deps and their version on RubyGems
cat british.gemspec | ack -o '(?<=dependency).*(?<=[<>=]\s)(?>\d+\.?\d+)' | tr -d "',><=~" | awk '{ print $1 }' | xargs gem info -r | ack '\(\d+\.\d+\.\d+\)'
# gemspec and current remote versions side-by-side
paste <(cat $(ls | ack gemspec) | ack -o '(?<=dependency).*(?<=[<>=]\s)(?>\d+\.?\d+)' | tr -d "',><=~") <(cat $(ls | ack gemspec) | ack -o '(?<=dependency).*(?<=[<>=]\s)(?>\d+\.?\d+)' | tr -d "',><=~" | awk '{ print $1 }' | xargs gem info -r | ack -o '(?<=\()(\d+\.\d+\.\d+)(?!>\))')
@smileart
smileart / amazon_books_scraper.js
Created July 11, 2023 12:02
A script to scrape Digital Content Lists from Amazon
// NOTE: It's supposed to be used in DevTools console only, depends on `copy`, `$`, `$$`, etc.
// NOTE: these backups needed cause after a new page loaded $, $$, etc. are undefined for the script running 🤷‍♂️
const selector = $
const selectorAll = $$
const clipboardCopy = copy
let allBooksList = []
function scrapBooks() {
const titles = selectorAll('.digital_entity_title').map((b)=>{ return b.innerText })
@smileart
smileart / rpsls.py
Created January 18, 2023 19:21
Rock Paper Scissors Lizard Spock :: Python Version
import random
##
# Rock Paper Scissors Lizard Spock ASCII Art
#
# Rock
rock = """
_______
@smileart
smileart / RPS_ASCII_Art.py
Last active January 11, 2023 14:41 — forked from wynand1004/RPS_ASCII_Art.py
Rock, Paper, Scissors ASCII Art
# Rock
print("""
_______
---' ____)
(_____)
(_____)
(____)
---.__(___)
@smileart
smileart / github_butternut_squash.js
Last active November 9, 2022 19:09
🎃 A user-script to auto-choose "Auto-merge Squash" in the PR unless it's a release PR
// ==UserScript==
// @name Butternut Squash
// @namespace http://tampermonkey.net/
// @version 0.3
// @description Choose Auto-merge Squash unless it's a release PR
// @author Serge Bedzhyk
// @icon https://www.google.com/s2/favicons?sz=64&domain=github.io
// @match https://github.com/*
// ==/UserScript==