Skip to content

Instantly share code, notes, and snippets.

Avatar

jason aslijiasheng

  • 微盟-weimob
  • Shanghai
View GitHub Profile
View gist:d1b2d8a7107a7c1e5ed232fd12aa6ca9
kubectl get pods | grep Evicted | awk '{print $1}' | xargs kubectl delete pod
View 微信jssdk分享
<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'];?>", // 必填,生成签名的时间戳
View my.cnf
# 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
View spacemacs
;; -*- 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
@aslijiasheng
aslijiasheng / sendMail.go
Created Feb 1, 2016 — forked from andelf/sendMail.go
golang send mail net/smtp SMTP
View sendMail.go
package main
import (
"log"
"net/mail"
"encoding/base64"
"net/smtp"
"fmt"
"strings"