Skip to content

Instantly share code, notes, and snippets.

Avatar
🍢
Learn Learn Learn

Yueh-Ting (eop) Chen eopXD

🍢
Learn Learn Learn
View GitHub Profile
View C 语言实现 ping 程序
一 实验介绍
本项目带领你学习用 C 语言实现 ping 命令。通过本项目中你可以更深入地理解 TCP/IP 协议,掌握 C 语言进行网络编程的技巧方法。
1.1 知识点
TCP/IP 协议介绍
获取系统运行时间
原始套接字
1.2 效果截图
@fntlnz
fntlnz / self-signed-certificate-with-custom-ca.md
Last active Sep 30, 2022
Self Signed Certificate with Custom Root CA
View self-signed-certificate-with-custom-ca.md

Create Root CA (Done once)

Create Root Key

Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!

openssl genrsa -des3 -out rootCA.key 4096
@cabal95
cabal95 / vm-backup.sh
Created Jul 25, 2015
I use this script to backup my QEMU/KVM/libVirt virtual machines. The script requires KVM 2.1+ since it uses the live blockcommit mode. This means the data in the snapshot disk is rolled back into the original instead of the other way around. Script does NOT handle spaces in paths.
View vm-backup.sh
#!/bin/bash
#
BACKUPDEST="$1"
DOMAIN="$2"
MAXBACKUPS="$3"
if [ -z "$BACKUPDEST" -o -z "$DOMAIN" ]; then
echo "Usage: ./vm-backup <backup-folder> <domain> [max-backups]"
exit 1
View codingstandards-0-automatedanalysis.md

THIS DOCUMENT

IS OUT OF

DATE

See https://github.com/lefticus/cppbestpractices/blob/master/00-Table_of_Contents.md Instead!

C++ Coding Standards Part 0: Automated Code Analysis

Automated analysis is the main advantage to working with a modern statically typed compiled language like C++. Code analysis tools can inform us when we have implemented an operator overload with a non-canonical form, when we should have made a method const, or when the scope of a variable can be reduced.

@zyan0
zyan0 / gist:3859375
Created Oct 9, 2012 — forked from observerss/gist:3798896
Google Keyword Tool Scraper(selenium+python version)
View gist:3859375
from selenium import webdriver
from selenium.common.exceptions import TimeoutException
import selenium.webdriver.support.wait
selenium.webdriver.support.wait.POLL_FREQUENCY = 0.05
import re
import random
import collections
class AdwordsAutomater(object):