tui.edito
Markdown WYSIWYG Editor. GFM Standard + Chart & UML Extensible. http://ui.toast.com/tui-editor
简洁,速度快

editor.md
The open source embeddable online markdown editor (component). https://pandao.github.io/editor.md/
功能强大,国人开发
Markdown WYSIWYG Editor. GFM Standard + Chart & UML Extensible. http://ui.toast.com/tui-editor
简洁,速度快

The open source embeddable online markdown editor (component). https://pandao.github.io/editor.md/
功能强大,国人开发
//打印机设置
PrinterSettings settings = new PrinterSettings();
settings.PrinterName = printername;
settings.PrintToFile = false;
settings.Copies = 1;
settings.PrintRange = PrintRange.AllPages;
//设置纸张大小(可以不设置取,取默认设置)
PaperSize ps = new PaperSize("Your Paper Name",595,842);
ps.RawKind = 9; //如果是自定义纸张,就要大于118
//打印设置
PDFRender.Printing.PDFPrintSettings pdfPrintSettings = new PDFRender.Printing.PDFPrintSettings(settings);
pdfPrintSettings.AutoRotate = false; //自动旋转
pdfPrintSettings.BitmapPrintResolution = 560; //图片打印精度
pdfPrintSettings.PaperSize = ps; //纸张尺寸
pdfPrintSettings.PageScaling = PDFRender.Printing.PageScaling.FitToPrinterMarginsProportional;
pdfFile.Print(pdfPrintSettings);
代码详见: https://github.com/HiRaygo/DocumentPrint/blob/master/PdfPrint.cs
public static PrintEngine SumatraPDF = new PrintEngine("Sumatra PDF Reader",
((printerName, filePath, documentName) =>
{
string app = Path.Combine(Program.localPath, "SumatraPDF.exe");
string args = string.Format("-silent -exit-on-print -print-to \"{0}\" \"{1}\"", printerName, filePath);
Process p = new Process();
p.StartInfo = new ProcessStartInfo()
{
CreateNoWindow = true,
WindowStyle = ProcessWindowStyle.Hidden,
FileName = app,
Arguments = args
};
//if (User.isNetworkService())
//{
// p.StartInfo.UserName = Program.config.serviceLogin;
// p.StartInfo.Password = tools.secureString(tools.Decrypt(Program.config.servicePass));
// p.StartInfo.Domain = Program.config.serviceDomain;
// p.StartInfo.LoadUserProfile = true;
// p.StartInfo.UseShellExecute = false;
//}
p.Start();
})){};
/// <summary>
/// Print via external programm Acrobat Reader
/// </summary>
public static PrintEngine AcrobatReader = new PrintEngine("Acrobat Reader",
((printerName, filePath, documentName) =>
{
string app = Registry.LocalMachine.OpenSubKey(
@"SOFTWARE\Microsoft\Windows\CurrentVersion" +
@"\App Paths\AcroRd32.exe"
).GetValue("").ToString()
;
string args = string.Format("/h /t \"{0}\" \"{1}\"", filePath, printerName);
Process p = new Process();
p.StartInfo = new ProcessStartInfo()
{
CreateNoWindow = true,
WindowStyle = ProcessWindowStyle.Hidden,
FileName = app,
Arguments = args
};
//if (User.isNetworkService())
//{
// p.StartInfo.UserName = Program.config.serviceLogin;
// p.StartInfo.Password = tools.secureString(tools.Decrypt(Program.config.servicePass));
// p.StartInfo.Domain = Program.config.serviceDomain;
// p.StartInfo.LoadUserProfile = true;
// p.StartInfo.UseShellExecute = false;
//}
p.Start();
})){};
代码详见: https://github.com/RepairShopr/AutoPrintr-win/blob/master/AutoPrintr/modules/PrintEngines.cs
使用Files(又名Nautilus)时,您是否想过快速打开终端以在当前位置运行命令?
Nautilus的gnome-terminal-nautilus附加组件提供了一个右键单击上下文菜单项, 可以在当前位置快速打开一个新的gnome-terminal窗口。

当您需要对图形文件浏览器中正在查看的某些文件运行快速命令时,对nautilus界面的这一小调整非常方便。
sudo dnf install gnome-terminal-nautilus
安装后,“在终端中打开”选项应出现在“文件”中的右键单击上下文菜单中。如果安装后没有出现,请通过运行以下命令强制关闭Nautilus。然后重新打开文件
nautilus -q
Upload manager system based and inspired from WordPress upload manager.
A module/widget for upload, manage and cropping images
Extension for file uploading and attaching to the models
An enhanced FileInput widget for Bootstrap 3.x with file preview, multiple selection, and more features
Jasny File Input Bootstrap Widget + Local and Remote storage
PHP library for uploading files to your server or Amazon S3
Yii2 tools for upload file
一个基于wepy+redux+eslint+sass的类Vue开发风格的商城微信小程序项目。
WeUI 在 WePY 中的使用示例,同一份代码可以运行在小程序上和Web上
https://xwi6xq7u.mirror.aliyuncs.com/,然后点击Applydocker run ubuntu echo 'hello world'
docker run -i -t ubuntu /bin/bash
docker ps -a # 不带参数表示正在运行的容器,-a所有,-l最近
docker inspect name | id
docker start [-i] 容器名
docker rm name | id
docker run -d IMAGE_NAME
启动windows下ubuntu 子系统时,提示WslRegisterDistribution failed with error: 0x800703fa,通过搜索成功解决
C:\> bash
$ sudo apt update
$ sudo apt upgrade
$ <CTRL-D>
C:\> exit
网上查到的是sudo apt dist-upgrade,当sudo apt upgrade不行时可以试下
CREATE USER davide WITH PASSWORD 'jw8s0F4';
CREATE ROLE admin WITH CREATEDB CREATEROLE;
ALTER ROLE davide WITH PASSWORD 'hu8jmn3';
ALTER ROLE davide WITH PASSWORD NULL;
CREATE DATABASE sales OWNER salesapp
create user test_readonly with password 'password';
grant connect on DATABASE test to test_readonly;
grant select on all tables in schema public to test_readonly;
pg_dump -F t -h 127.0.0.1 -U postgres dbname > dbname.tar
pg_restore -d dbname dbname.tar