Install-Module oh-my-posh -Scope CurrentUser -SkipPublisherCheck
Install-Module posh-git -Scope CurrentUser
Install-Module -Name PSReadLine -AllowPrerelease -Scope CurrentUser -Force -SkipPublisherCheck
notepad.exe $PROFILE
FROM alpine:latest | |
RUN apk update | |
RUN apk --no-cache add curl | |
ENV SUPERCRONIC_URL=https://github.com/aptible/supercronic/releases/download/v0.1.12/supercronic-linux-amd64 \ | |
SUPERCRONIC=supercronic-linux-amd64 \ | |
SUPERCRONIC_SHA1SUM=048b95b48b708983effb2e5c935a1ef8483d9e3e | |
RUN curl -fsSLO "$SUPERCRONIC_URL" \ | |
&& echo "${SUPERCRONIC_SHA1SUM} ${SUPERCRONIC}" | sha1sum -c - \ | |
&& chmod +x "$SUPERCRONIC" \ | |
&& mv "$SUPERCRONIC" "/usr/local/bin/${SUPERCRONIC}" \ |
from github import Github | |
from rich.console import Console | |
from rich.table import Table | |
from rich import box | |
github_access_token = "ghp_****************************" | |
github_id = "xiaopeng163" | |
g = Github(github_access_token) |
Install-Module oh-my-posh -Scope CurrentUser -SkipPublisherCheck
Install-Module posh-git -Scope CurrentUser
Install-Module -Name PSReadLine -AllowPrerelease -Scope CurrentUser -Force -SkipPublisherCheck
notepad.exe $PROFILE
import dash | |
from dash.dependencies import Input, Output | |
import dash_core_components as dcc | |
import dash_html_components as html | |
from pandas_datareader import data as web | |
from datetime import datetime as dt | |
app = dash.Dash('Hello World') |
# install docker | |
curl -fsSL get.docker.com -o get-docker.sh | |
sh get-docker.sh | |
if [ ! $(getent group docker) ]; | |
then | |
sudo groupadd docker; | |
else | |
echo "docker user group already exists" | |
fi |
hosts: localhost | |
vars: | |
data: | |
key1: 1 | |
key2: 2 | |
tasks: | |
- name: Hello World debug | |
debug: |
penxiao@WPU8L0042502:~$ sudo apt update
Get:1 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Hit:2 http://archive.ubuntu.com/ubuntu bionic InRelease
Get:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:4 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Get:5 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages [8570 kB]
[12:12:41] pengxiao:~ $ sudo apt-get install libssl-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
libssl-doc libssl1.1
The following NEW packages will be installed:
libssl-dev libssl-doc
The following packages will be upgraded:
from flask import Flask, jsonify | |
import random | |
app = Flask(__name__) | |
@app.route("/") | |
def hello(): | |
return "Hello World!" |
print("hell") |