Skip to content

Instantly share code, notes, and snippets.

@zhengda
zhengda / YAML 語言(發音 ˈjaməl )
Last active October 22, 2018 16:32
YAML 語言(發音 ˈjaməl )
YAML 語言(發音 /ˈjaməl/ )
以---開頭,以表明這是一個yaml文件
使用"#"作為註釋符,從這個字符一直到行尾,都會被解析器忽略。
大小寫敏感
使用縮進表示層級關係
縮進時不允許使用Tab鍵,只允許使用空格。
縮進的空格數目不重要,只要相同層級的元素左側對齊即可
YAML 支持的數據結構有三種。
@volosincu
volosincu / arch-linux-qemu-kvm-install.md
Last active September 19, 2018 15:41
Arch linux setup for Qemu/kvm instalation

Arch Linux Qemu/KVM installation guide

1) Partitioning

a) create partitions using a tool like gdisk, cfdisk .... (more about partitioning )
    
       create a partition 1M code ef02 (BIOS Boot Partition) 
 create a partition for luks 8e00 (LVM partition)
@volosincu
volosincu / arch-linux-uefi-install.md
Last active December 5, 2024 06:03
Arch linux UEFI installation guide

Arch Linux UEFI installation guide

1) Partitioning

a) create partitions using a tool like gdisk, cfdisk .... (more about partitioning )

b) after partifioning we must build the filesystems on the devices (format partitions) using mkfs

   
 mkfs.vfat -F 32 /dev/sdX1 // format efi-boot partition as FAT 32 
@ckhung
ckhung / repeated-fail2ban.pl
Last active December 3, 2019 02:49
summarize sites/subnets repeatedly banned by fail2ban
#!/usr/bin/perl -w
# 詳見: 「fail2ban: 新手老手 root 網管都要練的金鐘罩」
# http://newtoypia.blogspot.tw/2016/04/fail2ban.html
use DateTime;
use Getopt::Std;
my (%opts) = (
d => 7, # number of days to look back
@mcleary
mcleary / Timer.cpp
Last active September 6, 2025 20:49
C++ Timer using std::chrono
#include <iostream>
#include <chrono>
#include <ctime>
#include <cmath>
class Timer
{
public:
void start()
{
@MinhasKamal
MinhasKamal / github markdown syntax.md
Last active August 12, 2025 10:03
Markdown Syntax for GitHub.
@miglen
miglen / aws-certification.md
Last active August 1, 2024 14:08
AWS Certification guide and notes on how to prepare for the aws associate certification architect, sysops and developer exams


AWS Certification notes

Those are my personal notes on AWS Solution Architect certification preparation. Hope you find them usefull.

To pass AWS certification, you should have:

  • Sound knowledge about most of the AWS services ( EC2, VPC, RDS, Cloudfront, S3, Route53 etc,)
  • Hands on experience with AWS services.
@kmassada
kmassada / README.md
Last active September 4, 2021 12:22
Vagrant and KVM(QEMU) on Centos7

Libvirt

yum group install -y "Development Tools"
yum -y install qemu-kvm libvirt virt-install bridge-utils libvirt-devel  libxslt-devel libxml2-devel libvirt-devel libguestfs-tools-c
echo "net.ipv4.ip_forward = 1"|sudo tee /etc/sysctl.d/99-ipforward.conf
sysctl -p /etc/sysctl.d/99-ipforward.conf
@kevinkindom
kevinkindom / Python Socket 编程详细介绍.md
Last active October 10, 2025 03:20
Python Socket 编程详细介绍

Python Socket 编程详细介绍

Python 提供了两个基本的 socket 模块:

  • Socket 它提供了标准的BSD Socket API。
  • SocketServer 它提供了服务器重心,可以简化网络服务器的开发。

下面讲解下 Socket模块功能。

Socket 类型

@chyuaner
chyuaner / 5-4 DB實習.sql
Last active April 10, 2019 16:05
中華大學 104 5/4資料庫系統實習範例
-- 建立資料庫
CREATE DATABASE Sample;
-- 接下來都對這個資料庫操作
USE Sample;
-- 建立表格
CREATE TABLE Student (
S# int NOT NULL PRIMARY KEY,
SName varchar(50) NULL,