Skip to content

Instantly share code, notes, and snippets.

View gyakovlev's full-sized avatar

Georgy Yakovlev gyakovlev

  • California, USA
View GitHub Profile

Keybase proof

I hereby claim:

  • I am gyakovlev on github.
  • I am gyakovlev (https://keybase.io/gyakovlev) on keybase.
  • I have a public key ASC5yko9WVCa0Rj-hDXnHvrQkeCrbVGggN1gN49mbBmEAQo

To claim this, I am signing this object:

@gyakovlev
gyakovlev / disable mcafee endpoint protection.md
Created September 26, 2018 01:57 — forked from tegansnyder/disable mcafee endpoint protection.md
Disable McAffee Endpoint Protection OSX

method 1

sudo /usr/local/McAfee/AntiMalware/VSControl stopoas

alternatively

sudo defaults write /Library/Preferences/com.mcafee.ssm.antimalware.plist OAS_Enable -bool False
sudo /usr/local/McAfee/AntiMalware/VSControl stop
sudo /usr/local/McAfee/AntiMalware/VSControl reload
@gyakovlev
gyakovlev / make-the-tea
Created January 9, 2019 20:16 — forked from chewi/make-the-tea
Script to create Gentoo icedtea-bin tarballs
#!/bin/bash -e
OLD_PWD=${PWD}
source /lib/gentoo/functions.sh || true
if [ -z "$1" ]; then
echo "usage: $0 /usr/portage/packages/dev-java/icedtea-X.X.X.X.tbz2 [-rX]"
exit 1
fi
@gyakovlev
gyakovlev / CEPH-STATICSITES-HOWTO.md
Created April 30, 2019 20:17 — forked from robbat2/CEPH-STATICSITES-HOWTO.md
Ceph staticsites config RGW static website serving & SNI

Ceph StaticSites Configuration, with HAProxy & SNI

An instructional document by Robin H Johnson robin.johnson@dreamhost.com. I wrote much of the staticsites functionality of Ceph-RGW, during during late 2015 and early 2016, based on an early prototype by Yehuda Sadeh (yehudasa). It was written for usage at Dreamhost, but developed in the open for community improvement.

It is fully functional as of Jewel v10.2.3 plus PR11280 (ceph/ceph#11280). Prior to that, neither the non-CNAME nor CNAME-to-service modes will not function correctly.

These configuration files represent how to quickly set up RGW+HAProxy for staticsite serving. I've tried to make them more readable, without leaving out too many details. You are strongly recommended to run a seperate RGW instance for staticsites, on a DIFFERENT outward-faciing IP than your normal instance (and in fact, certain functionality is not supported without it).

In place of using HAProxy, you could run the second rgw instance on port

@gyakovlev
gyakovlev / sync-history.sh
Last active March 11, 2022 12:41 — forked from jan-warchol/sync-history.sh
Synchronize history across bash sessions
# Synchronize history between bash sessions
#
# Make history from other terminals available to the current one. However,
# don't mix all histories together - make sure that *all* commands from the
# current session are on top of its history, so that pressing up arrow will
# give you most recent command from this session, not from any session.
#
# Since history is saved on each prompt, this additionally protects it from
# terminal crashes.
@gyakovlev
gyakovlev / get-chromium-ppc64le-patches.sh
Last active May 24, 2020 22:24
get-chromium-ppc64le-patches.sh
#!/bin/bash
set -euo pipefail
IFS=$'\n\t'
MYTEMP="$(mktemp -d /tmp/chromium-ppc64le.XXXXXX)"
cd "${MYTEMP}"
git clone --recurse-submodules https://github.com/chromium-ppc64le/chromium-ppc64le-patches-quilt.git .
@gyakovlev
gyakovlev / etcportageenvsys-kernelgentoo-kernel
Last active September 29, 2020 16:53
/etc/portage/env/sys-kernel/gentoo-kernel
# place this file to /etc/portage/env/sys-kernel/gentoo-kernel
# please, pre-fetch zfs tarball, like 'emerge zfs-kmod --fetchonly'
# also make sure that $PORTAGE_TMPDIR/portage/sys-fs/zfs-kmod* is not present
# simply set to false if not needed
: "${__EZFS_KERNEL_BUILTIN:=true}"
__ORIG_DISTDIR="${PORTAGE_ACTUAL_DISTDIR:-${DISTDIR}}"
post_src_unpack() {
@gyakovlev
gyakovlev / etcudevrules.d10-zram.rules
Created May 30, 2021 20:56
/etc/udev/rules.d/10-zram.rules
# Key zram params:
# mem_limit: maximum amount of ram it will ever be allowed to eat.
# disksize: filesytem size, may be larger than mem_limit, because of compression.
# comp_algorithm: lz4 gives about 2x compression for most builds.
# backing_dev: device to dump uncompressable pages to, must be set before size. Must use a script to drop pages, not automatic.
#
# Key mkfs options:
# '-e remount-ro' to go read-only on errors, it stops the build properly
# '-m 0' to skip root-only reserved 5% of space
# '-O ^has_journal' to skip journal. it's disposable FS and we will never run fsck on it
@gyakovlev
gyakovlev / porting-with-crossdev.md
Last active March 7, 2022 22:03
porting-with-crossdev.md