Skip to content

Instantly share code, notes, and snippets.

View pzzrudlf's full-sized avatar
💭
I may be slow to respond.

pzzrudlf pzzrudlf

💭
I may be slow to respond.
View GitHub Profile
xcode-select --install
安装iTerm2
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install zsh
brew tap homebrew/cask
@pzzrudlf
pzzrudlf / listen1_aha_playlist.md
Last active January 10, 2019 03:56
updated by Listen1(http://listen1.github.io/listen1/) at 2019/1/10 上午11:56:32

本歌单由Listen1创建, 歌曲数:46,歌单数:1,点击查看更多

内网有三台服务器A/B/C, 由于申请的固定IP只有一个IP, 80端口只能给一个机器使用, 所以需要使用反向代理做域名转发去实现
这里我将A作为反向代理服务器(其实我也没搞明白为啥这么叫), 在A服务器上安装好nginx
一般在 /usr/local/nginx/conf/nginx.conf 里面 http模块里面 include /usr/local/nginx/conf/vhost/*.conf , 这样直接在vhost 建立对应域名文件配置 server模块即可
server
{
listen 80;
server_name oa.test.com;
@pzzrudlf
pzzrudlf / 淘宝TOP平台API调用接口(工具专用版本)
Last active April 23, 2018 05:14
淘宝TOP平台API调用接口(工具专用版本)
<?php
// +-----------------------------------------+
// | 淘宝TOP平台API调用接口(工具专用版本) |
// +-----------------------------------------+
// | 说明:本接口支持POST/GET方式提交数据,格式|
// |可参照开发平台API测试工具.int=0默认用户提|
// |交appkey和secret,int=1+递增时为切换内设权|
// |限,请自行判断返回Json错误代"code":7时递增|
// +-----------------------------------------+
//示列:GET?int=0&key=用户自己写&secret=用户自己写&method=taobao.wireless.share.tpwd.create&tpwd_param={"logo":"https://m.taobao.com/xxx.jpg","text":"文字","url":"http://m.taobao.com","user_id":"0"}
<?php
/**
*将参与淘客计划的商品id转换为淘客链接
*
*$param version 0.1
*
*$author pzzrulf <[email protected]>
*
*/
<?php
/**
*将参与淘客计划的商品id转换为淘客链接
*
*$param version 0.1
*
*$author pzzrulf <[email protected]>
*
*/
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>数据加载中,请稍等...</title>
<script language="javascript">window.onerror = function(){return true;}</script>
<!-- <script type="text/javascript" src="./jquery.js"></script> -->
<script src="http://libs.baidu.com/jquery/1.9.1/jquery.min.js"></script>
<style type="text/css">
#show{width:400px; height: 50px; padding: 10px; border: 8px solid #E8E9F7; background-color: white; text-align:center; line-height:50px; vertical-align:middle; overflow:hidden; font-size:16px; margin:0 auto}
<?php
//淘客长(短)网址提取商品id
//unescape 转码
function unescape($str) {
$ret = '';
$len = strlen($str);
for ($i = 0; $i < $len; $i ++)
{
if ($str[$i] == '%' && $str[$i + 1] == 'u')
{
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>demo</title>
<style type="text/css">
*{margin:0;padding:0;}
.layer{
width:300px;
padding:20px;
https://www.zybuluo.com/king/note/47271
http://jacoxu.com
http://www.xuanfengge.com/using-ssh-key-link-github-photo-tour.html