Skip to content

Instantly share code, notes, and snippets.

View aslijiasheng's full-sized avatar

jason aslijiasheng

  • 微盟-weimob
  • Shanghai
View GitHub Profile
@aslijiasheng
aslijiasheng / sendMail.go
Created February 1, 2016 01:57 — forked from andelf/sendMail.go
golang send mail net/smtp SMTP
package main
import (
"log"
"net/mail"
"encoding/base64"
"net/smtp"
"fmt"
"strings"
;; -*- mode: emacs-lisp -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Configuration Layers declaration.
You should not put any user code in this function besides modifying the variable
values."
(setq-default
;; Base distribution to use. This is a layer contained in the directory
# Example MariaDB config file for large systems.
#
# This is for a large system with memory = 512M where the system runs mainly
# MariaDB.
#
# MariaDB programs look for option files in a set of
# locations which depend on the deployment platform.
# You can copy this option file to one of those
# locations. For information about these locations, do:
# 'my_print_defaults --help' and see what is printed under
<script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script type="text/javascript">
var accountID = "<?php echo $data['share']['accountID'];?>";//用户账号
var newsID = "<?php echo $data['share']['newsID'];?>";//文章id
var reg = "<?php echo $data['share']['reg'];?>";
wx.config({
debug: true, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。
appId: "<?php echo $data['signPackage']['appId'];?>", // 必填,公众号的唯一标识
timestamp: "<?php echo $data['signPackage']['timestamp'];?>", // 必填,生成签名的时间戳
kubectl get pods | grep Evicted | awk '{print $1}' | xargs kubectl delete pod