centos 7 下安装 certbot 执行失败:
pip uninstall requests
yum reinstall python-requests
pip uninstall six
yum reinstall python-six
centos 7 下安装 certbot 执行失败:
pip uninstall requests
yum reinstall python-requests
pip uninstall six
yum reinstall python-six
#!/bin/bash | |
# project_id, find it here: https://gitlab.com/[organization name]/[repository name]/edit inside the "General project settings" tab | |
project_id="3034900" | |
# token, find it here: https://gitlab.com/profile/personal_access_tokens | |
token="Lifg_azxDyRp8eyNFRfg" | |
server="gitlab.com" | |
# go to https://gitlab.com/[organization name]/[repository name]/-/jobs |
package main | |
import ( | |
"crypto" | |
"crypto/rand" | |
"crypto/rsa" | |
"crypto/sha256" | |
"crypto/x509" | |
"encoding/base64" | |
"encoding/pem" |
// follow https://docs.mongodb.com/manual/tutorial/model-tree-structures-with-materialized-paths/ | |
package models | |
import ( | |
"errors" | |
"fmt" | |
"strings" | |
"time" | |
"qbox.us/mgo2" |
# Based on the great ys theme (http://ysmood.org/wp/2013/03/my-ys-terminal-theme/) | |
# Machine name. | |
function box_name { | |
[ -f ~/.box-name ] && cat ~/.box-name || echo $HOST | |
} | |
# Directory info. | |
local current_dir='${PWD/#$HOME/~}' |
package models | |
import ( | |
"time" | |
"gopkg.in/mgo.v2" | |
"gopkg.in/mgo.v2/bson" | |
"github.com/qbox/gogo/lib/model" | |
) |