Skip to content

Instantly share code, notes, and snippets.

View chenminhua's full-sized avatar
🎯
Focusing

陈敏华 chenminhua

🎯
Focusing
View GitHub Profile
@dergachev
dergachev / vagrant-scp.md
Last active June 30, 2021 17:47
How to copy files into vagrant vm

Vagrant SCP

Do you need to copy a file to your Vagrant VM? Unfortunately there's no vagrant scp command as far as I know. But we can use vagrant ssh in a pinch:

cat ~/.gitconfig | vagrant ssh -- 'tee ~/.gitconfig'

Do you want to move over multiple files?

@ifels
ifels / centos6.5_nginx
Last active September 7, 2023 01:57
centos 6.5 nginx安装与配置
第一步,在/etc/yum.repos.d/目录下创建一个源配置文件nginx.repo:
cd /etc/yum.repos.d/
vim nginx.repo
填写如下内容:
[nginx]
name=nginx repo

Some of the Redis best practices content has moved

This content from this markdown file has moved a new, happier home where it can serve more people. Please check it out : https://docs.microsoft.com/azure/azure-cache-for-redis/cache-best-practices.

NOTE: Client specific guidance listed below is still valid and should still be considered. I will update this document once all content has been moved.

@stebennett
stebennett / feeds.opml
Created August 12, 2016 15:24
The feeds I currently subscribe to.
<?xml version="1.0" encoding="UTF-8"?>
<opml version="1.0">
<head>
<title>Stephen subscriptions in feedly Cloud</title>
</head>
<body>
<outline text="Companies" title="Companies">
<outline type="rss" text="Trello" title="Trello" xmlUrl="https://trello.engineering/feed.xml" htmlUrl="http://tech.trello.com/"/>
<outline type="rss" text="IMVU" title="IMVU" xmlUrl="http://engineering.imvu.com/feed/" htmlUrl="https://engineering.imvu.com"/>
@baymaxium
baymaxium / content.md
Created October 18, 2017 09:16
李艳鹏:史上最全的架构师图谱

原文:中生代技术

这份技术知识图谱秘籍真的很棒,【云时代架构】技术社区极力推荐分享给身边的技术人儿。希望这份技术知识图谱能够帮助到每一位奋斗在技术路上的小伙伴。

若想要下载以下全套技术知识图谱,放在电脑里慢慢学习的小伙伴,可打开“云时代架构”微信公号,对话框回复“666”,即可获得!

1.1 架构师图谱

@shankarshastri
shankarshastri / LearnXInYMinProtocolBuffer.proto
Last active July 21, 2024 04:00
Self-Explanatory Protocol Buffer Lang Guide (CheatSheet)
/*
* Self-Explanatory Protocol Buffer Lang Guide
*/
/*
* Why Protocol Buffers?
* Protocol buffers are Google's language-neutral, platform-neutral, extensible mechanism for serializing structured data – think XML, but smaller, faster, and simpler.
* You define how you want your data to be structured once, then you can use special generated source code to easily write and read your structured data to and from a variety of data streams and using a variety of languages.
* Protocol Buffers are Schema Of Messages. They are language agnostic.
@pitfield
pitfield / Create an iOS app with Swift Package Manager dependencies.md
Last active July 18, 2023 01:34
Create an iOS app with Swift Package Manager dependencies

Create an iOS app with Swift Package Manager dependencies

CAUTION: This information is mostly obsolete. Xcode 11 allows a project to directly declare its Swift Package Manager dependencies.

This gist walks through creating an Xcode project for an iOS app that consumes packages in Swift Package Manager (SPM).

We'll be using Xcode 10.2 and Swift 5.

Scenario

@onlurking
onlurking / programming-as-theory-building.md
Last active July 22, 2024 13:14
Programming as Theory Building - Peter Naur

Programming as Theory Building

Peter Naur

Peter Naur's classic 1985 essay "Programming as Theory Building" argues that a program is not its source code. A program is a shared mental construct (he uses the word theory) that lives in the minds of the people who work on it. If you lose the people, you lose the program. The code is merely a written representation of the program, and it's lossy, so you can't reconstruct