Skip to content

Instantly share code, notes, and snippets.

@zsoltf
zsoltf / ext_pillar.conf
Last active October 28, 2016 05:33
Salt Minions as Pillar
ext_pillar:
- cmd_yaml: /srv/pillar/keys.sh
@zsoltf
zsoltf / salt-win-bootstrap.md
Created September 21, 2016 21:14
salt windows bootstrap
@zsoltf
zsoltf / mac
Last active September 9, 2016 04:25
Keyboard Shortcuts
==================
command + tab window switcher
command + ` next application window
control + up arrow view all application windows
control + down arrow view current application windows
command + space search / launcher
command + , current application settings
winrm quickconfig
y
winrm set winrm/config/service/Auth '@{Basic="true"}'
winrm set winrm/config/service '@{AllowUnencrypted="true"}'

winrm set winrm/config/winrs '@{MaxMemoryPerShellMB="1024"}'

@zsoltf
zsoltf / sambalinks.md
Last active August 25, 2016 21:20
Samba Study
@zsoltf
zsoltf / puma.sh
Created January 24, 2016 23:11 — forked from runlevel5/puma.sh
pumactl is very broken, @nemshilov and @joneslee85 wrote this bash script replacement and it works so reliably on production server. So here it is, share with the world!
#!/usr/bin/env bash
# Simple move this file into your Rails `script` folder. Also make sure you `chmod +x puma.sh`.
# Please modify the CONSTANT variables to fit your configurations.
# The script will start with config set by $PUMA_CONFIG_FILE by default
PUMA_CONFIG_FILE=config/puma.rb
PUMA_PID_FILE=tmp/pids/puma.pid
PUMA_SOCKET=tmp/sockets/puma.sock
#! /bin/bash
clear
echo
echo '__/\\\________/\\\_____________________________'
echo ' _\/\\\_______\/\\\_____________________________'
echo ' _\//\\\______/\\\____/\\\______________________'
echo ' __\//\\\____/\\\____\///______/\\\\\__/\\\\\___'
echo ' ___\//\\\__/\\\______/\\\___/\\\///\\\\\///\\\_'
echo ' ____\//\\\/\\\______\/\\\__\/\\\_\//\\\__\/\\\_'

vim study sheet

movement

|---+----+---+----+----|
| ^ | 1G | H | zt | g; |
| % | gg | M | zz | g, |
| $ | G  | L | zb |    |
|---+----+---+----+----|