国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。
Dockerized 实践 https://github.com/y0ngb1n/dockerized
国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。
Dockerized 实践 https://github.com/y0ngb1n/dockerized
原文:中生代技术
这份技术知识图谱秘籍真的很棒,【云时代架构】技术社区极力推荐分享给身边的技术人儿。希望这份技术知识图谱能够帮助到每一位奋斗在技术路上的小伙伴。
若想要下载以下全套技术知识图谱,放在电脑里慢慢学习的小伙伴,可打开“云时代架构”微信公号,对话框回复“666”,即可获得!
1.1 架构师图谱
/* | |
JPA (Java Persistence API) | |
Transaction Management with an Entity-Mananger: | |
--- | |
entityManager.getTransaction().begin(); | |
entityManager.persist(<some-entity>); | |
entityManager.getTransaction().commit(); | |
entityManager.clear(); |
FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.
@Grab(group='com.fasterxml.jackson.core', module='jackson-databind', version='2.3.3') | |
import com.fasterxml.jackson.databind.JsonNode | |
import com.fasterxml.jackson.databind.ObjectMapper | |
import com.fasterxml.jackson.databind.node.ArrayNode | |
import com.fasterxml.jackson.databind.node.ObjectNode | |
import com.fasterxml.jackson.databind.node.ValueNode | |
import org.pentaho.di.core.row.* | |
import org.pentaho.di.core.row.value.* |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import cookielib | |
import urllib | |
import urllib2 | |
import re | |
url_login = 'http://f.10086.cn/im/login/inputpasssubmit1.action' | |
url_logout = 'http://f.10086.cn//im/index/logoutsubmit.action?t=' |
#encoding:utf-8 | |
import logging | |
import time | |
import urllib | |
import mimetools | |
from tornado import httpclient | |
from tornado.httputil import HTTPHeaders | |
from tornado import escape | |
from tornado.auth import OAuthMixin,OAuth2Mixin |
server { | |
listen 80; | |
server_name dl.cuoluo.me; | |
location / { | |
proxy_redirect off; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_pass http://dl.dropbox.com/u/1812807/dl.cuoluo.me/index.html; | |
if ($request_method = POST) { |
首先我们来生成公钥文件。Terminal下面输入 | |
ssh-keygen -t rsa | |
之后在Terminal的提示里按回车。直到生成id_rsa.pub文件,生成的id_rsa.pub文件在 ~/.ssh下面。Terminal下面输入 | |
cd ~/.ssh | |
cp id_rsa.pub authorized_keys | |
上面第一句的意思是进入~/.ssh文件夹,第二句是复制id_rsa.pub为authorized_keys文件。 |