Skip to content

Instantly share code, notes, and snippets.

curl -sS -o helm-v3.5.4-linux-amd64.tar.gz https://get.helm.sh/helm-v3.5.4-linux-amd64.tar.gz
tar zxvf helm-v3.5.4-linux-amd64.tar.gz
$env:PATH = "$($env:PATH):$(pwd)/linux-amd64/"
$env:NAMESPACE = 'test'
$helmOut = helm help
echo "ErrorCode:$LASTEXITCODE"
echo "helm:$helmOut"
exit $LASTEXITCODE
@ss22219
ss22219 / gist:d0feb23566431065b26a739aa83004c7
Created July 10, 2019 02:35
Fiddler Server RegistrationHostname
prefs set fiddler.network.proxy.registrationhostname
function SubPage(pageIndex, pageSize, totalCount, pageLabelCount) {
this.pageIndex = pageIndex
this.pageSize = pageSize
this.totalCount = totalCount
this.pageLabelCount = pageLabelCount
}
SubPage.prototype = {
pageIndex: 1, pageSize: 20, totalCount: 0, pageLabelCount: 5,
var uploader = new plupload.Uploader({
runtimes: 'gears,flash,html5,silverlight,browserplus',
browse_button: 'A3', container: 'content',
max_file_size: '10mb',
resize: { width: 320, height: 240, quality: 90 },
url: 'invoice.aspx',
flash_swf_url: 'js/Moxie.swf',
silverlight_xap_url: 'js/Moxie.xap',
filters: [
{ title: "图片", extensions: "jpg,gif,png" },
@ss22219
ss22219 / Program.cs
Last active December 24, 2015 22:29
using System;
using System.Collections.Generic;
class Program
{
public static Page<int> page;
static void Main(string[] args)
{
Console.Write("请输入每页显示数量:");
int pageSize = int.Parse(Console.ReadLine());
import java.util.ArrayList;
public class Main {
/**
* @param args
*/
public static void main(String[] args) {
Page<String> page = new Page<String>(new ArrayList<String>(), 20, 12,
1000, 8);
<?php
require_once 'Page.class.php';
$page = new Page(array("<h3>demo is not list</h3>"), (key_exists("page", $_GET) ? $_GET["page"] : 1), 12, 1000, 8);
echo "Page index: <font color='red'>" . $page->getPageIndex() . "</font> PageTotal page: <font color='red'>" . $page->getTotalPage() . "</font></br >";
echo "<br />page list:<br /><br />";
foreach ($page->getList() as $item) {
using System;
using System.Collections.Generic;
/// <summary>
/// 分页类
/// </summary>
/// <typeparam name="T">实体类型</typeparam>
public class Page<T> : IEnumerable<T>
{
/// <summary>
import java.util.ArrayList;
import java.util.List;
import java.lang.Math;;
public class Page<T> {
public Page(List<T> list,int pageIndex,int pageSize,int totalCount,int labelCount)
{
this.setPageLabelCount(labelCount);
this.setList(list);
this.setPageIndex(pageIndex);
<?php
/**
* author: gool
**/
//分页信息类,移植自C#
class BasePage {
///当前页号
private $pageIndex = 1;