Skip to content

Instantly share code, notes, and snippets.

Avatar

Ervin Barta ervinb

View GitHub Profile
@ervinb
ervinb / How-to-boost-your-microphone-above-the-Mac-OS-limit.md
Last active Oct 21, 2021
Showing how to boost the microphone volume on Mac above the OS limit. Useful for quality microhpones, which are too quiet out-of-the box.
View How-to-boost-your-microphone-above-the-Mac-OS-limit.md

How to boost your microphone above the Mac OS limit

If you just bought a good mic but got dissapointed how quiet it is, this post will sort you out. My Blue Snowball iCE was way too quiet out of the box and I've used this procedure to make it sound great.

mic-vst-light

First we'll set up BlackHole, but the focus will be on Element, which is a great VST host application. It enables the manipulation of an input singnal through VST, AU and its built-in plugins. This is a good alternative to AU Lab, which actually works. We will also install AU Lab for it's plugins however.

The rest of the chain is just passing on a hot potato.

View keybase.md

Keybase proof

I hereby claim:

  • I am ervinb on github.
  • I am ervinbarta (https://keybase.io/ervinbarta) on keybase.
  • I have a public key ASA_MQwCuYlxNuiNMXzcK4pNt5h_R5K02MWbBmWYEe1xmgo

To claim this, I am signing this object:

View how-to-download-gzipped-file-request-node.js
const request = require('request-promise-native');
const os = require('os');
const fs = require('fs-extra');
const res = await request.get('http://link.to/some-gzipped-image.jpg', {
gzip: true,
resolveWithFullResponse: true, // optional, otherwise replace `res.body` with just `res` below
encoding: null
});
@ervinb
ervinb / Jenkinsfile
Created Oct 30, 2019 — forked from jonico/Jenkinsfile
Example for a full blown Jenkins pipeline script with multiple stages, kubernetes templates, shared volumes, input steps, injected credentials, heroku deploy, sonarqube and artifactory integration, Docker containers, multiple Git commit statuses, PR merge vs branch build detection, REST API calls to GitHub deployment API, stage timeouts, stage c…
View Jenkinsfile
#!groovy
import groovy.json.JsonOutput
import groovy.json.JsonSlurper
def label = "mypod-${UUID.randomUUID().toString()}"
podTemplate(label: label, yaml: """
spec:
containers:
- name: mvn
image: maven:3.3.9-jdk-8-alpine
View how-to-install-mscorefonts-on-fedora.md

How to install MS Core fonts on Fedora

  • install dependencies
$ sudo dnf install -y rpm-build ttmkfdir
  • prep the work space
View nfs-k8s-multiwrite.md

multi-write-pvc

GCE persistent disk + NFS server (single writer)

kind: Service
apiVersion: v1
metadata:
  name: nfs-server
View nginx-replica-set.yaml
apiVersion: v1
kind: Service
metadata:
name: nginx
labels:
app: nginx
spec:
ports:
- port: 80
name: web
View migrate-fedora-27-from-ssd-to-nvme.md

Migrate a Fedora 27 installation to a NVMe SSD drive with rsync

Prepare partitions

Create partitions with GParted:

Device Label File system Flag
/dev/nvme01p1 fedora-nvme-root ext4 n\a
/dev/nvme01p2 fedora-nvme-boot ext4 n\a
View git-walker.sh
#!/bin/bash
set -euo pipefail
changed_files=""
changed_directories=""
if [ "$BRANCH_NAME" = "master" ]; then
echo "On master. Nothing to do."
View devops_best_practices.md

DevOps started out as "Agile Systems Administration". In 2008, Andrew Shafer did a talk called "Agile Infrastucture" addressing issues around involving more of the company in the same disciplines as programmers.

In 2009, Patrick Debois created "DevOpsDays" conference to help to bring it to light. However, it wouldn't begin to trend until about 2010, when people would begin to describe it as a standalone discipline.

Today, DevOps goes beyond just developers, systems administration and infrastructure, its about [dev, ops, agile, cloud, open source and business](https://blogs.the451group.com/opensource/2010/03/03/devops-mixing-dev-ops-agile-cloud-open-source-and-busi