Skip to content

Instantly share code, notes, and snippets.

View osavchenko's full-sized avatar

Oleksandr Savchenko osavchenko

  • Ukraine
View GitHub Profile
@luispaulorsl
luispaulorsl / ddns_updater.rsc
Created December 21, 2019 14:54
Mikrotik/RouterOS Script to update DDNS on No-IP (noip.com)
# No-IP DDNS Updater
# http://www.noip.com/integrate/
:global publicIP;
:global abortUpdate;
:if ([:typeof $abortUpdate] != "bool") do={
:set $abortUpdate false;
}
@mysiar
mysiar / ideolog-monolog.md
Created February 22, 2019 18:15
Monolog template for Ideolog
Message pattern: `^\[(.*)\] (.+?)\.([A-Z]+): (.*)`
Message start pattern: `^\[`
Time format: `yyyy-MM-dd HH:mm:ss`
Time capture group: `1`
Severity capture group: `3`
Category capture group: `2`
parameters:
telegram.token: '%env(TELEGRAM_TOKEN)%'
telegram.webhook_secret: '%env(TELEGRAM_WEBHOOK_SECRET)%'
services:
GuzzleHttp\Client:
arguments:
- { timeout: 120}
Http\Factory\Guzzle\RequestFactory:
@fesor
fesor / ARTICLE.md
Created August 19, 2017 08:45
Возвращаясь к основам: почему юнит тесты это сложно

https://simpleprogrammer.com/2010/12/12/back-to-basics-why-unit-testing-is-hard/

Back to Basics: Why Unit Testing is Hard

перевод адаптирован под 2017-ый, где у нас нет проблем с mock фреймворками, и нам не обязательно создавать интерфейс дабы сделать мок.

Возвращаясь к основам: почему юнит тесты это сложно

@BernardoSilva
BernardoSilva / install_git_autocomplete.sh
Created December 16, 2014 19:02
Install git autocomplete
#!/bin/bash
# Download the magic file.
curl https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash -o ~/.git-completion.bash
# Add to ~/.bash_profile file the following 'execute if it exists' code:
cat <<EOT >> ~/.bash_profile
if [ -f ~/.git-completion.bash ]; then
. ~/.git-completion.bash
fi
@kevin-smets
kevin-smets / iterm2-solarized.md
Last active August 19, 2025 17:12
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k