Skip to content

Instantly share code, notes, and snippets.

View epcim's full-sized avatar

Petr Michalec epcim

View GitHub Profile
@epcim
epcim / gist:25c1f390ae45b5151cda8137ce9f5a22
Created December 16, 2021 11:51 — forked from saetia/gist:1623487
Clean Install – OS X 10.11 El Capitan

OS X Preferences


most of these require logout/restart to take effect

# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false

# Set a shorter Delay until key repeat
@epcim
epcim / dummy.json
Last active November 8, 2021 14:59
dummy
{
"foo": {
"bar": {
"baz": "xyz"
}
}
}
@epcim
epcim / kcd.service
Created August 24, 2021 14:50
systemd.service and timer example
[Unit]
Description=KCD cron job
After=vpm.service
After=kubelet.service
[Service]
User=root
Type=oneshot
SyslogIdentifier=kcd
EnvironmentFile=-/etc/environment
@epcim
epcim / 1-OSXCustomizations.md
Last active March 10, 2021 16:45
OSX dotfiles and customizations

Install

pkg manager brew

  • see lists below

OSX shell gnu/linux experience

  • keep your profile shell as "bash"
  • install GNU tools and put them on your PATH first
@epcim
epcim / vimdiff.md
Created December 28, 2020 08:07
vimdiff cheat sheet

vimdiff cheat sheet

##git mergetool

In the middle file (future merged file), you can navigate between conflicts with ]c and [c.

Choose which version you want to keep with :diffget //2 or :diffget //3 (the //2 and //3 are unique identifiers for the target/master copy and the merge/branch copy file names).

:diffupdate (to remove leftover spacing issues)

:only (once you’re done reviewing all conflicts, this shows only the middle/merged file)

@epcim
epcim / .zshrc
Created December 6, 2020 11:28 — forked from dwchiang/.zshrc
gcloud with zsh
# The next line updates PATH for the Google Cloud SDK.
source /Users/dwchiang/google-cloud-sdk/path.zsh.inc
# The next line enables zsh completion for gcloud.
source /Users/dwchiang/google-cloud-sdk/completion.zsh.inc
@epcim
epcim / imapsync.md
Created October 26, 2020 07:22
imap sync
apiVersion: eksctl.io/v1alpha5
kind: ClusterConfig
metadata:
name: eksctl-us-west-2-managed
region: us-west-2
vpc:
id: vpc-0b953326cd7a2f917
subnets:
@epcim
epcim / disable-ipv6.sh
Created July 1, 2020 07:09 — forked from kwilczynski/disable-ipv6.sh
Amazon Linux OS tweaks
#!/bin/bash
set -u
set -e
set -o pipefail
export PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
cat <<'EOF' > /etc/modprobe.d/blacklist-ipv6.conf