Skip to content

Instantly share code, notes, and snippets.

@codehwang
codehwang / ssh-quick-connect.md
Last active November 30, 2017 18:31
osx ssh passwordless login to linux

osx passwordless login to linux

ssh quick connect with rsa key

how to

generate key file

ssh-keygen -t rsa

copy key file to server

ssh-copy-id -i ~/.ssh/id_rsa.pub user@server

@codehwang
codehwang / README.md
Created December 7, 2017 04:25 — forked from trinitronx/README.md
A shell script to install latest Ansible via pip + dependencies

omnibus-ansible

Install latest Ansible via pip + dependencies via a shell script

This file is used to install ansible in test kitchen when you set in the kitchen.yaml file

require_ansible_omnibus: true

By default test kitchen will always download and use the latest version of this install file.

WARNING: AS SOON AS YOU MERGE CODE HERE IT IS INSTANTLY AVAILABLE TO EVERYONE DOING OMNIBUS KITCHEN ANSIBLE INSTALLS:

@codehwang
codehwang / Ansible install
Created December 7, 2017 04:43 — forked from dpalomar/Ansible install
Steps to install Ansible on Debian/Ubuntu
# base requirements
sudo apt-get update
sudo apt-get install -y software-properties-common
sudo apt-get install -y python-setuptools python-dev libffi-dev libssl-dev git sshpass tree
sudo easy_install pip
sudo -H pip install cryptography
# sudo -H pip install ansible==2.1.1.0 if you don't need virtualenv
# virtualenv
@codehwang
codehwang / test.rst
Last active December 9, 2017 19:23
rst test
normal
code block

ok?

block?
how block is treated?
@codehwang
codehwang / fabfile.py
Created December 13, 2017 18:40 — forked from roselleebarle04/fabfile.py
Simple django fabric script for deployment
import os
import sys
from fab_deploy import *
from fabric.contrib.console import confirm
from fabric.api import env, cd, prefix, local, sudo as _sudo, run as _run, hide, task, settings, abort
from fabric.contrib.files import exists, upload_template
from fabric.colors import yellow, green, blue, red
from fabric.operations import _prefix_commands, _prefix_env_vars
from contextlib import contextmanager
@codehwang
codehwang / table_solid_line
Created December 30, 2017 18:59
table solid line for n-th child
table solid line for n-th child
table {
border: 2px solid !important;
height: 90%;
}
table tr:nth-child(3n) {
border-bottom: 2px solid !important;
}