Skip to content

Instantly share code, notes, and snippets.

@imax9000
imax9000 / README.md
Created May 3, 2024 10:35
Chat refactoring proposal

Design porposal: реструктуризація чату

Поточний стан

  • Основний чат - неструктурована стіна тексту
  • Мото-чат - туди вже виселили розмови про автомобілі/мотоцикли
  • Діскорд - має окремий канал синхронізований з основним чатом

Проблема

@imax9000
imax9000 / docker-compose.yml
Created April 26, 2024 09:24
Ozone docker-compose file. Specify variables in a `./.env` file next to it
services:
postgres:
image: postgres:alpine
restart: unless-stopped
healthcheck:
test: pg_isready -h localhost -U $$POSTGRES_USER
interval: 2s
timeout: 5s
retries: 10
volumes:
BOARD := arduino:megaavr:nona4809:mode=off
PORT ?= $(wildcard /dev/cu.usbmodem*)
.PHONY: all upload build format
all: build
format:
clang-format -i $$(find . -name \*.cpp -o -name \*.ino -o -name \*.h)
@imax9000
imax9000 / Makefile
Last active August 23, 2021 10:20
DMG button pusher
BOARD := arduino:megaavr:nona4809:mode=off
PORT ?= $(wildcard /dev/cu.usbmodem*)
.PHONY: all upload build format
all: build
format:
clang-format -i $$(find . -name \*.cpp -o -name \*.ino -o -name \*.h)
@imax9000
imax9000 / rs-compactor.lua
Last active January 1, 2020 09:12
OpenComputers staging area
local component = require("component")
local shell = require("shell")
local serialization = require("serialization")
local usageString = [[Automatic compactor for Refined Storage.
This computer needs to be connected to at least one Refined Storage component.
This program will query for crafting patterns and quantities of their inputs,
and schedule corresponding crafting tasks.
---- Minecraft Crash Report ----
// Uh... Did I do that?
Time: 2019-12-09 22:14:59 GMT
Description: Ticking entity
java.lang.NoClassDefFoundError: net/tardis/mod/client/models/exteriors/IExteriorModel
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
at java.lang.Class.privateGetMethodRecursive(Class.java:3048)
@imax9000
imax9000 / Code.js
Created March 5, 2019 22:03
Importing Baro Ki'Teer's inventory into a spreadsheet
/*
Copyright 2019 Max Ignatenko
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
@imax9000
imax9000 / allow_dark_mode.sh
Last active February 26, 2021 15:56
Allow older applications to use dark mode in Mac OS X 10.14 (some may start crashing)
#!/bin/sh
if [ $# != 2 ]; then
echo "Usage: $0 path/to/application.app [on|off|default]" >&2
exit 1
fi
app="$1"
cmd="$2"
@imax9000
imax9000 / Result
Created July 2, 2017 15:37
How to break Ansible
% ansible-playbook test.yml
[WARNING]: Host file not found: .../homebrew/etc/ansible/hosts
[WARNING]: provided hosts list is empty, only localhost is available
PLAY [Fuck this shit] **********************************************************
TASK [setup] *******************************************************************
ok: [localhost]
@imax9000
imax9000 / escape.go
Last active April 21, 2017 21:37 — forked from excavador/escape.go
func escapeRune(c rune) rune {
if uint(c) < 0x20 {
return '_'
}
switch c {
case ';', '\n', '"', '\\':
return '_'
default:
return c
}