This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"context" | |
"io/ioutil" | |
"log" | |
"net" | |
"net/http" | |
"time" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
deb http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse | |
deb-src http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse | |
deb http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse | |
deb-src http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse | |
deb http://archive.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse | |
deb-src http://archive.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse | |
deb http://archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kubernetes commands | |
=============================================certificates renew====================================== | |
kubeadm certs check-expiration | |
kubeadm certs renew all | |
and restart etcd, kube-apiserver, kube-scheduler, kube-control-manager on the all control planes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
import time | |
import timeit | |
from math import floor | |
import matplotlib.pyplot as draw | |
import scipy.io | |
import numpy as np | |
import cProfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import logging | |
import sys | |
import functools | |
logging.basicConfig(level=logging.DEBUG) | |
LOGGER = logging | |
def log_if_exception(message): | |
def decorator(function): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"log" | |
"strings" | |
"github.com/PuerkitoBio/goquery" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"strings" | |
"net/http" | |
"fmt" | |
"time" | |
"io/ioutil" | |
"net/url" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This script allows to maintain a github hosted page | |
# First: make sure to clone or init your git in the destination directory | |
# this script will make a backup of the .git directory | |
# once vuepress has built again (replacing all things in destination directory) | |
# this script will restore the original .git directory | |
# Finally you can git add . & commit as you wish | |
# so .git directory will always be the latest one | |
cls | |
Write-Host "Vuepress git tool v1.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function X = cumSumFunc(image) | |
[m,n] = size(image); | |
X = zeros(m,n); | |
X(1,:) = image(1,:); | |
for i=2:m | |
for j=1:n | |
X(i,j) = image(i,j) + X(i-1,j); | |
end | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This file is a template, and might need editing before it works on your project. | |
# Auto DevOps | |
# This CI/CD configuration provides a standard pipeline for | |
# * building a Docker image (using a buildpack if necessary), | |
# * storing the image in the container registry, | |
# * running tests from a buildpack, | |
# * running code quality analysis, | |
# * creating a review app for each topic branch, | |
# * and continuous deployment to production | |
# |
NewerOlder