To transform the currently opened Graphviz source file (in DOT Language) into a PNG:
{
"cmd": [ "dot", "-Tpng", "-o", "$file_base_name.png", "$file"],
"selector": "source.dot"
}
#!/bin/bash | |
curl -o /etc/apt/sources.list.d/git-lfs.list "https://packagecloud.io/install/repositories/github/git-lfs/config_file.list?os=debian&dist=stretch&source=script" | |
curl -L "https://packagecloud.io/github/git-lfs/gpgkey" 2> /dev/null | apt-key add - | |
apt update && apt install git-lfs |
Mac Port 基本用法总结 | |
1. Mac Port的下载地址 | |
http://www.macports.org/install.php | |
2. Mac Port的说明文档 | |
http://guide.macports.org/ | |
3. Mac Port中第三方软件下载包存放的默认路径是:/opt/local/var/macports/distfiles/ | |
为了提高安装速度,可以在安装新port时直接将此目录下的文件拷贝到新的Mac Port相同的目录中就可以避免Port去网上下载。 |
To transform the currently opened Graphviz source file (in DOT Language) into a PNG:
{
"cmd": [ "dot", "-Tpng", "-o", "$file_base_name.png", "$file"],
"selector": "source.dot"
}
/* compile osx | |
* gcc -bundle -fPIC -O3 -o popcount.dylib popcount.c | |
* */ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <stdint.h> | |
#include <sqlite3ext.h> | |
SQLITE_EXTENSION_INIT1 |
import click | |
import olefile | |
import os | |
import imghdr | |
import struct | |
import filetype | |
@click.command() | |
@click.argument("file_name", type=click.Path(exists=True)) |
[Unit] | |
Description=Shadowsocks Server | |
After=network.target | |
[Service] | |
ExecStart=/usr/local/bin/ssserver -c /etc/shadowsocks/ss-config.json | |
Restart=on-abort | |
[Install] | |
WantedBy=multi-user.target |
C:/Users/username/
) called .ssh
.mkdir -p ~/.ssh
#!/usr/bin/env python | |
"""Simple HTTP Server With Upload. | |
This module builds on BaseHTTPServer by implementing the standard GET | |
and HEAD requests in a fairly straightforward manner. | |
""" |
That's right. For OS X and BSD's ls
, the flag is -G
.
Many people customize the behavior of ls by replacing it with an alias that adds extra options. I have the following in my .bashrc
, for example:
alias ls='LSCOLORS=gxfxcxdxbxexexabagacad /bin/ls -bFHGLOPW'
Besides enabling colors in general, this sets the LSCOLORS
variable in order to change which ones ls
uses.