Skip to content

Instantly share code, notes, and snippets.

View youyongsong's full-sized avatar
🐢
get things done slowly.

yongsong you youyongsong

🐢
get things done slowly.
View GitHub Profile

部署 tekton 验证 pipeline 运行完毕后 pod 是否会被删除

install tekton

kubectl apply --filename https://storage.googleapis.com/tekton-releases/pipeline/latest/release.yaml
kubectl get pods --namespace tekton-pipelines
### Keybase proof
I hereby claim:
* I am youyongsong on github.
* I am ysyou (https://keybase.io/ysyou) on keybase.
* I have a public key ASCch2bWEAzQMNeJYD3sBOcXKUZ1gwlOOW44iscGqecM7Ao
To claim this, I am signing this object:
https://press.one/p/address/v?s=163cbf3f84bdc6e3856ee9d5c9e6dea68417be329fb6b7fbd467d4f23443639453bcd5d8982e103607a5900cbc0b2e3e04b24c9be1c3f59e32803d321054e5db1&h=97b84fc2a8bb25e25155c7b2d8702026f6b2b959b63d250ddfdcc13449a46ba5&a=2576143a9eb380ea6ea7741192fa53abe3d038d6&f=P1&v=2
@youyongsong
youyongsong / ReadMe.md
Created January 24, 2015 12:08
This is a django-template snippet for forms.

required

  • {% load trans%}before using this snippets
  • Add this template filter to your custom templatetags and load it before using this snippets
  • Bootstrap framework
@youyongsong
youyongsong / linux_pause.c
Created May 9, 2014 14:35
linux实现windows中system("pause")功能
#include <stdio.h>
#include <stdlib.h>
#include <termios.h>
#include <unistd.h>
int getch();
void press_key();
@youyongsong
youyongsong / ConstString.c
Last active August 29, 2015 14:00
C\C++中字符串常量的存储问题
#include<stdio.h>
#include<stdlib.h>
int main()
{
char str1[] = "hello world";
char str2[] = "hello world";
char* str3 = "hello world";
char* str4 = "hello world";
@youyongsong
youyongsong / MultiArrays.cc
Created May 1, 2014 08:32
C与C++的动态多维数组的建立与释放
//二维动态数组的分配与释放
//语言: C & C++
/*-------------------------------------------*/
int row, col;
int **mat;
//C
mat = (int**) malloc(row * sizeof(int *));
for(int i = 0; i < row; i++)
mat[i] = (int*) malloc(col * sizeof(int));