Skip to content

Instantly share code, notes, and snippets.

View leonardinius's full-sized avatar

Leonids Maslovs leonardinius

View GitHub Profile
redmine.host.com:
host: '10.10.0.1'
user: root
passwd: 'xxx'
# # Optional parameters
# port: # The target system's ssh port number
# sudo: # Boolean to run command via sudo
# priv: # File path to ssh private key, defaults to salt-ssh.rsa
# timeout: # Number of seconds to wait for response
gitolite gitolite/gituser string git
gitolite gitolite/gitdir string /home/git
gitolite gitolite/adminkey string ssh-dss aaaaaaa
@leonardinius
leonardinius / master.yaml
Created February 25, 2014 12:26
/etc/salt/master
fileserver_backend:
- git
- roots
gitfs_provider: gitpython
gitfs_remotes:
- git+ssh://git@github.com/xxx/provisioning.git
gitfs_root: provisioning/gitfs_root
timesheet:
service.runing:
- enable: True
- full_restart: True
- watch:
- pkg: dependency-packages
- file: /etc/init.d/timesheet
- cmd: set_start_exe
/etc/salt/cloud.profiles:
elasticsearch_high:
provider: ec2
script: /etc/salt/cloud.deploy.d/user_data.sh
network_interfaces:
- DeviceIndex: 0
PrivateIpAddresses:
- Primary: True
AssociatePublicIpAddress: False

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
mkdir -p .deps/build/third-party
cd .deps/build/third-party && \
cmake -G 'Unix Makefiles' \
../../../third-party
Re-run cmake no build system arguments
-- The C compiler identification is GNU 4.8.2
-- The CXX compiler identification is GNU 4.8.2
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
<!DOCTYPE html>
<html>
<head>
<title>Title</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<style type="text/css">
@import url(https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz);
@import url(https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic);
@import url(https://fonts.googleapis.com/css?family=Ubuntu+Mono:400,700,400italic);
@leonardinius
leonardinius / nvim_gdb.vim
Created June 22, 2015 22:53
Rust GDB NVim frontend
sign define GdbBreakpoint text=●
sign define GdbCurrentLine text=⇒
let s:gdb_port = 7778
let s:run_gdb = "rust-gdb -q -f `find target/debug/ -type f -executable`"
let s:breakpoints = {}
let s:max_breakpoint_sign_id = 0