Skip to content

Instantly share code, notes, and snippets.

@inkflow
inkflow / devops_best_practices-zh.md
Last active February 6, 2024 07:36 — forked from jpswade/devops_best_practices.md
Devops最佳实践指南

DevOps始于"敏捷系统管理"一文。 2008年, 安德鲁(Andrew Shafer)发表了"敏捷基础(Agile Infrastucture)" 的演讲,意图解决许多开发者和公司遇到的类似问题。

2009年,帕特里克(Patrick Debois)创立了"DevOpsDays"会议来推广DevOps的概念。然而,直到谷歌发布2010年趋势盘点一文后,人们才开始把DevOps当成一项独立的概念

如今,DevOps的概念已经不止于开发、系统管理和基础,它包括开发、运维、敏捷、云、开源和商业化等等。

DevOps在不断演变。目前,DevOps不存在认证、角色、系列工具或是固定流程。没有规范,也不是一个产品或是职位的名称。没有一种权威的说法能定义DevOps是什么或不是什么。它关乎于态度、思想、习惯、行为、文化、范式、哲学。它是一种思考、行动、存在的方式。实践就是最好的布道。践行DevOps是一场对话,你将采取最佳的方式实践并将经验分享给他人。

以下有一些已经被验证有效的非常重要的质量标准、指导原则、技术要点,每个人都应该了解。从它们开始实践DevOps会是最好的尝试。

@byk0t
byk0t / docker-compose.yml
Last active January 26, 2024 16:08
Docker compose for odoo:14 and PostgreSQL:13
version: '3'
services:
db:
image: postgres:13
volumes:
- db-data:/var/lib/postgresql/data/pgdata
ports:
- 5432:5432/tcp
environment:
- POSTGRES_PASSWORD=odoo
@troyfontaine
troyfontaine / readme.md
Last active July 17, 2025 02:01
Resize root partition (or how to remove the default /home partition) on CentOS 7 online

Resize root partition (or how to remove the default /home partition) on CentOS 7 online

This process requires that you are able to ssh OR log in locally using the root user account and that no services be running as users out of /home on the target machine.

The examples are from a default installation with no customization-you NEED to know what you're working with for volumes/partitions to not horribly break things.

By default, CentOS 7 uses XFS for the file system and Logical Volume Manager (LVM), creating 3 partitions: /,/home and swap.

NOTE: If you want to be sure that nothing is writing to /home you can either modify the host to boot into single-user mode OR try to use the systemctl isolate runlevel1.target command to switch (not tested! should work).

@chemzqm
chemzqm / complete.vim
Last active April 4, 2024 07:21
My supertab, complex plugin completion is quite confusing
" Take <tab> for word complete only
" The 'complete' option controls where the keywords are searched (include files, tag files, buffers, and more).
" The 'completeopt' option controls how the completion occurs (for example, whether a menu is shown).
if exists('did_completes_me_loaded') || v:version < 700
finish
endif
let did_completes_me_loaded = 1
function! s:completes_me(shift_tab)
@itsmattsoria
itsmattsoria / gistfil1.textile
Last active September 27, 2025 02:49
Mac Terminal Cheat Sheet

SHORTCUTS

Key/Command Description
Tab Auto-complete files and folder names
Ctrl + A Go to the beginning of the line you are currently typing on
Ctrl + E Go to the end of the line you are currently typing on
Ctrl + U Clear the line before the cursor
Ctrl + K Clear the line after the cursor
Ctrl + W Delete the word before the cursor
Ctrl + T Swap the last two characters before the cursor
@gugat
gugat / samba-access.sh
Last active September 12, 2024 10:55
Script to install and configure Samba in Ubuntu.
#!/bin/bash
# Description: Script to install and configure Samba in Ubuntu.
# Author: Gustavo Salazar L.
# Date: 2013-03-27
#
# How to use:
# chmod +x samba-access.sh
# ./samba-access.sh PATH_TO_SHARED_DIRECTORY PERMISSIONS