Skip to content

Instantly share code, notes, and snippets.

View bl4kraven's full-sized avatar

Leo Chung bl4kraven

View GitHub Profile
#!/bin/bash
# data: 2020-03-31
# author: muzi502
# for: Fuck GFW and download some raw file form github without proxy using jsDelivr CDN
# usage: save the .she to your local such as /usr/bin/rawg, and chmod +x /usr/bin/rawg
# use rawg https://github.com/ohmyzsh/ohmyzsh/blob/master/tools/install.sh to download
set -xue
# GitHub rul: https://github.com/ohmyzsh/ohmyzsh/blob/master/tools/install.sh
# jsDelivr url: https://cdn.jsdelivr.net/gh/ohmyzsh/ohmyzsh/tools/install.sh

0726 技术分享

daapi项目(Dashboard 2.0的JSON API)为实例,介绍用到的一些Python第三方库、一些用Python做web项目的best practice,以及如何使用Ansible来做自动部署。

暖场

可以直接在命令行运行Python的package或者module,类似这样:python -m module_name

python -m this

@nzjrs
nzjrs / driveGnuPlotStreams.pl
Created July 28, 2013 17:30
Plotting data with gnuplot in real-time
#!/usr/bin/perl -w
#Salvaged from archive.org
#http://web.archive.org/web/20100309204315/http://www.lysium.de/blog/index.php?/archives/234-Plotting-data-with-gnuplot-in-real-time.html
#The input (on stdin or from a file) looks like this, as for the original version:
#0:0.09983
#1:0.99500
#2:0.69314