Skip to content

Instantly share code, notes, and snippets.

View biow0lf's full-sized avatar

Igor Zubkov biow0lf

  • 10:31 (UTC +02:00)
View GitHub Profile
@puRe1337
puRe1337 / README.md
Last active May 12, 2025 22:25
Stalwart Traefik configuration

Test commands with openssl

SMTP 25

openssl s_client -quiet -crlf -starttls smtp -connect mail.example.com:25

SMTP 587

openssl s_client -starttls smtp -quiet -crlf -connect mail.example.com:587

SMTP 465

openssl s_client -quiet -crlf -connect mail.example.com:465

IMAP 143

openssl s_client -crlf -connect mail.example.com:143 -starttls imap -servername mail.example.com

@marcjulianschwarz
marcjulianschwarz / github-old-dashboard.js
Last active November 16, 2024 19:24
Bring back the old GitHub dashboard with PageExtender for Safari
if (window.location.hostname === "github.com") {
const feedContent = document.querySelector('.feed-content')
if (feedContent){
const feedMain = document.querySelector('.feed-main')
feedContent.style.maxWidth = "unset"
feedMain.style.maxWidth = "1200px"
fetch('https://github.com/dashboard-feed')
.then(response => response.text())
.then(text => {
@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<

How to install game-porting-toolkit (aka proton for macOS)

You also might wanna just use Whisky which does this automatically

This guide works on macOS 13.4+ using Command Line Tools for XCode 15 Beta!

What is this?

In the recent WWDC, Apple announced and released the "game porting toolkit", which upon further inspection this is just a modified version of CrossOver's fork of wine which is a "compatibility layer" that allows you to run Windows applications on macOS and Linux.

@jjb
jjb / file.md
Last active July 17, 2025 15:15
Using Jemalloc 5 with Ruby.md

For years, people have been using jemalloc with ruby. There were various benchmarks and discussions. Legend had it that Jemalloc 5 didn't work as well as Jemalloc 3.

Then, one day, hope appeared on the horizon. @wjordan offered a config for Jemalloc 5.

Ubuntu/Debian

FROM ruby:3.1.2-bullseye
RUN apt-get update ; \

Find the difference

You are given two strings s and t.

String t is generated by random shuffling string s and then add one more letter at a random position.

Return the letter that was added to t.

Example 1:

@2called-chaos
2called-chaos / z_airbrake.rb
Last active June 9, 2022 00:25
Airbrake config example for Errbit
Airbrake.configure do |config|
# project specific
config.project_key = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
# use git SHA & current commit as app version
config.app_version = "Ruby: #{RUBY_VERSION} » Rails: #{Rails::VERSION::STRING} » " << `cd #{Rails.root} && git log -1 --pretty="%h - %B" HEAD`
# can always be 1
config.project_id = 1
@brenogazzola
brenogazzola / custom_active_storage_urls.rb
Last active October 17, 2022 15:34
Creating a custom ActiveStorage controller to generate "pretty urls" or help migration from another lib
# This demonstrates how we create a SEO friendly url for the previews of the artworks we sell.
#
# This is the URL we want:
# https://festalab.com.br/image/invitation/birthday/carnival.jpg
#
# First, the route.
#
# "model" is the name of the active storage model that has the preview.
# "classification" and "identifier" are together a unique key for the records.
// This code is to be used with https://turbo.hotwire.dev. By default Turbo keeps visited pages in its cache
// so that when you visit one of those pages again, Turbo will fetch the copy from cache first and present that to the user, then
// it will fetch the updated page from the server and replace the preview. This makes for a much more responsive navigation
// between pages. We can improve this further with the code in this file. It enables automatic prefetching of a page when you
// hover with the mouse on a link or touch it on a mobile device. There is a delay between the mouseover event and the click
// event, so with this trick the page is already being fetched before the click happens, speeding up also the first
// view of a page not yet in cache. When the page has been prefetched it is then added to Turbo's cache so it's available for
// the next visit during the same session. Turbo's default behavior plus this trick make for much more responsive UIs (non SPA).
@jferris
jferris / configmap.yaml
Last active October 28, 2024 01:42
Rails Kubernetes Manifests
apiVersion: v1
kind: ConfigMap
metadata:
name: example
namespace: default
data:
APPLICATION_HOST: example.com
LANG: en_US.UTF-8
PIDFILE: /tmp/server.pid
PORT: "3000"