Skip to content

Instantly share code, notes, and snippets.

View leonardinius's full-sized avatar

Leonids Maslovs leonardinius

View GitHub Profile
<!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);
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

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname

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

/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
timesheet:
service.runing:
- enable: True
- full_restart: True
- watch:
- pkg: dependency-packages
- file: /etc/init.d/timesheet
- cmd: set_start_exe
@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
gitolite gitolite/gituser string git
gitolite gitolite/gitdir string /home/git
gitolite gitolite/adminkey string ssh-dss aaaaaaa
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
@leonardinius
leonardinius / log
Created January 16, 2014 16:45
irc github service hook log
-GitHub88/#leonardinius1- [leonardinius.github.io] none pushed 3 new commits to master: https://github.com/leonardinius/leonardinius.github.io/compare/14bae5ed7124...e23a67d5d63f
-GitHub88/#leonardinius1- leonardinius.github.io/master ba0b7c5 Leonids Maslovs: Update README.md
-GitHub88/#leonardinius1- leonardinius.github.io/master cf594d3 Leonids Maslovs: Update README.md
-GitHub88/#leonardinius1- leonardinius.github.io/master e23a67d Leonids Maslovs: Update README.md
-GitHub178/#leonardinius1- [leonardinius.github.io] leonardinius pushed 1 new commit to master: https://github.com/leonardinius/leonardinius.github.io/commit/ddce29d52dabb45219066d45b530eda850a2be1b
-GitHub178/#leonardinius1- leonardinius.github.io/master ddce29d Leonids Maslovs: test1...
-GitHub197/#leonardinius1- [leonardinius.github.io] leonardinius pushed 1 new commit to master: https://github.com/leonardinius/leonardinius.github.io/commit/5742b53868c947a003b6eb193b0357a8ec85b48f
-GitHub197/#leonardinius1- leonardinius.github.io/master 5742b