Skip to content

Instantly share code, notes, and snippets.

View vi7's full-sized avatar
💭
smd

Vitaliy D. vi7

💭
smd
  • Krakow, Poland
View GitHub Profile
@vi7
vi7 / asuswrt_merlin_search_domain.md
Created September 10, 2021 19:28
Configure search domains on the Asus router with the Asuswrt Merlin firmware

Create /jffs/configs/dnsmasq.conf.add and add DHCP option 119 providing the domain search list (home in the example below):

dhcp-option=lan,119,home

Allow custom configs in the nvram:

nvram set jffs2_scripts=1
@vi7
vi7 / Vagrantfile
Created August 29, 2021 12:25
Vagrant machine with the OSX 10.9 suitable for iPhone 3GS jailbreak via p0sixspwn v1.0.8
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "inria-pro-sed/conda-build-osx-10.9-base"
config.vm.box_version = "1.0.0"
#config.vm.network "public_network"
@vi7
vi7 / vsphere_cpi_csi_prerequisites.sh
Last active July 22, 2021 09:58
Deploying a Kubernetes Cluster on VMWare vSphere with CSI and CPI. Prerequisites configuration example
## !!! DO NOT RUN THIS SCRIPT AS IS !!!
## SOME VALUES ARE JUST AN EXAMPLE AND MUST BE CHANGED
## ACCORDING TO YOUR INFRASTRUCTURE CONFIGURATION
## This example script uses the following considerations:
# - vSphere 6.7U3 (or later) is a prerequisite for using CSI and CPI at the time of writing
# - vCenter Datacenter name: DC01
# - vCenter Cluster name: CLS01
# - vCenter Datastore names: DATASTORE01, DATASTORE02, DATASTORE03
# - K8S nodes VMs hostname pattern: example-k8s* (e.g.: example-k8s-master01.example.com)
@vi7
vi7 / gradle_daemon.cron
Created May 12, 2021 10:58
Cronjob for the Gradle Daemon logs cleanup
# Cleanup Gradle Daemon logs older than 3hr (180min)
# NOTE: Change path to the .gradle/daemon as needed
05 */1 * * * root /usr/bin/find /var/lib/jenkins/.gradle/daemon/ -type f -mmin +180 -exec rm -vf '{}' \;
# Cleanup Gradle Daemon empty dirs
# NOTE: Change path to the .gradle/daemon as needed
10 */1 * * * root /usr/bin/find /var/lib/jenkins/.gradle/daemon/ -type d -empty -exec rm -vrf '{}' \; || true
@vi7
vi7 / pto.yaml
Created April 23, 2021 09:33
Paid time off (PTO/Day-off) tracker
---
2021:
pto_days_total: 28
months:
- name: may
num: 5
pto_days:
- 6
- 7

Restart macOS coreaudiod daemon

If you're facing weird issues with the sound on macOS before performing a full OS restart you can try restarting coreaudiod daemon instead:

sudo launchctl kickstart -kp system/com.apple.audio.coreaudiod
@vi7
vi7 / led_lights_for_Max.md
Last active January 11, 2021 12:48
Информация для планирования и покупки светодиодной (LED) подсветки
@vi7
vi7 / hiring.md
Last active February 19, 2024 12:03
Interview questions for DevOps Engineer/Architect hiring
@vi7
vi7 / krakow_corpo_careers.md
Last active December 17, 2020 13:28
Careers websites for the Krakow/Poland based corporations
@vi7
vi7 / Makefile
Created December 14, 2020 20:08 — forked from mpneuried/Makefile
Simple Makefile to build, run, tag and publish a docker containier to AWS-ECR
# import config.
# You can change the default config with `make cnf="config_special.env" build`
cnf ?= config.env
include $(cnf)
export $(shell sed 's/=.*//' $(cnf))
# import deploy config
# You can change the default deploy config with `make cnf="deploy_special.env" release`
dpl ?= deploy.env
include $(dpl)