Skip to content

Instantly share code, notes, and snippets.

View bborysenko's full-sized avatar

Borys Borysenko bborysenko

View GitHub Profile
@bborysenko
bborysenko / MF.md
Created February 22, 2022 22:19 — forked from xorik/MF.md
Польские инкубаторы

Moja Firma

https://mojafirma.org/

Шаги

  1. Вы заключаете контракт со своим клиентом (клиентами) или через фриланс биржи, используя юридические данные нашего бизнес-инкубатора;
  2. Полученные средства поступают на ваш фирменный суб-счет (валюта PLN, EUR, USD), которые вы потом себе выплачиваете как заработную плату в рамках договора с нами;
  3. Предоставив польским государственным органом подтверждение того, что вы тведете деятельность и проводите доход легально, вы получаете ВНЖ в Польше.
@bborysenko
bborysenko / Terraform Functions.md
Last active October 11, 2020 09:13
Terraform Functions

Terraform Functions

  • file reads the contents of a file at the given path and returns them as a string. This function can be used only with files that already exist on disk at the beginning of a Terraform run.
  • templatefile reads the file at the given path and renders its content as a template using a supplied set of template variables.
@bborysenko
bborysenko / obsidian.css
Created September 23, 2020 15:19
Obsidian Custom CSS
/* -----------------------------------------------------------------------------
Bullet Point Relationship Lines
https://forum.obsidian.md/t/meta-post-common-css-hacks/1978/2
----------------------------------------------------------------------------- */
.cm-hmd-list-indent .cm-tab, ul ul {
position: relative;
}
.cm-hmd-list-indent .cm-tab::before, ul ul::before {
content:'';
border-left: 1px solid var(--text-accent);
@bborysenko
bborysenko / notion2blog.js
Created May 14, 2020 12:19 — forked from mayneyao/notion2blog.js
Notion.so > Personal Blog | custom domain + disqus comment
const MY_DOMAIN = "agodrich.com"
const START_PAGE = "https://www.notion.so/gatsby-starter-notion-2c5e3d685aa341088d4cd8daca52fcc2"
const DISQUS_SHORTNAME = "agodrich"
addEventListener('fetch', event => {
event.respondWith(fetchAndApply(event.request))
})
const corsHeaders = {
"Access-Control-Allow-Origin": "*",
@bborysenko
bborysenko / notion2blog.js
Created May 14, 2020 12:19 — forked from mayneyao/notion2blog.js
Notion.so > Personal Blog | custom domain + disqus comment
const MY_DOMAIN = "agodrich.com"
const START_PAGE = "https://www.notion.so/gatsby-starter-notion-2c5e3d685aa341088d4cd8daca52fcc2"
const DISQUS_SHORTNAME = "agodrich"
addEventListener('fetch', event => {
event.respondWith(fetchAndApply(event.request))
})
const corsHeaders = {
"Access-Control-Allow-Origin": "*",

Keybase proof

I hereby claim:

  • I am bborysenko on github.
  • I am bborysenko (https://keybase.io/bborysenko) on keybase.
  • I have a public key whose fingerprint is C01F 7F26 0093 6E7A DD47 0FFF 5853 DE0B 5D45 231E

To claim this, I am signing this object:

@bborysenko
bborysenko / README.md
Created February 25, 2019 14:27 — forked from ColCh/README.md
Create merge request on Gitlab in command line for current branch

Gitlab merge request script

Creates merge request on Gitlab for you

Installation

Download it, add executable perms and place into PATH:

# Place it into ~/.bin
mkdir ~/.bin
@bborysenko
bborysenko / wsrep.fact
Created January 15, 2019 16:15
Ansible Percona XtraDB Cluster local fact
#!/bin/bash
set -e
set -o pipefail
WSREP=$(mysql --unbuffered --skip-column-names --batch --connect-timeout=3 -e "SHOW GLOBAL STATUS LIKE 'wsrep_%';" 2> /dev/null | sed 's/^/ "/g; s/\t/": "/g; ;s/$/",/g' | sed -z 's/\(.*\),/\1/')
cat <<EOF
{
$WSREP
ENV['VAGRANT_DEFAULT_PROVIDER'] = 'digital_ocean'
Vagrant.configure("2") do |config|
config.vm.box = 'digital_ocean'
config.vm.box_url = 'https://github.com/devopsgroup-io/vagrant-digitalocean/raw/master/box/digital_ocean.box'
config.ssh.private_key_path = '~/.ssh/vagrant'
config.vm.synced_folder ".", "/vagrant", disabled: true
config.vm.allowed_synced_folder_types = :rsync
#!/usr/bin/env bash
JENKINS_CRUMB=$(curl -u ${JENKINS_USER}:${JENKINS_PASSWORD} ${JENKINS_URL}/crumbIssuer/api/xml?xpath=concat(//crumbRequestField,":",//crumb)')